Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use of deprecated CUDA functions #4871

Open
alxbilger opened this issue Jul 30, 2024 · 0 comments
Open

Use of deprecated CUDA functions #4871

alxbilger opened this issue Jul 30, 2024 · 0 comments
Labels
issue: bug (minor) Bug affecting only some users or with no major impact on the framework

Comments

@alxbilger
Copy link
Contributor

/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 alxbilger added the issue: bug (minor) Bug affecting only some users or with no major impact on the framework label Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue: bug (minor) Bug affecting only some users or with no major impact on the framework
Projects
None yet
Development

No branches or pull requests

1 participant