diff options
Diffstat (limited to 'src/cache.hpp')
-rw-r--r-- | src/cache.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cache.hpp b/src/cache.hpp index 694de839..ed693ea3 100644 --- a/src/cache.hpp +++ b/src/cache.hpp @@ -79,9 +79,9 @@ extern template std::string BinaryCache::Get(const BinaryKeyRef &, bool *) const // ================================================================================================= // The key struct for the cache of compiled OpenCL programs (context-dependent) -// Order of fields: context, precision, routine_name (smaller fields first) -typedef std::tuple<cl_context, Precision, std::string> ProgramKey; -typedef std::tuple<const cl_context &, const Precision &, const std::string &> ProgramKeyRef; +// Order of fields: context, device_id, precision, routine_name (smaller fields first) +typedef std::tuple<cl_context, cl_device_id, Precision, std::string> ProgramKey; +typedef std::tuple<const cl_context &, const cl_device_id &, const Precision &, const std::string &> ProgramKeyRef; typedef Cache<ProgramKey, Program> ProgramCache; |