diff options
author | Cedric Nugteren <web@cedricnugteren.nl> | 2016-07-10 11:24:36 +0200 |
---|---|---|
committer | Cedric Nugteren <web@cedricnugteren.nl> | 2016-07-10 11:24:36 +0200 |
commit | 39e9b1238ff66a680579a181c0f0c2424e65e003 (patch) | |
tree | e0f01c7f508418a004aef56fc4edef00ed0b8d77 /src/cache.hpp | |
parent | 9caa7ca5b9c1fdf99473582cd357506dffd51b44 (diff) |
Fixed a bug related to the cache and retrieval of programs based on the OpenCL context
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 8f540891..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); } |