"src/vscode:/vscode.git/clone" did not exist on "8c385cf5cf25219d235e52be50d1d3f4a0a21f87"
Commit 5fafcb32 authored by penguin_wwy's avatar penguin_wwy Committed by GitHub
Browse files

[Dev] Add the failed nvcc command to the exception message (#189)

parent fe0de672
...@@ -113,9 +113,10 @@ def compile_cuda(code, ...@@ -113,9 +113,10 @@ def compile_cuda(code,
print(py_str(out)) print(py_str(out))
if proc.returncode != 0: if proc.returncode != 0:
msg = code msg = f"{code}\n" \
msg += "\nCompilation error:\n" f"Compilation error:\n" \
msg += py_str(out) f"{py_str(out)}\n" \
f"Command: {' '.join(cmd)}\n"
raise RuntimeError(msg) raise RuntimeError(msg)
with open(file_target, "rb") as f: with open(file_target, "rb") as f:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment