diff options
| author | Jin Wang <[email protected]> | 2016-07-06 05:18:44 -0400 |
|---|---|---|
| committer | Jin Wang <[email protected]> | 2016-07-06 05:18:44 -0400 |
| commit | 2af85e353bccad8c8536c1d5f039361884b96872 (patch) | |
| tree | 9e84ba2452ddd0d8e76dbf38318312b9c8d715a4 /src/cuda-sim | |
| parent | 9f958e424f2fc952970794efc7647ceae1674d97 (diff) | |
ADD: add knob to enable CDP in gpgpusim config
Diffstat (limited to 'src/cuda-sim')
| -rw-r--r-- | src/cuda-sim/ptx_loader.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/cuda-sim/ptx_loader.cc b/src/cuda-sim/ptx_loader.cc index f7bf70e..a646408 100644 --- a/src/cuda-sim/ptx_loader.cc +++ b/src/cuda-sim/ptx_loader.cc @@ -217,7 +217,11 @@ void gpgpu_ptxinfo_load_from_string( const char *p_for_info, unsigned source_num #if CUDART_VERSION >= 3000 if (sm_version == 0) sm_version = 20; - snprintf(extra_flags,1024,"--gpu-name=sm_%u",sm_version); + extern bool g_cdp_enabled; + if(!g_cdp_enabled) + snprintf(extra_flags,1024,"--gpu-name=sm_%u",sm_version); + else + snprintf(extra_flags,1024,"--compile-only --gpu-name=sm_%u",sm_version); #endif snprintf(commandline,1024,"$CUDA_INSTALL_PATH/bin/ptxas %s -v %s --output-file /dev/null 2> %s", |
