diff options
| author | Tor Aamodt <[email protected]> | 2018-03-31 06:01:23 +0000 |
|---|---|---|
| committer | Tor Aamodt <[email protected]> | 2018-03-31 06:01:23 +0000 |
| commit | 177d02254ae38b6331b17dd6cd139b570a03c589 (patch) | |
| tree | 5d8efad5446f1a33bc5cacfc75b988efc5b7d3aa /libcuda | |
| parent | 305c6bc0b3095564baca0d3592749de74d598022 (diff) | |
restore code that selects ptx code that exists
Diffstat (limited to 'libcuda')
| -rw-r--r-- | libcuda/cuda_runtime_api.cc | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/libcuda/cuda_runtime_api.cc b/libcuda/cuda_runtime_api.cc index e4ae251..6cf21dd 100644 --- a/libcuda/cuda_runtime_api.cc +++ b/libcuda/cuda_runtime_api.cc @@ -1873,8 +1873,6 @@ void cuobjdumpParseBinary(unsigned int handle){ return; } - //Why to search for capability value if we can directly find it in device info? - #if 0 unsigned max_capability = 0; for ( std::list<cuobjdumpSection*>::iterator iter = cuobjdumpSectionList.begin(); iter != cuobjdumpSectionList.end(); @@ -1883,8 +1881,6 @@ void cuobjdumpParseBinary(unsigned int handle){ if (capability > max_capability) max_capability = capability; } if (max_capability > 20) printf("WARNING: No guarantee that PTX will be parsed for SM version %u\n", max_capability); - #endif - unsigned max_capability = context->get_device()->get_gpgpu()->get_config().get_forced_max_capability(); cuobjdumpPTXSection* ptx = NULL; const char* pre_load = getenv("CUOBJDUMP_SIM_FILE"); |
