Skip to content

Commit e924fde

Browse files
committed
Assert specific error code from cuGraphExecUpdate
Made-with: Cursor
1 parent 60964fd commit e924fde

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

cuda_core/cuda/core/_graph/_graph_builder.pyx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -818,6 +818,7 @@ class Graph:
818818
with nogil:
819819
err = cydriver.cuGraphExecUpdate(cu_exec, cu_graph, &result_info)
820820
if err != cydriver.CUresult.CUDA_SUCCESS:
821+
assert err == cydriver.CUresult.CUDA_ERROR_GRAPH_EXEC_UPDATE_FAILURE
821822
reason = driver.CUgraphExecUpdateResult(result_info.result)
822823
msg = f"Graph update failed: {reason.__doc__.strip()} ({reason.name})"
823824
raise CUDAError(msg)

0 commit comments

Comments
 (0)