summaryrefslogtreecommitdiff
path: root/libcuda/cuda_runtime_api.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libcuda/cuda_runtime_api.cc')
-rw-r--r--libcuda/cuda_runtime_api.cc2
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");