sublimetext-cuda-cpp icon indicating copy to clipboard operation
sublimetext-cuda-cpp copied to clipboard

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

Open lukeyeager opened this issue 8 years ago • 3 comments

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

lukeyeager avatar Apr 06 '17 19:04 lukeyeager

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

lukeyeager avatar Apr 06 '17 19:04 lukeyeager

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.

harrism avatar Apr 11 '17 04:04 harrism

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.

lukeyeager avatar Apr 11 '17 16:04 lukeyeager