Hi guys,
I have this problem and I know it is because I follow the C99 feature…
tmpxft_00000da3_00000000-8.i:(.text+0x161f5): undefined reference to __vla_alloc' tmpxft_00000da3_00000000-8.i:(.text+0x197d6): undefined reference to __vla_dealloc’
But my code is kind of long and how can I find the right position for this problem in the code ?
the name of the topic suits me more than well. I am new to CUDA programing and I have written some code which doesn’t want to compile. External Image
The problem I have is that in the main file (extension .cu) when I call the kernel function, the compiler doesn’t recognize that it is from another file ( (name)_kernel.cu). He gives me several errors:
error: identifier “(function name)” is undefined
warning: expression has no effect
warning: expression has no effect
warning: expression has no effect
warning: expression has no effect
warning: expression has no effect
warning: expression has no effect
error: no operator “>>” matches these operands
operand types are: dim3 >> int *
I included the (nema)_kernel.cu file and I don’t know why he shows me those messgaes.
I got the part with the wrapper function, but I don’t know how to do the rest. Can you tell me how to do that, or tell about a source where I can look it up?