-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BUG: Remove CudaContextManager class and use cudaSetDevice
Prevent the destruction of the Cuda context during use (e.g. cupy package) Create 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) CHANGES: * Remove CudaContextManager class * Replace cuCtxSetCurrent() by cudaSetDevice() * Add m_Device in CudaDataManager constructor * Update CMakeLists.txt
- Loading branch information
LAURENDEAU Matthieu
committed
Feb 12, 2024
1 parent
9d3fe9b
commit 1a8f40a
Showing
6 changed files
with
9 additions
and
199 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
set(CudaCommon_SRCS | ||
itkCudaContextManager.cxx | ||
itkCudaDataManager.cxx | ||
itkCudaUtil.cxx | ||
itkCudaMemoryProbe.cxx | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters