diff options
| author | Andrew M. B. Boktor <[email protected]> | 2012-05-03 10:17:06 -0800 |
|---|---|---|
| committer | Andrew Boktor <[email protected]> | 2014-08-14 13:19:37 -0700 |
| commit | 56c538a920153381a02927b327161d9d56f9ebf7 (patch) | |
| tree | 60b205600df1d2cb525be666b6abf2a60a121112 /libcuda/cuda_runtime_api.cc | |
| parent | e83f1eeb3329a29d29bca22fe2b919c71e3a611a (diff) | |
Handling the case where force_max_capability is set to 0 (means no restriction)
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 12280]
Diffstat (limited to 'libcuda/cuda_runtime_api.cc')
| -rw-r--r-- | libcuda/cuda_runtime_api.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcuda/cuda_runtime_api.cc b/libcuda/cuda_runtime_api.cc index 0e52c89..e9744d0 100644 --- a/libcuda/cuda_runtime_api.cc +++ b/libcuda/cuda_runtime_api.cc @@ -1185,7 +1185,7 @@ void extract_ptx(){ unsigned get_best_version(std::list<cuobjdumpSection> sectionlist, CUctx_st *context){ unsigned forced_max_capability = context->get_device()->get_gpgpu()->get_config().get_forced_max_capability(); - if (forced_max_capability >=20 && + if (((forced_max_capability==0)||(forced_max_capability >=20)) && context->get_device()->get_gpgpu()->get_config().convert_to_ptxplus()) { printf("GPGPU-Sim: WARNING: Capability >= 20 are not supported in PTXPlus\n" "\tSetting forced_max_capability to 19\n"); |
