Dear users,
I am writing a code in CUDA and I needed to use the magma_cgesv_gpu function. Without the magma function, it compiles so far using some CUBLAS functions and kernels.
So I started to port my code to the testing_cgesv_gpu example, in order to use this function.
When compiling, it gives me the following error:
~/magma_1.1.0/testing$ make
gcc -O3 -DADD_ -DGPUSHMEM=130 -I/usr/local/cuda/include -I../include -I../quark/include -c testing_cgesv_gpu.cpp -o testing_cgesv_gpu.o
testing_cgesv_gpu.cpp: In function ‘void CalcBM(double*, double*, double*, double*, double*, double*, double*, double*, int, int)’:
testing_cgesv_gpu.cpp:128: error: ‘blockIdx’ was not declared in this scope
testing_cgesv_gpu.cpp:128: error: ‘blockDim’ was not declared in this scope
testing_cgesv_gpu.cpp:128: error: ‘threadIdx’ was not declared in this scope
And similiar errors to other kernels.
Also it doesn't recognize CUDA kernel calls:
testing_cgesv_gpu.cpp:303: error: expected primary-expression before ‘<’ token
testing_cgesv_gpu.cpp:303: error: expected primary-expression before ‘>’ token
testing_cgesv_gpu.cpp:351: error: expected primary-expression before ‘<’ token
testing_cgesv_gpu.cpp:351: error: expected primary-expression before ‘>’ token
Can anyone help me with that?
Thank you in advance!
