From 8258321a74f5b44a559c91bb0adb1358d22da801 Mon Sep 17 00:00:00 2001 From: Cedric Nugteren Date: Tue, 1 May 2018 20:34:48 +0200 Subject: Now stores a shared_ptr to the Program class in the cache --- src/routine.hpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/routine.hpp') 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 &kernel_names, const Precision precision, const std::vector &userDatabase, Databases &db) { @@ -78,9 +79,6 @@ class Routine { // Initializes program_, fetching cached program or building one void InitProgram(std::initializer_list source); - // Initializes db_, fetching cached database or building one - void InitDatabase(const std::vector &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_; // Connection to the database for all the device-specific parameters Databases db_; -- cgit v1.2.3