Skip to content

Commit

Permalink
[cuda] Mark event related APIs as unimplemented (iree-org#15382)
Browse files Browse the repository at this point in the history
Events aren't used by the compiler right now.

Progress towards iree-org#13245
  • Loading branch information
antiagainst authored and ramiro050 committed Dec 19, 2023
1 parent 7144c1e commit 31ddbb9
Showing 1 changed file with 3 additions and 27 deletions.
30 changes: 3 additions & 27 deletions experimental/cuda2/graph_command_buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -319,29 +319,13 @@ static iree_status_t iree_hal_cuda2_graph_command_buffer_execution_barrier(
static iree_status_t iree_hal_cuda2_graph_command_buffer_signal_event(
iree_hal_command_buffer_t* base_command_buffer, iree_hal_event_t* event,
iree_hal_execution_stage_t source_stage_mask) {
iree_hal_cuda2_graph_command_buffer_t* command_buffer =
iree_hal_cuda2_graph_command_buffer_cast(base_command_buffer);
IREE_RETURN_IF_ERROR(
iree_hal_cuda2_graph_command_buffer_flush_collectives(command_buffer));

// TODO: Implement barrier with Graph edges. Right now all the nodes are
// serialized so this is a no-op.

return iree_ok_status();
return iree_make_status(IREE_STATUS_UNIMPLEMENTED, "event not yet supported");
}

static iree_status_t iree_hal_cuda2_graph_command_buffer_reset_event(
iree_hal_command_buffer_t* base_command_buffer, iree_hal_event_t* event,
iree_hal_execution_stage_t source_stage_mask) {
iree_hal_cuda2_graph_command_buffer_t* command_buffer =
iree_hal_cuda2_graph_command_buffer_cast(base_command_buffer);
IREE_RETURN_IF_ERROR(
iree_hal_cuda2_graph_command_buffer_flush_collectives(command_buffer));

// TODO: Implement barrier with Graph edges. Right now all the nodes are
// serialized so this is a no-op.

return iree_ok_status();
return iree_make_status(IREE_STATUS_UNIMPLEMENTED, "event not yet supported");
}

static iree_status_t iree_hal_cuda2_graph_command_buffer_wait_events(
Expand All @@ -353,15 +337,7 @@ static iree_status_t iree_hal_cuda2_graph_command_buffer_wait_events(
const iree_hal_memory_barrier_t* memory_barriers,
iree_host_size_t buffer_barrier_count,
const iree_hal_buffer_barrier_t* buffer_barriers) {
iree_hal_cuda2_graph_command_buffer_t* command_buffer =
iree_hal_cuda2_graph_command_buffer_cast(base_command_buffer);
IREE_RETURN_IF_ERROR(
iree_hal_cuda2_graph_command_buffer_flush_collectives(command_buffer));

// TODO: Implement barrier with Graph edges. Right now all the nodes are
// serialized so this is a no-op.

return iree_ok_status();
return iree_make_status(IREE_STATUS_UNIMPLEMENTED, "event not yet supported");
}

static iree_status_t iree_hal_cuda2_graph_command_buffer_discard_buffer(
Expand Down

0 comments on commit 31ddbb9

Please sign in to comment.