From 56c538a920153381a02927b327161d9d56f9ebf7 Mon Sep 17 00:00:00 2001 From: "Andrew M. B. Boktor" Date: Thu, 3 May 2012 10:17:06 -0800 Subject: 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] --- libcuda/cuda_runtime_api.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libcuda') 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 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"); -- cgit v1.3