Skip to content

Commit 3db1c85

Browse files
authored
Merge pull request brucefan1983#856 from BBBuZHIDAO/sort_ilp_neigh_list
sort big ilp nl to get the same results
2 parents 59fef82 + 6410e40 commit 3db1c85

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/force/neighbor.cu

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,10 @@ void find_neighbor_ilp(
499499
const int MN = NL.size() / NN.size();
500500
gpu_sort_neighbor_list_ilp<<<N, min(1024, MN), MN * sizeof(int)>>>(N, NN.data(), NL.data());
501501
GPU_CHECK_KERNEL
502+
503+
const int big_ilp_MN = big_ilp_NL.size() / big_ilp_NN.size();
504+
gpu_sort_neighbor_list<<<N, big_ilp_MN, big_ilp_MN * sizeof(int)>>>(N, big_ilp_NN.data(), big_ilp_NL.data());
505+
GPU_CHECK_KERNEL
502506
}
503507

504508
static __global__ void gpu_find_neighbor_ON1_SW(

0 commit comments

Comments
 (0)