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

BUG: Remove CudaContextManager and use cudaSetDevice #34

Merged

Commits on Feb 14, 2024

  1. BUG: Remove CudaContextManager class and use cudaSetDevice

    Use the primary context with cudaSetDevice() introduced by Cuda 7 (https://developer.download.nvidia.com/compute/cuda/7_0/Prod/doc/CUDA_Toolkit_Release_Notes.pdf) instead of a new one. cudaSetDevice is called before every memory transfer between the CPU and GPU to be sure that the context is set for the current thread, see https://developer.nvidia.com/blog/cuda-pro-tip-always-set-current-device-avoid-multithreading-bugs/.
    LAURENDEAU Matthieu committed Feb 14, 2024
    Configuration menu
    Copy the full SHA
    a8b1e64 View commit details
    Browse the repository at this point in the history