sublimetext-cuda-cpp
sublimetext-cuda-cpp copied to clipboard
Syntax breaks when you have `a->b()` as a kernel launch argument
void launchMyKernel(MyKernelParams *kernelParams, void *data)
{
printf("About to launch kernel ...\n");
my_kernel<<<1, kernelParams->blockSize()>>>(data);
printf("Kernel launched.\n");
}
In the wild: https://github.com/caffe2/caffe2/blob/6f0b2c0c87/caffe2/sgd/adagrad_op_gpu.cu#L36
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.
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.