Use SM version instead of PTX version when reporting HW capabilities.

This commit is contained in:
Allison Vacanti
2022-02-15 14:36:40 -05:00
parent 48d94259b4
commit 9d0b2230bc

View File

@@ -127,14 +127,14 @@ try
catch (nvml::call_failed &e)
{
if (e.get_error_code() == NVML_ERROR_NOT_SUPPORTED &&
this->get_ptx_version() < 700)
this->get_sm_version() < 700)
{
NVBENCH_THROW(std::runtime_error,
"GPU clock rates can only be modified for Volta and later. "
"Device: {} ({}) SM: {} < {}",
this->get_name(),
this->get_id(),
this->get_ptx_version(),
this->get_sm_version(),
700);
}
else if (e.get_error_code() == NVML_ERROR_NO_PERMISSION)