Loading src/TNL/Algorithms/CudaReductionBuffer.h +2 −1 Original line number Diff line number Diff line Loading @@ -60,12 +60,13 @@ class CudaReductionBuffer CudaReductionBuffer& operator=( CudaReductionBuffer const& copy ); // Not Implemented // private constructor of the singleton inline CudaReductionBuffer( size_t DECLARE_IF_HAVE_CUDA( size = 0 ) ) inline CudaReductionBuffer( size_t size = 0 ) { #ifdef HAVE_CUDA setSize( size ); atexit( CudaReductionBuffer::free_atexit ); #endif (void)size; } inline static void free_atexit( void ) Loading src/TNL/Devices/Cuda.h +2 −1 Original line number Diff line number Diff line Loading @@ -31,7 +31,7 @@ public: } static inline bool setup( const Config::ParameterContainer& DECLARE_IF_HAVE_CUDA(parameters), const String& DECLARE_IF_HAVE_CUDA( prefix = "" )) const String& prefix = "" ) { #ifdef HAVE_CUDA int cudaDevice = parameters.getParameter< int >( prefix + "cuda-device" ); Loading @@ -41,6 +41,7 @@ public: return false; } #endif (void)prefix; return true; } }; Loading Loading
src/TNL/Algorithms/CudaReductionBuffer.h +2 −1 Original line number Diff line number Diff line Loading @@ -60,12 +60,13 @@ class CudaReductionBuffer CudaReductionBuffer& operator=( CudaReductionBuffer const& copy ); // Not Implemented // private constructor of the singleton inline CudaReductionBuffer( size_t DECLARE_IF_HAVE_CUDA( size = 0 ) ) inline CudaReductionBuffer( size_t size = 0 ) { #ifdef HAVE_CUDA setSize( size ); atexit( CudaReductionBuffer::free_atexit ); #endif (void)size; } inline static void free_atexit( void ) Loading
src/TNL/Devices/Cuda.h +2 −1 Original line number Diff line number Diff line Loading @@ -31,7 +31,7 @@ public: } static inline bool setup( const Config::ParameterContainer& DECLARE_IF_HAVE_CUDA(parameters), const String& DECLARE_IF_HAVE_CUDA( prefix = "" )) const String& prefix = "" ) { #ifdef HAVE_CUDA int cudaDevice = parameters.getParameter< int >( prefix + "cuda-device" ); Loading @@ -41,6 +41,7 @@ public: return false; } #endif (void)prefix; return true; } }; Loading