Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
openmm
Commits
abf9bd6b
"ssh:/git@developer.sourcefind.cn:2222/tsoc/openmm.git" did not exist on "4e50d72141b60a7a37ce6f2ef94d49d85a1529b1"
Commit
abf9bd6b
authored
Mar 25, 2013
by
Yutong Zhao
Browse files
Explicitly check for the return code of nvcc in CUDA JIT compilation.
parent
4f911c7a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
platforms/cuda/src/CudaContext.cpp
platforms/cuda/src/CudaContext.cpp
+9
-1
No files found.
platforms/cuda/src/CudaContext.cpp
View file @
abf9bd6b
...
@@ -328,7 +328,15 @@ static bool compileInWindows(const string &command) {
...
@@ -328,7 +328,15 @@ static bool compileInWindows(const string &command) {
return
-
1
;
return
-
1
;
}
}
WaitForSingleObject
(
pi
.
hProcess
,
INFINITE
);
WaitForSingleObject
(
pi
.
hProcess
,
INFINITE
);
return
0
;
DWORD
exitCode
=
-
1
;
if
(
!
GetExitCodeProcess
(
pi
.
hProcess
,
&
exitCode
))
{
throw
(
OpenMMException
(
"Could not get nvcc.exe's exit code
\n
"
));
}
else
{
if
(
exitCode
==
0
)
return
0
;
else
return
-
1
;
}
}
}
#endif
#endif
...
...
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