Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions third_party/amd/backend/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -636,6 +636,10 @@ def format_of(ty):
if (!PyArg_ParseTuple(kernel_metadata, \"iii\", &num_warps, &num_ctas, &shared_memory)) {{
return NULL;
}}

// If num_ctas is equal to one, there is no cooperative grid launch.
launch_cooperative_grid = launch_cooperative_grid && (num_ctas > 1);

// extract launch metadata
if (launch_enter_hook != Py_None){{
PyObject* ret = PyObject_CallOneArg(launch_enter_hook, launch_metadata);
Expand Down
Loading