-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Share CUBLAS handle between different CUBLAS matrices (#543)
* share cublas handle between different cuda matrices * add the singleton class implementation, does not work * update the cmake file for different NVIDIA GPU types * set the CMAKE_CUDA_ARCHITECTURES correctly with input GPU type * remove debugging statement and add one comment * clean up the code for cublas handle * update the cublas singleton class * remove duplicated code * fix an env variable bug and clean up more code * clean up unused variable and fix a typo * add std::map to replace the env variables check enforce the c++20 for CUDA code * some minor typo fixes * change the location of the cublas handle * remove the if scope for the mutex lock * query device id in the cublas singleton class * change singleton class to a static std::map variable * use smart pointer to deallocate the cublas handle explicitly --------- Co-authored-by: Jian Sun <[email protected]>
- Loading branch information
1 parent
f8f46df
commit 1fa0bac
Showing
8 changed files
with
49 additions
and
35 deletions.
There are no files selected for viewing
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
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
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