Skip to content

Commit

Permalink
Use the correct device index in taskpool devices_index_mask
Browse files Browse the repository at this point in the history
We should use the linear index [0..nb_devices-1] instead of
device->device_index.

Signed-off-by: Joseph Schuchart <[email protected]>
  • Loading branch information
devreal committed Apr 1, 2024
1 parent 1fd7cf3 commit 4032a95
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 @@ -339,7 +339,7 @@ namespace ttg_parsec {
for(int i = 0; i < (int)parsec_nb_devices; i++) {
parsec_device_module_t *device = parsec_mca_device_get(i);
if( NULL == device ) continue;
tpool->devices_index_mask |= (1 << device->device_index);
tpool->devices_index_mask |= (1 << i);
}

#ifdef TTG_USE_USER_TERMDET
Expand Down

0 comments on commit 4032a95

Please sign in to comment.