harrism / sublimetext-cuda-cpp

CUDA C++ package for Sublime Text 2 & 3
BSD 3-Clause "New" or "Revised" License
67 stars 13 forks source link

Syntax breaks when you have `a->b()` as a kernel launch argument #7

Open lukeyeager opened 7 years ago

lukeyeager commented 7 years ago
void launchMyKernel(MyKernelParams *kernelParams, void *data)
{
    printf("About to launch kernel ...\n");
    my_kernel<<<1, kernelParams->blockSize()>>>(data);
    printf("Kernel launched.\n");
}
lukeyeager commented 7 years ago

In the wild: https://github.com/caffe2/caffe2/blob/6f0b2c0c87/caffe2/sgd/adagrad_op_gpu.cu#L36

harrism commented 7 years ago

Possible duplicate of #5. @lukeyeager if you have any insight as to whether it is the same bug, please comment. I have never had time or priority to investigate the root cause.

lukeyeager commented 7 years ago

I do think it's probably the same regex that needs an upgrade. I tried poking around to find the offending line but didn't really know where to get started. The filenames in this project are super weird.