summaryrefslogtreecommitdiff
path: root/libcuda
diff options
context:
space:
mode:
authorAmruth <[email protected]>2018-03-29 00:32:09 -0700
committerAmruth <[email protected]>2018-03-29 00:32:09 -0700
commit66107577251189900ba06cce0e8bce036d13079d (patch)
tree0cff0c37706c80d50b42cdf01390623525bf9a69 /libcuda
parent638e18c04bc634fc510236a53d5aa8c22ef3e1ae (diff)
compilation fix
Diffstat (limited to 'libcuda')
-rw-r--r--libcuda/cuda_runtime_api.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/libcuda/cuda_runtime_api.cc b/libcuda/cuda_runtime_api.cc
index abe5337..8426b8e 100644
--- a/libcuda/cuda_runtime_api.cc
+++ b/libcuda/cuda_runtime_api.cc
@@ -1472,13 +1472,14 @@ void extract_code_using_cuobjdump(){
extern bool g_cdp_enabled;
//dump ptx for all individial ptx files into sepearte files which is later used by ptxas.
+ int result=0;
#if (CUDART_VERSION >= 6000)
char fname2[1024];
snprintf(fname2,1024,"_cuobjdump_list_ptx_XXXXXX");
int fd2=mkstemp(fname2);
close(fd2);
snprintf(command,1000,"$CUDA_INSTALL_PATH/bin/cuobjdump -lptx -arch=sm_%u %s > %s", forced_max_capability, app_binary.c_str(), fname2);
- int result = system(command);
+ result = system(command);
if( result != 0 ) {
printf("WARNING: Failed to execute cuobjdump to get list of ptx files \n");
exit(0);