diff options
Diffstat (limited to 'src/database')
-rw-r--r-- | src/database/database.cpp | 3 | ||||
-rw-r--r-- | src/database/database.hpp | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/database/database.cpp b/src/database/database.cpp index 9b4e8119..c1cb9d56 100644 --- a/src/database/database.cpp +++ b/src/database/database.cpp @@ -63,12 +63,11 @@ const std::unordered_map<std::string, std::string> Database::kVendorNames{ // Constructor, computing device properties and populating the parameter-vector from the database. // This takes an optional overlay database in case of custom tuning or custom kernels. -Database::Database(const Queue &queue, const std::vector<std::string> &kernels, +Database::Database(const Device &device, const std::vector<std::string> &kernels, const Precision precision, const std::vector<const DatabaseEntry*> &overlay): parameters_(std::make_shared<Parameters>()) { // Finds information of the current device - auto device = queue.GetDevice(); auto device_type = device.Type(); auto device_vendor = device.Vendor(); auto device_name = device.Name(); diff --git a/src/database/database.hpp b/src/database/database.hpp index 92fb383c..87c12293 100644 --- a/src/database/database.hpp +++ b/src/database/database.hpp @@ -75,7 +75,7 @@ class Database { Database() = default; // The constructor with a user-provided database overlay (potentially an empty vector) - explicit Database(const Queue &queue, const std::vector<std::string> &routines, + explicit Database(const Device &device, const std::vector<std::string> &routines, const Precision precision, const std::vector<const DatabaseEntry*> &overlay); // Accessor of values by key |