Skip to content

Commit 2df64bc

Browse files
committed
Improved prootbuf upgrades
1 parent aaaffd2 commit 2df64bc

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

paddle/fluid/operators/graph_khop_sampler_imp.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@ inline __device__ bool AttemptInsert(
3030
static_cast<unsigned int>(-1),
3131
static_cast<unsigned int>(id));
3232
if (key == -1 || key == id) {
33-
atomicMin(reinterpret_cast<unsigned int*>(&key_index[pos]), // NOLINT
34-
static_cast<unsigned int>(index)); // NOLINT
33+
atomicMin(
34+
reinterpret_cast<unsigned long long int*>(&key_index[pos]), // NOLINT
35+
static_cast<unsigned long long int>(index)); // NOLINT
3536
return true;
3637
} else {
3738
return false;
@@ -42,8 +43,9 @@ inline __device__ bool AttemptInsert(
4243
static_cast<unsigned long long int>(-1), // NOLINT
4344
static_cast<unsigned long long int>(id)); // NOLINT
4445
if (key == -1 || key == id) {
45-
atomicMin(reinterpret_cast<unsigned int*>(&key_index[pos]), // NOLINT
46-
static_cast<unsigned int>(index)); // NOLINT
46+
atomicMin(
47+
reinterpret_cast<unsigned long long int*>(&key_index[pos]), // NOLINT
48+
static_cast<unsigned long long int>(index)); // NOLINT
4749
return true;
4850
} else {
4951
return false;

0 commit comments

Comments
 (0)