Skip to content

Commit

Permalink
add marker
Browse files Browse the repository at this point in the history
  • Loading branch information
Moz committed Nov 2, 2023
1 parent 34c318d commit 4062a89
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cuda/CudaPlotPhase3Step3.cu
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,8 @@ void CudaK32PlotPhase3Step3( CudaK32PlotContext& cx )
s3.parksOut.Reset();

// Copy map slice counts (for the next step 2)
CudaErrCheck( cudaMemcpyAsync( cx.hostBucketSlices, cx.devSliceCounts, sizeof( uint32 , 51) * BBCU_BUCKET_COUNT * BBCU_BUCKET_COUNT,
cudaMemcpyDeviceToHost, downloadStream ) );
CudaErrCheck( cudaMemcpyAsync( cx.hostBucketSlices, cx.devSliceCounts, sizeof( uint32) * BBCU_BUCKET_COUNT * BBCU_BUCKET_COUNT,
cudaMemcpyDeviceToHost, downloadStream ) , 51);

CudaErrCheck( cudaStreamSynchronize( downloadStream ) , 52);
memcpy( &s3.prunedBucketSlices[0][0], cx.hostBucketSlices, sizeof( uint32 ) * BBCU_BUCKET_COUNT * BBCU_BUCKET_COUNT );
Expand Down
2 changes: 1 addition & 1 deletion cuda/chacha8.cu
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ void GenF1Cuda( CudaK32PlotContext& cx )
}

// Copy bucket slices to host
CudaErrCheck( cudaMemcpyAsync( cx.hostBucketSlices, cx.devSliceCounts, sizeof( uint32 , 100) * BBCU_BUCKET_COUNT * BBCU_BUCKET_COUNT,
CudaErrCheck( cudaMemcpyAsync( cx.hostBucketSlices, cx.devSliceCounts, sizeof( uint32) * BBCU_BUCKET_COUNT * BBCU_BUCKET_COUNT,
cudaMemcpyDeviceToHost, cx.computeStream ), 999 );

CudaErrCheck( cudaStreamSynchronize( cx.computeStream ) , 101);
Expand Down

0 comments on commit 4062a89

Please sign in to comment.