summaryrefslogtreecommitdiff
path: root/src/cache.hpp
diff options
context:
space:
mode:
authorCedric Nugteren <web@cedricnugteren.nl>2016-09-13 21:14:51 +0200
committerGitHub <noreply@github.com>2016-09-13 21:14:51 +0200
commitf07ac22f5b57d22756d779d2e53620f988d786ee (patch)
treee8bcbc331683ca6fd807f5a5b83bb05c6e6fed69 /src/cache.hpp
parent7c13bacf129291e3e295ecb6e833788477085fa0 (diff)
parent4b94afda941a86f363064ff02f97e21eb9618794 (diff)
Merge pull request #99 from CNugteren/development
Update to version 0.9.0
Diffstat (limited to 'src/cache.hpp')
-rw-r--r--src/cache.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cache.hpp b/src/cache.hpp
index 0d74d7bc..9075da0d 100644
--- a/src/cache.hpp
+++ b/src/cache.hpp
@@ -48,14 +48,14 @@ static std::mutex binary_cache_mutex_;
// The cache of compiled OpenCL programs, along with some meta-data
struct ProgramCache {
Program program;
- ContextPointer context_ptr;
+ cl_context context;
Precision precision;
std::string routine_name_;
// Finds out whether the properties match
- bool MatchInCache(const ContextPointer ref_context, const Precision &ref_precision,
+ bool MatchInCache(const cl_context ref_context, const Precision &ref_precision,
const std::string &ref_routine) {
- return (context_ptr == ref_context &&
+ return (context == ref_context &&
precision == ref_precision &&
routine_name_ == ref_routine);
}