Skip to content

Commit

Permalink
Changed static_cast to reinterpret_cast where compiler complained
Browse files Browse the repository at this point in the history
  • Loading branch information
jwyles committed May 22, 2019
1 parent a043985 commit ce987f3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cpp/src/snmg/degree/degree.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ namespace cugraph {
degree_coo<int64_t, double> <<<nblocks, nthreads>>>(static_cast<int64_t>(loc_e),
static_cast<int64_t>(loc_e),
ind,
static_cast<double*>(local_result));
reinterpret_cast<double*>(local_result));
cudaCheckError();
}

Expand All @@ -149,7 +149,7 @@ namespace cugraph {
degree_offsets<int64_t, double> <<<nblocks, nthreads>>>(static_cast<int64_t>(loc_v),
static_cast<int64_t>(loc_e),
off,
static_cast<double*>(local_result
reinterpret_cast<double*>(local_result
+ part_off[i]));
cudaCheckError();
}
Expand All @@ -163,7 +163,7 @@ namespace cugraph {
static_cast<int64_t>(env.get_num_sm() * 32));
nblocks.y = 1;
nblocks.z = 1;
type_convert<double, int64_t> <<<nblocks, nthreads>>>(static_cast<double*>(local_result), glob_v);
type_convert<double, int64_t> <<<nblocks, nthreads>>>(reinterpret_cast<double*>(local_result), glob_v);
cudaCheckError();

// Combining the local results into global results
Expand Down

0 comments on commit ce987f3

Please sign in to comment.