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
fengzch-das
nunchaku
Commits
df37484a
Commit
df37484a
authored
Mar 08, 2025
by
sxtyzhangzk
Committed by
Zhekai Zhang
Mar 08, 2025
Browse files
[major] checkError should clear cuda last error
This should fix mit-han-lab/nunchaku#162
parent
6070bb5b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
src/common.h
src/common.h
+1
-0
No files found.
src/common.h
View file @
df37484a
...
...
@@ -41,6 +41,7 @@ private:
inline
cudaError_t
checkCUDA
(
cudaError_t
retValue
,
const
std
::
source_location
location
=
std
::
source_location
::
current
())
{
if
(
retValue
!=
cudaSuccess
)
{
(
void
)
cudaGetLastError
();
throw
CUDAError
(
retValue
,
location
);
}
return
retValue
;
...
...
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