From ce987f3e0667d6dea72081de597675f130373755 Mon Sep 17 00:00:00 2001 From: James Wyles Date: Wed, 22 May 2019 10:15:54 -0600 Subject: [PATCH] Changed static_cast to reinterpret_cast where compiler complained --- cpp/src/snmg/degree/degree.cuh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cpp/src/snmg/degree/degree.cuh b/cpp/src/snmg/degree/degree.cuh index 135496fd37f..1e22da4ef4b 100644 --- a/cpp/src/snmg/degree/degree.cuh +++ b/cpp/src/snmg/degree/degree.cuh @@ -132,7 +132,7 @@ namespace cugraph { degree_coo <<>>(static_cast(loc_e), static_cast(loc_e), ind, - static_cast(local_result)); + reinterpret_cast(local_result)); cudaCheckError(); } @@ -149,7 +149,7 @@ namespace cugraph { degree_offsets <<>>(static_cast(loc_v), static_cast(loc_e), off, - static_cast(local_result + reinterpret_cast(local_result + part_off[i])); cudaCheckError(); } @@ -163,7 +163,7 @@ namespace cugraph { static_cast(env.get_num_sm() * 32)); nblocks.y = 1; nblocks.z = 1; - type_convert <<>>(static_cast(local_result), glob_v); + type_convert <<>>(reinterpret_cast(local_result), glob_v); cudaCheckError(); // Combining the local results into global results