diff --git a/sphericart/include/dynamic_cuda.hpp b/sphericart/include/dynamic_cuda.hpp index 1a593aea..64c4ab7e 100644 --- a/sphericart/include/dynamic_cuda.hpp +++ b/sphericart/include/dynamic_cuda.hpp @@ -335,7 +335,10 @@ static std::aligned_storage::type cudartBuffer; static std::aligned_storage::type cudaDriverBuffer; static std::aligned_storage::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(cudartBuffer); inline CUDADriver& CUDA_DRIVER_INSTANCE = reinterpret_cast(cudaDriverBuffer); inline NVRTC& NVRTC_INSTANCE = reinterpret_cast(nvrtcBuffer);