Skip to content

Commit

Permalink
Device check: use logical && instead of bitwise &
Browse files Browse the repository at this point in the history
Co-authored-by: Aurelien Bouteiller <[email protected]>
  • Loading branch information
devreal and abouteiller authored Nov 7, 2024
1 parent e689240 commit e96cd59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ttg/ttg/parsec/ttg.h
Original file line number Diff line number Diff line change
Expand Up @@ -1086,7 +1086,7 @@ namespace ttg_parsec {
parsec_device_gpu_module_t *gpu_device = (parsec_device_gpu_module_t*)device;
for (int j = 0; (j < parsec_nb_devices) && all_peer_access; ++j) {
if (PARSEC_DEV_IS_GPU(device->type)) {
all_peer_access &= (gpu_device->peer_access_mask & j);
all_peer_access = all_peer_access && (gpu_device->peer_access_mask & (1<<j));
}
}
}
Expand Down

0 comments on commit e96cd59

Please sign in to comment.