diff --git a/applications/plugins/SofaCUDA/sofa/gpu/cuda/mycuda.cu b/applications/plugins/SofaCUDA/sofa/gpu/cuda/mycuda.cu index f3dfbbc8ffd..cfcdb6204c3 100644 --- a/applications/plugins/SofaCUDA/sofa/gpu/cuda/mycuda.cu +++ b/applications/plugins/SofaCUDA/sofa/gpu/cuda/mycuda.cu @@ -35,6 +35,11 @@ cudaDeviceProp mycudaDeviceProp; #if defined(__cplusplus) + +#define STRINGIFY(x) #x +#define _STR(x) STRINGIFY(x) +#pragma message("__cplusplus value: " _STR(__cplusplus)) + namespace sofa { namespace gpu @@ -210,6 +215,11 @@ __global__ void print_cuda_standard() int mycudaInit(int device) { if (cudaInitCalled) return 1; + +#if defined(__cplusplus) + mycudaPrintf("C++ standard = %ld", __cplusplus); +#endif + cudaInitCalled = true; const cudaError_t getDeviceCountError = cudaGetDeviceCount(&deviceCount); if (getDeviceCountError != cudaSuccess)