summaryrefslogtreecommitdiff
path: root/src/routine.hpp
diff options
context:
space:
mode:
authorCedric Nugteren <web@cedricnugteren.nl>2018-05-01 20:34:48 +0200
committerCedric Nugteren <web@cedricnugteren.nl>2018-05-01 20:34:48 +0200
commit8258321a74f5b44a559c91bb0adb1358d22da801 (patch)
tree153d7f37e6629f0404a0da7b2110b25ea0a7dfdc /src/routine.hpp
parentb2248a17ae24ba72618d80b98196221049cc3933 (diff)
Now stores a shared_ptr to the Program class in the cache
Diffstat (limited to 'src/routine.hpp')
-rw-r--r--src/routine.hpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/routine.hpp b/src/routine.hpp
index 00f7b5cc..8db5e5a9 100644
--- a/src/routine.hpp
+++ b/src/routine.hpp
@@ -33,6 +33,7 @@ namespace clblast {
class Routine {
public:
+ // Initializes db_, fetching cached database or building one
static void InitDatabase(const Device &device, const std::vector<std::string> &kernel_names,
const Precision precision, const std::vector<database::DatabaseEntry> &userDatabase,
Databases &db) {
@@ -78,9 +79,6 @@ class Routine {
// Initializes program_, fetching cached program or building one
void InitProgram(std::initializer_list<const char *> source);
- // Initializes db_, fetching cached database or building one
- void InitDatabase(const std::vector<database::DatabaseEntry> &userDatabase);
-
protected:
// Non-static variable for the precision
@@ -97,7 +95,7 @@ class Routine {
const Device device_;
// Compiled program (either retrieved from cache or compiled in slow path)
- Program program_;
+ std::shared_ptr<Program> program_;
// Connection to the database for all the device-specific parameters
Databases db_;