Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
tilelang
Commits
5fafcb32
"src/vscode:/vscode.git/clone" did not exist on "8c385cf5cf25219d235e52be50d1d3f4a0a21f87"
Commit
5fafcb32
authored
Mar 12, 2025
by
penguin_wwy
Committed by
GitHub
Mar 12, 2025
Browse files
[Dev] Add the failed nvcc command to the exception message (#189)
parent
fe0de672
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
tilelang/contrib/nvcc.py
tilelang/contrib/nvcc.py
+4
-3
No files found.
tilelang/contrib/nvcc.py
View file @
5fafcb32
...
@@ -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
+=
"
\n
Compilation 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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment