A warning is pointed at the start of “global”: this declaration has no storage class or type specifier.
An error is pointed at the start of “void testCUDA()”: expected a “;”.
I have cuda.h included and double underscore on both sides of “global”.
Thanks for your reply.
I’m compiling my code on GPU cluster from a provider and the compiler they provide is icc.
They don’t have much tutorial on this and their only example is CUBLAS.
I tried to modify the way of compiling CUBLAS and made sure it finds cuda.h, and this is how I got the above problems.