summaryrefslogtreecommitdiff
path: root/include/internal/tuning.h
diff options
context:
space:
mode:
authorCedric Nugteren <web@cedricnugteren.nl>2016-06-14 14:30:22 +0200
committerCedric Nugteren <web@cedricnugteren.nl>2016-06-14 14:30:22 +0200
commit3e78a993559d936df4323abf6f4ee4f104508e3a (patch)
treeec97c76f473ee22217679f2fd11eb7e548cb2b0f /include/internal/tuning.h
parent6e2017c67dcaafaac4b43b7a1161a44658fb5f4a (diff)
Moved device vendor and type checks to a common header
Diffstat (limited to 'include/internal/tuning.h')
-rw-r--r--include/internal/tuning.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/internal/tuning.h b/include/internal/tuning.h
index 8fc79aff..a44f79d6 100644
--- a/include/internal/tuning.h
+++ b/include/internal/tuning.h
@@ -61,9 +61,9 @@ void Tuner(int argc, char* argv[]) {
printf("* Unsupported precision, skipping this tuning run\n\n");
return;
}
- isAMD = device.Vendor() == "AMD" || device.Vendor() == "Advanced Micro Devices, Inc.";
- isARM = device.Vendor() == "ARM";
- isGPU = device.Type() == "GPU";
+ isAMD = device.IsAMD();
+ isARM = device.IsARM();
+ isGPU = device.IsGPU();
}
// Creates input buffers with random data