I'm trying to do something very very simple with shared memory in jcuda. My kernel:
__shared__ int testMe;
extern "C"
__global__ void test() {
testMe = 5;
}
Making shared memory global allows me to use it in device functions, unfortunately, I can't even declare shared memory global. Cuda just crashes with kernel cannot launch issue. I've also tried doing:
extern __shared__ int test
However nvcc compiler gives, cannot externally link shared memory error. I really want to get this to work to make writing kernels easier, but I don't see a way.