Skip to content

Commit d1f6040

Browse files
authored
Use relaxed memory-order in dynamic_map::find (#702)
1 parent 2303a7a commit d1f6040

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/cuco/detail/dynamic_map_kernels.cuh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ CUCO_KERNEL void find(InputIt first,
389389
auto submap_view = submap_views[i];
390390
auto found = submap_view.find(key, hash, key_equal);
391391
if (found != submap_view.end()) {
392-
found_value = found->second;
392+
found_value = found->second.load(cuda::std::memory_order_relaxed);
393393
break;
394394
}
395395
}
@@ -466,7 +466,7 @@ CUCO_KERNEL void find(InputIt first,
466466
auto submap_view = submap_views[i];
467467
auto found = submap_view.find(tile, key, hash, key_equal);
468468
if (found != submap_view.end()) {
469-
found_value = found->second;
469+
found_value = found->second.load(cuda::std::memory_order_relaxed);
470470
break;
471471
}
472472
}

0 commit comments

Comments
 (0)