Skip to content

Commit 7f7da80

Browse files
committed
compiler output
1 parent 18ff27d commit 7f7da80

File tree

1 file changed

+10
-0
lines changed
  • applications/plugins/SofaCUDA/sofa/gpu/cuda

1 file changed

+10
-0
lines changed

applications/plugins/SofaCUDA/sofa/gpu/cuda/mycuda.cu

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ cudaDeviceProp mycudaDeviceProp;
3535

3636

3737
#if defined(__cplusplus)
38+
39+
#define STRINGIFY(x) #x
40+
#define _STR(x) STRINGIFY(x)
41+
#pragma message("__cplusplus value: " _STR(__cplusplus))
42+
3843
namespace sofa
3944
{
4045
namespace gpu
@@ -210,6 +215,11 @@ __global__ void print_cuda_standard()
210215
int mycudaInit(int device)
211216
{
212217
if (cudaInitCalled) return 1;
218+
219+
#if defined(__cplusplus)
220+
mycudaPrintf("C++ standard = %ld", __cplusplus);
221+
#endif
222+
213223
cudaInitCalled = true;
214224
const cudaError_t getDeviceCountError = cudaGetDeviceCount(&deviceCount);
215225
if (getDeviceCountError != cudaSuccess)

0 commit comments

Comments
 (0)