From 638e18c04bc634fc510236a53d5aa8c22ef3e1ae Mon Sep 17 00:00:00 2001 From: Amruth Date: Thu, 29 Mar 2018 00:25:23 -0700 Subject: cuobjdump -lptx flag is not supported by cuda 5 and lower --- libcuda/cuda_runtime_api.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libcuda/cuda_runtime_api.cc') 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]; -- cgit v1.3