diff options
author | Cedric Nugteren <web@cedricnugteren.nl> | 2017-12-17 17:58:06 +0100 |
---|---|---|
committer | Cedric Nugteren <web@cedricnugteren.nl> | 2017-12-17 17:58:06 +0100 |
commit | e2f8068459579d4d094386d7d3215153e430cb25 (patch) | |
tree | cbc33020c86562458df50463b6865e6b9c4da555 /src/tuning | |
parent | a40d91f68fa6d66b7f1eadf9117b14b60b8d6366 (diff) |
Fixed an issue with the tuner: it was using platform vendor rather than device vendor
Diffstat (limited to 'src/tuning')
-rw-r--r-- | src/tuning/tuning.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tuning/tuning.cpp b/src/tuning/tuning.cpp index 0af17a6f..935ab257 100644 --- a/src/tuning/tuning.cpp +++ b/src/tuning/tuning.cpp @@ -38,12 +38,13 @@ void PrintTimingsToFileAsJSON(const std::string &filename, fprintf(file, " \"%s\": \"%s\",\n", datum.first.c_str(), datum.second.c_str()); } fprintf(file, " \"clblast_device_type\": \"%s\",\n", device.Type().c_str()); - fprintf(file, " \"clblast_device_vendor\": \"%s\",\n", platform.Vendor().c_str()); + fprintf(file, " \"clblast_device_vendor\": \"%s\",\n", device.Vendor().c_str()); fprintf(file, " \"clblast_device_architecture\": \"%s\",\n", GetDeviceArchitecture(device).c_str()); fprintf(file, " \"clblast_device_name\": \"%s\",\n", GetDeviceName(device).c_str()); fprintf(file, " \"device\": \"%s\",\n", device.Name().c_str()); + fprintf(file, " \"platform_vendor\": \"%s\",\n", platform.Vendor().c_str()); fprintf(file, " \"platform_version\": \"%s\",\n", platform.Version().c_str()); - fprintf(file, " \"device_vendor\": \"%s\",\n", platform.Vendor().c_str()); + fprintf(file, " \"device_vendor\": \"%s\",\n", device.Vendor().c_str()); fprintf(file, " \"device_type\": \"%s\",\n", device.Type().c_str()); fprintf(file, " \"device_core_clock\": \"%zu\",\n", device.CoreClock()); fprintf(file, " \"device_compute_units\": \"%zu\",\n", device.ComputeUnits()); |