summaryrefslogtreecommitdiff
path: root/libcuda
diff options
context:
space:
mode:
authorJin Wang <[email protected]>2014-09-29 14:24:55 -0400
committerJin Wang <[email protected]>2016-07-05 08:59:56 -0400
commit0c5684afcd55e8352fe4b05d9c75a54593417b5f (patch)
tree15d5eeb333184141f6cbbd684f726ac06e9c4ad2 /libcuda
parente6d1487acd58c7db0fc260447ac256a4f71f6916 (diff)
BUG: cuobjdump for sm_35 with CDP
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 e7a534e..bdfc47c 100644
--- a/libcuda/cuda_runtime_api.cc
+++ b/libcuda/cuda_runtime_api.cc
@@ -1326,7 +1326,8 @@ void extract_code_using_cuobjdump(){
printf("Running md5sum using \"%s\"\n", command);
system(command);
// Running cuobjdump using dynamic link to current process
- snprintf(command,1000,"$CUDA_INSTALL_PATH/bin/cuobjdump -ptx -elf -sass %s > %s", app_binary.c_str(), fname);
+ // Needs the option '-all' to extract PTX from CDP-enabled binary
+ snprintf(command,1000,"$CUDA_INSTALL_PATH/bin/cuobjdump -ptx -elf -sass -all %s > %s", app_binary.c_str(), fname);
bool parse_output = true;
int result = system(command);
if(result) {