sofa icon indicating copy to clipboard operation
sofa copied to clipboard

Use of deprecated CUDA functions

Open alxbilger opened this issue 1 year ago • 0 comments

/builds/workspace/sofa-framework/PR-4852/ubuntu_gcc_options_release/src/applications/plugins/SofaCUDA/sofa/gpu/cuda/mycuda.cu: In function 'void sofa::gpu::cuda::mycudaGLRegisterBufferObject(int)':
/builds/workspace/sofa-framework/PR-4852/ubuntu_gcc_options_release/src/applications/plugins/SofaCUDA/sofa/gpu/cuda/mycuda.cu:380:37: warning: 'cudaError_t cudaGLRegisterBufferObject(GLuint)' is deprecated [-Wdeprecated-declarations]
  380 |     cudaCheck(cudaGLRegisterBufferObject((GLuint)id),"cudaGLRegisterBufferObject");
      |           ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
/usr/local/cuda/include/cuda_gl_interop.h:333:46: note: declared here
  333 | extern __CUDA_DEPRECATED __host__ cudaError_t CUDARTAPI cudaGLRegisterBufferObject(GLuint bufObj);
      |                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~
/builds/workspace/sofa-framework/PR-4852/ubuntu_gcc_options_release/src/applications/plugins/SofaCUDA/sofa/gpu/cuda/mycuda.cu: In function 'void sofa::gpu::cuda::mycudaGLUnregisterBufferObject(int)':
/builds/workspace/sofa-framework/PR-4852/ubuntu_gcc_options_release/src/applications/plugins/SofaCUDA/sofa/gpu/cuda/mycuda.cu:385:39: warning: 'cudaError_t cudaGLUnregisterBufferObject(GLuint)' is deprecated [-Wdeprecated-declarations]
  385 |     cudaCheck(cudaGLUnregisterBufferObject((GLuint)id),"cudaGLUnregisterBufferObject");
      |           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
/usr/local/cuda/include/cuda_gl_interop.h:410:46: note: declared here
  410 | extern __CUDA_DEPRECATED __host__ cudaError_t CUDARTAPI cudaGLUnregisterBufferObject(GLuint bufObj);
      |                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/builds/workspace/sofa-framework/PR-4852/ubuntu_gcc_options_release/src/applications/plugins/SofaCUDA/sofa/gpu/cuda/mycuda.cu: In function 'void sofa::gpu::cuda::mycudaGLMapBufferObject(void**, int)':
/builds/workspace/sofa-framework/PR-4852/ubuntu_gcc_options_release/src/applications/plugins/SofaCUDA/sofa/gpu/cuda/mycuda.cu:390:32: warning: 'cudaError_t cudaGLMapBufferObject(void**, GLuint)' is deprecated [-Wdeprecated-declarations]
  390 |     cudaCheck(cudaGLMapBufferObject(ptr, (GLuint)id),"cudaGLMapBufferObject");
      |           ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
/usr/local/cuda/include/cuda_gl_interop.h:362:46: note: declared here
  362 | extern __CUDA_DEPRECATED __host__ cudaError_t CUDARTAPI cudaGLMapBufferObject(void **devPtr, GLuint bufObj);
      |                                              ^~~~~~~~~~~~~~~~~~~~~
/builds/workspace/sofa-framework/PR-4852/ubuntu_gcc_options_release/src/applications/plugins/SofaCUDA/sofa/gpu/cuda/mycuda.cu: In function 'void sofa::gpu::cuda::mycudaGLUnmapBufferObject(int)':
/builds/workspace/sofa-framework/PR-4852/ubuntu_gcc_options_release/src/applications/plugins/SofaCUDA/sofa/gpu/cuda/mycuda.cu:395:34: warning: 'cudaError_t cudaGLUnmapBufferObject(GLuint)' is deprecated [-Wdeprecated-declarations]
  395 |     cudaCheck(cudaGLUnmapBufferObject((GLuint)id),"cudaGLUnmapBufferObject");
      |           ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
/usr/local/cuda/include/cuda_gl_interop.h:388:46: note: declared here
  388 | extern __CUDA_DEPRECATED __host__ cudaError_t CUDARTAPI cudaGLUnmapBufferObject(GLuint bufObj);
      |                                              ^~~~~~~~~~~~~~~~~~~~~~~

alxbilger avatar Jul 30 '24 12:07 alxbilger