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 6f887a7 commit 602ba50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/pmpl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ void genericKernelWrapper( int const N, DATA_TYPE * & hostData, LAMBDA && func )
std::cout<<"breakpoint0.02: "<<hostData<<std::endl;
genericKernel << < 1, 1 >> > ( std::forward< LAMBDA >( func ), deviceData );
deviceDeviceSynchronize();
deviceMemcpy( hostData, deviceData, N * sizeof(DATA_TYPE), cudaMemcpyDeviceToHost );
deviceMemCpy( hostData, deviceData, N * sizeof(DATA_TYPE), cudaMemcpyDeviceToHost );
#else
hostData = new DATA_TYPE[N];
genericKernel( std::forward< LAMBDA >( func ), hostData );
Expand Down

0 comments on commit 602ba50

Please sign in to comment.