Skip to content

Commit

Permalink
debugging gpu test failures on ubi
Browse files Browse the repository at this point in the history
  • Loading branch information
rrsettgast committed May 23, 2024
1 parent 602ba50 commit ec9eef1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/common/pmpl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,9 @@ void genericKernelWrapper( int const N, DATA_TYPE * & hostData, LAMBDA && func )
genericKernel << < 1, 1 >> > ( std::forward< LAMBDA >( func ), deviceData );
deviceDeviceSynchronize();
deviceMemCpy( hostData, deviceData, N * sizeof(DATA_TYPE), cudaMemcpyDeviceToHost );
deviceFree( deviceData );
#else
hostData = new DATA_TYPE[N];
SHIVA_UNUSED_VAR( N );
genericKernel( std::forward< LAMBDA >( func ), hostData );
#endif
}
Expand Down

0 comments on commit ec9eef1

Please sign in to comment.