From 9caa7ca5b9c1fdf99473582cd357506dffd51b44 Mon Sep 17 00:00:00 2001 From: Cedric Nugteren Date: Fri, 8 Jul 2016 20:57:58 +0200 Subject: Cache now compares cl_context instead of a pointer to a context; added verbose print statements to the cache --- src/cache.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cache.hpp') 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); } -- cgit v1.2.3