summaryrefslogtreecommitdiff
path: root/libcuda/cuda_runtime_api.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libcuda/cuda_runtime_api.cc')
-rw-r--r--libcuda/cuda_runtime_api.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/libcuda/cuda_runtime_api.cc b/libcuda/cuda_runtime_api.cc
index eda8d8e..abe5337 100644
--- a/libcuda/cuda_runtime_api.cc
+++ b/libcuda/cuda_runtime_api.cc
@@ -1472,6 +1472,7 @@ 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.
+#if (CUDART_VERSION >= 6000)
char fname2[1024];
snprintf(fname2,1024,"_cuobjdump_list_ptx_XXXXXX");
int fd2=mkstemp(fname2);
@@ -1510,6 +1511,7 @@ void extract_code_using_cuobjdump(){
}
}
}
+#endif
//TODO: redundant to dump twice. how can it be prevented?
//dump only for specific arch
char fname[1024];