Skip to content

Commit

Permalink
comment update
Browse files Browse the repository at this point in the history
  • Loading branch information
nickjbrowning committed Oct 15, 2024
1 parent 09709c7 commit 0ad7f92
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sphericart/include/dynamic_cuda.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,10 @@ static std::aligned_storage<sizeof(CUDART), alignof(CUDART)>::type cudartBuffer;
static std::aligned_storage<sizeof(CUDADriver), alignof(CUDADriver)>::type cudaDriverBuffer;
static std::aligned_storage<sizeof(NVRTC), alignof(NVRTC)>::type nvrtcBuffer;

// global references, use inline instead of extern as we want to define the implementation here
/*
global references that should be used by any dependent code. Use inline instead of extern as we want
to define the implementation in single-header.
*/
inline CUDART& CUDART_INSTANCE = reinterpret_cast<CUDART&>(cudartBuffer);
inline CUDADriver& CUDA_DRIVER_INSTANCE = reinterpret_cast<CUDADriver&>(cudaDriverBuffer);
inline NVRTC& NVRTC_INSTANCE = reinterpret_cast<NVRTC&>(nvrtcBuffer);
Expand Down

0 comments on commit 0ad7f92

Please sign in to comment.