Skip to content

Commit

Permalink
warning fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Robadob committed Jul 14, 2023
1 parent 836d2de commit 7d742a4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ void CUDAEnvironmentDirectedGraphBuffers::syncDevice_async(detail::CUDAScatter&
gpuErrchk(cudaMemsetAsync(v_index_b.d_ptr, UINT_MAX, vertex_count * sizeof(unsigned int), stream));
gpuErrchk(cudaMemsetAsync(d_pbm_swap, 0, 2 * sizeof(unsigned int), stream)); // We will use spare pbm_swap to count errors, save allocating more memory
const unsigned int BLOCK_SZ = 512;
const unsigned int BLOCK_CT = ceil(vertex_count / BLOCK_SZ);
const unsigned int BLOCK_CT = static_cast<unsigned int>(ceil(vertex_count / BLOCK_SZ));
// PBM swap is just
buildIDMap<<<BLOCK_CT, BLOCK_SZ, 0 , stream>>> (static_cast<id_t*>(v_id_b.d_ptr), static_cast<unsigned int*>(v_index_b.d_ptr), vertex_count, d_pbm_swap);
gpuErrchkLaunch()
Expand Down

0 comments on commit 7d742a4

Please sign in to comment.