Skip to content

Commit

Permalink
Use the right parsec device module types
Browse files Browse the repository at this point in the history
Signed-off-by: Joseph Schuchart <schuchart@icl.utk.edu>
  • Loading branch information
devreal committed Nov 16, 2023
1 parent 86b92db commit 5aac5c2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ttg/ttg/parsec/ttg.h
Original file line number Diff line number Diff line change
Expand Up @@ -1499,7 +1499,7 @@ namespace ttg_parsec {

task->dev_ptr->device = device;

switch(device->type) {
switch(device->super.type) {

#if defined(PARSEC_HAVE_DEV_CUDA_SUPPORT)
case PARSEC_DEV_CUDA:
Expand All @@ -1508,7 +1508,7 @@ namespace ttg_parsec {
* task-class to determine the number of flows. */
gpu_task->stage_in = static_device_stage_in_hook;
gpu_task->stage_out = parsec_default_gpu_stage_out;
return parsec_device_kernel_scheduler(device, es, gpu_task);
return parsec_device_kernel_scheduler(&device->super, es, gpu_task);
}
break;
#endif
Expand All @@ -1517,7 +1517,7 @@ namespace ttg_parsec {
if constexpr (Space == ttg::ExecutionSpace::HIP) {
gpu_task->stage_in = static_device_stage_in_hook;
gpu_task->stage_out = parsec_default_gpu_stage_out;
return parsec_device_kernel_scheduler(device, es, gpu_task);
return parsec_device_kernel_scheduler(&device->super, es, gpu_task);
}
break;
#endif // PARSEC_HAVE_DEV_HIP_SUPPORT
Expand All @@ -1526,14 +1526,14 @@ namespace ttg_parsec {
if constexpr (Space == ttg::ExecutionSpace::L0) {
gpu_task->stage_in = static_device_stage_in_hook;
gpu_task->stage_out = parsec_default_gpu_stage_out;
return parsec_device_kernel_scheduler(device, es, gpu_task);
return parsec_device_kernel_scheduler(&device->super, es, gpu_task);
}
break;
#endif // PARSEC_HAVE_DEV_LEVEL_ZERO_SUPPORT
default:
break;
}
ttg::print_error(task->tt->get_name(), " : received mismatching device type ", (int)device->type, " from PaRSEC");
ttg::print_error(task->tt->get_name(), " : received mismatching device type ", (int)device->super.type, " from PaRSEC");
ttg::abort();
return PARSEC_HOOK_RETURN_DONE; // will not be reacehed
}
Expand Down

0 comments on commit 5aac5c2

Please sign in to comment.