We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 18ff27d commit 7f7da80Copy full SHA for 7f7da80
applications/plugins/SofaCUDA/sofa/gpu/cuda/mycuda.cu
@@ -35,6 +35,11 @@ cudaDeviceProp mycudaDeviceProp;
35
36
37
#if defined(__cplusplus)
38
+
39
+#define STRINGIFY(x) #x
40
+#define _STR(x) STRINGIFY(x)
41
+#pragma message("__cplusplus value: " _STR(__cplusplus))
42
43
namespace sofa
44
{
45
namespace gpu
@@ -210,6 +215,11 @@ __global__ void print_cuda_standard()
210
215
int mycudaInit(int device)
211
216
212
217
if (cudaInitCalled) return 1;
218
219
+#if defined(__cplusplus)
220
+ mycudaPrintf("C++ standard = %ld", __cplusplus);
221
+#endif
222
213
223
cudaInitCalled = true;
214
224
const cudaError_t getDeviceCountError = cudaGetDeviceCount(&deviceCount);
225
if (getDeviceCountError != cudaSuccess)
0 commit comments