diff options
author | Cedric Nugteren <web@cedricnugteren.nl> | 2016-07-08 20:57:58 +0200 |
---|---|---|
committer | Cedric Nugteren <web@cedricnugteren.nl> | 2016-07-08 20:57:58 +0200 |
commit | 9caa7ca5b9c1fdf99473582cd357506dffd51b44 (patch) | |
tree | 71dd1f99863f57a4d0a947a925b4e9755eaf4ae5 /src/cache.hpp | |
parent | 27854070b4f9ba1d58ccd7189032e56325506597 (diff) |
Cache now compares cl_context instead of a pointer to a context; added verbose print statements to the cache
Diffstat (limited to 'src/cache.hpp')
-rw-r--r-- | src/cache.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cache.hpp b/src/cache.hpp index 0d74d7bc..8f540891 100644 --- a/src/cache.hpp +++ b/src/cache.hpp @@ -55,7 +55,7 @@ struct ProgramCache { // Finds out whether the properties match bool MatchInCache(const ContextPointer ref_context, const Precision &ref_precision, const std::string &ref_routine) { - return (context_ptr == ref_context && + return (*context_ptr == *ref_context && precision == ref_precision && routine_name_ == ref_routine); } |