summaryrefslogtreecommitdiff
path: root/libcuda
diff options
context:
space:
mode:
authorJonathan <[email protected]>2018-07-18 17:14:41 -0700
committerJonathan <[email protected]>2018-07-18 17:14:41 -0700
commit3a09960577b9c9cbcce8fedeef8874ccc533f378 (patch)
tree30ca7bc274277ab3fc0b628ccddf2e2489844fa2 /libcuda
parent742919652e8c4bd3ac33248175bc7fca0e419227 (diff)
added c++filt that works better, param offset dumping, protection for failing system calls
Diffstat (limited to 'libcuda')
-rw-r--r--libcuda/cuda_runtime_api.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/libcuda/cuda_runtime_api.cc b/libcuda/cuda_runtime_api.cc
index 866fa3b..db4f58e 100644
--- a/libcuda/cuda_runtime_api.cc
+++ b/libcuda/cuda_runtime_api.cc
@@ -1797,7 +1797,10 @@ void extract_code_using_cuobjdump(){
//Running cuobjdump using dynamic link to current process
snprintf(command,1000,"md5sum %s ", app_binary.c_str());
printf("Running md5sum using \"%s\"\n", command);
- system(command);
+ if(system(command)){
+ std::cout << "Failed to execute: " << command << std::endl;
+ exit(1);
+ }
// Running cuobjdump using dynamic link to current process
// Needs the option '-all' to extract PTX from CDP-enabled binary
extern bool g_cdp_enabled;