summaryrefslogtreecommitdiff
path: root/src/cache.hpp
diff options
context:
space:
mode:
authorKirill Mavreshko <kimavr@gmail.com>2017-05-26 15:04:19 +0500
committerKirill Mavreshko <kimavr@gmail.com>2017-05-26 15:04:19 +0500
commit628e1e8cce084657df854fa97ba18ad740270b23 (patch)
tree9c62c21fcceed2696d978f90e3ec93ccea3fdfc2 /src/cache.hpp
parent9c703a6021b4875348d7effb60c58e08fb9566b3 (diff)
Fixes inability to run GEMM on multiple identical GPUs (issue #155)
Diffstat (limited to 'src/cache.hpp')
-rw-r--r--src/cache.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cache.hpp b/src/cache.hpp
index 694de839..207cb2dd 100644
--- a/src/cache.hpp
+++ b/src/cache.hpp
@@ -80,8 +80,8 @@ 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;
+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;