summaryrefslogtreecommitdiff
path: root/libcuda
diff options
context:
space:
mode:
authorAmruth <[email protected]>2018-03-29 00:25:23 -0700
committerAmruth <[email protected]>2018-03-29 00:25:23 -0700
commit638e18c04bc634fc510236a53d5aa8c22ef3e1ae (patch)
tree89587a3bd47fca32bdb495fc063b765dc66aa195 /libcuda
parente76a32ee85ef8a132a11cbce69a854084215e728 (diff)
cuobjdump -lptx flag is not supported by cuda 5 and lower
Diffstat (limited to 'libcuda')
-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];