diff --git a/PG-PuReMD/src/cuda/cuda_forces.cu b/PG-PuReMD/src/cuda/cuda_forces.cu index 43ea11bf25b6a09a9da27b9c3c4dea991b18c0aa..6e18ff81b1bfdaad1564e9ad9a4a5dd37490b601 100644 --- a/PG-PuReMD/src/cuda/cuda_forces.cu +++ b/PG-PuReMD/src/cuda/cuda_forces.cu @@ -806,7 +806,7 @@ CUDA_GLOBAL void k_estimate_storages_cm_half( reax_atom *my_atoms, /* round up to the nearest multiple of 32 to ensure that reads along * rows can be coalesced for 1 warp per row SpMV implementation */ max_cm_entries[i] = MAX( ((int) CEIL( num_cm_entries * SAFE_ZONE ) - + 0x0000001F) & 0x111111E0, MIN_CM_ENTRIES ); + + 0x0000001F) & 0xFFFFFFE0, MIN_CM_ENTRIES ); } @@ -850,7 +850,7 @@ CUDA_GLOBAL void k_estimate_storages_cm_full( control_params *control, /* round up to the nearest multiple of 32 to ensure that reads along * rows can be coalesced for 1 warp per row SpMV implementation */ max_cm_entries[i] = MAX( ((int) CEIL( num_cm_entries * SAFE_ZONE ) - + 0x0000001F) & 0x111111E0, MIN_CM_ENTRIES ); + + 0x0000001F) & 0xFFFFFFE0, MIN_CM_ENTRIES ); }