All is in the title.
I don’t know why but this code
__global__ void produitMatricielKernel(struct cudaPitchedPtr A, struct cudaPitchedPtr B, struct cudaPitchedPtr C)
{
const int& i = threadIdx.x;
const int& j = threadIdx.y;
const int& k = threadIdx.z;
#ifdef __CUDA_ARCH__
#if (__CUDA_ARCH__ >= 200)
printf("threadIdx.x = %d\nthreadIdx.y = %d\nthreadIdx.z %d\n", threadIdx.x, threadIdx.y, threadIdx.z);
#else
#error "CUDA compute capability < 2.0"
#endif
#error "__CUDA_ARCH__ undefined"
#endif
generates :
src\produitMatrice.cu|17|fatal error C1189: #error : "__CUDA_ARCH__ undefined"|
Have you experienced same behaviour ?
By advance, thanks a lot.