Loading src/TNL/DevicePointer.h +1 −1 Original line number Diff line number Diff line Loading @@ -384,7 +384,7 @@ class DevicePointer< Object, Devices::Cuda > : public SmartPointer { Assert( this->pointer, ); Assert( this->cuda_pointer, ); cudaMemcpy( this->cuda_pointer, this->pointer, sizeof( ObjectType ), cudaMemcpyHostToDevice ); cudaMemcpy( (void*) this->cuda_pointer, (void*) this->pointer, sizeof( ObjectType ), cudaMemcpyHostToDevice ); if( ! checkCudaDevice ) { return false; } Loading src/TNL/Devices/Cuda_impl.h +2 −2 Original line number Diff line number Diff line Loading @@ -69,7 +69,7 @@ ObjectType* Cuda::passToDevice( const ObjectType& object ) cudaMemcpyHostToDevice ) != cudaSuccess ) { checkCudaDevice; cudaFree( deviceObject ); cudaFree( ( void* ) deviceObject ); return 0; } return deviceObject; Loading Loading @@ -126,7 +126,7 @@ template< typename ObjectType > void Cuda::freeFromDevice( ObjectType* deviceObject ) { #ifdef HAVE_CUDA cudaFree( deviceObject ); cudaFree( ( void* ) deviceObject ); checkCudaDevice; #else Assert( false, std::cerr << "CUDA support is missing." ); Loading src/TNL/SharedPointer.h +2 −2 Original line number Diff line number Diff line Loading @@ -394,7 +394,7 @@ class SharedPointer< Object, Devices::Cuda, lazy > : public SmartPointer this->pointer->~ObjectType(); new ( this->pointer ) ObjectType( args... ); #ifdef HAVE_CUDA cudaMemcpy( this->cuda_pointer, this->pointer, sizeof( Object ), cudaMemcpyHostToDevice ); cudaMemcpy( (void*) this->cuda_pointer, (void*) this->pointer, sizeof( Object ), cudaMemcpyHostToDevice ); #endif return true; } Loading Loading @@ -545,7 +545,7 @@ class SharedPointer< Object, Devices::Cuda, lazy > : public SmartPointer #endif Assert( this->pointer, ); Assert( this->cuda_pointer, ); cudaMemcpy( this->cuda_pointer, this->pointer, sizeof( ObjectType ), cudaMemcpyHostToDevice ); cudaMemcpy( (void*) this->cuda_pointer, (void*) this->pointer, sizeof( ObjectType ), cudaMemcpyHostToDevice ); if( ! checkCudaDevice ) { return false; } Loading src/TNL/UniquePointer.h +1 −1 Original line number Diff line number Diff line Loading @@ -191,7 +191,7 @@ class UniquePointer< Object, Devices::Cuda > : public SmartPointer #ifdef HAVE_CUDA if( this->modified ) { cudaMemcpy( this->cuda_pointer, this->pointer, sizeof( Object ), cudaMemcpyHostToDevice ); cudaMemcpy( (void*) this->cuda_pointer, (void*) this->pointer, sizeof( Object ), cudaMemcpyHostToDevice ); if( ! checkCudaDevice ) return false; return true; Loading Loading
src/TNL/DevicePointer.h +1 −1 Original line number Diff line number Diff line Loading @@ -384,7 +384,7 @@ class DevicePointer< Object, Devices::Cuda > : public SmartPointer { Assert( this->pointer, ); Assert( this->cuda_pointer, ); cudaMemcpy( this->cuda_pointer, this->pointer, sizeof( ObjectType ), cudaMemcpyHostToDevice ); cudaMemcpy( (void*) this->cuda_pointer, (void*) this->pointer, sizeof( ObjectType ), cudaMemcpyHostToDevice ); if( ! checkCudaDevice ) { return false; } Loading
src/TNL/Devices/Cuda_impl.h +2 −2 Original line number Diff line number Diff line Loading @@ -69,7 +69,7 @@ ObjectType* Cuda::passToDevice( const ObjectType& object ) cudaMemcpyHostToDevice ) != cudaSuccess ) { checkCudaDevice; cudaFree( deviceObject ); cudaFree( ( void* ) deviceObject ); return 0; } return deviceObject; Loading Loading @@ -126,7 +126,7 @@ template< typename ObjectType > void Cuda::freeFromDevice( ObjectType* deviceObject ) { #ifdef HAVE_CUDA cudaFree( deviceObject ); cudaFree( ( void* ) deviceObject ); checkCudaDevice; #else Assert( false, std::cerr << "CUDA support is missing." ); Loading
src/TNL/SharedPointer.h +2 −2 Original line number Diff line number Diff line Loading @@ -394,7 +394,7 @@ class SharedPointer< Object, Devices::Cuda, lazy > : public SmartPointer this->pointer->~ObjectType(); new ( this->pointer ) ObjectType( args... ); #ifdef HAVE_CUDA cudaMemcpy( this->cuda_pointer, this->pointer, sizeof( Object ), cudaMemcpyHostToDevice ); cudaMemcpy( (void*) this->cuda_pointer, (void*) this->pointer, sizeof( Object ), cudaMemcpyHostToDevice ); #endif return true; } Loading Loading @@ -545,7 +545,7 @@ class SharedPointer< Object, Devices::Cuda, lazy > : public SmartPointer #endif Assert( this->pointer, ); Assert( this->cuda_pointer, ); cudaMemcpy( this->cuda_pointer, this->pointer, sizeof( ObjectType ), cudaMemcpyHostToDevice ); cudaMemcpy( (void*) this->cuda_pointer, (void*) this->pointer, sizeof( ObjectType ), cudaMemcpyHostToDevice ); if( ! checkCudaDevice ) { return false; } Loading
src/TNL/UniquePointer.h +1 −1 Original line number Diff line number Diff line Loading @@ -191,7 +191,7 @@ class UniquePointer< Object, Devices::Cuda > : public SmartPointer #ifdef HAVE_CUDA if( this->modified ) { cudaMemcpy( this->cuda_pointer, this->pointer, sizeof( Object ), cudaMemcpyHostToDevice ); cudaMemcpy( (void*) this->cuda_pointer, (void*) this->pointer, sizeof( Object ), cudaMemcpyHostToDevice ); if( ! checkCudaDevice ) return false; return true; Loading