diff options
author | Cedric Nugteren <web@cedricnugteren.nl> | 2016-04-28 21:14:17 +0200 |
---|---|---|
committer | Cedric Nugteren <web@cedricnugteren.nl> | 2016-04-28 21:14:17 +0200 |
commit | d9b21d7f4920b115d3fe7f2e3cce1f89eb762c10 (patch) | |
tree | c9a44f189fce5f6fc2456604dfe4c9d3e951e4e0 /src/routine.cc | |
parent | d7ddbdeb1f416f56bc469d16c051551207274703 (diff) |
Fixed the cache to store binaries instead of OpenCL programs
Diffstat (limited to 'src/routine.cc')
-rw-r--r-- | src/routine.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/routine.cc b/src/routine.cc index e0a75e41..cd4d82fb 100644 --- a/src/routine.cc +++ b/src/routine.cc @@ -96,8 +96,9 @@ StatusCode Routine<T>::SetUp() { } if (build_status == BuildStatus::kInvalid) { return StatusCode::kInvalidBinary; } - // Store the compiled program in the cache (atomic for thread-safety) - StoreProgramToCache(program); + // Store the compiled kernel in the cache + auto binary = program.GetIR(); + StoreBinaryToCache(binary); } catch (...) { return StatusCode::kBuildProgramFailure; } } |