SWDEV-439298 - Correct odd/even logic.
Change-Id: Iafe1b3915b513207a5ef24cf145ac1e8e39a1672
[ROCm/hip-tests commit: 3da249e472]
Este cometimento está contido em:
cometido por
Rakesh Roy
ascendente
c252216c70
cometimento
f6e34b2cec
@@ -218,7 +218,7 @@ static __global__ void test_kernel(unsigned int* atomic_val, unsigned int* globa
|
|||||||
unsigned grid_rank = mgrid.grid_rank();
|
unsigned grid_rank = mgrid.grid_rank();
|
||||||
unsigned inter_gpu_offset = (grid_rank + i) % mgrid.num_grids();
|
unsigned inter_gpu_offset = (grid_rank + i) % mgrid.num_grids();
|
||||||
if (rank == (grid.size() - 1)) {
|
if (rank == (grid.size() - 1)) {
|
||||||
if (i % mgrid.num_grids() == 0) {
|
if (i % 2 == 0) {
|
||||||
global_array[grid_rank] += 2;
|
global_array[grid_rank] += 2;
|
||||||
} else {
|
} else {
|
||||||
global_array[inter_gpu_offset] *= 2;
|
global_array[inter_gpu_offset] *= 2;
|
||||||
|
|||||||
Criar uma nova questão referindo esta
Bloquear um utilizador