summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Shapovalov <intelfx@intelfx.name>2016-11-28 03:00:15 +0300
committerIvan Shapovalov <intelfx@intelfx.name>2017-01-24 02:43:00 +0300
commit6ad11665a15afd53b4d1243b0319820e3340826d (patch)
treecafd13c4c0b8cbe8c995a19887556807d3cb0f5f
parenta9914ee3a834c23abfa7c994a43719f85285edf5 (diff)
Routine: fix semi-warm routine construction (when binary is in cache)
There was a missing return statement in the semi-warm path that made CLBlast to continue to cold path after a cache hit.
-rw-r--r--src/routine.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/routine.cpp b/src/routine.cpp
index faa7da7c..d5a6b589 100644
--- a/src/routine.cpp
+++ b/src/routine.cpp
@@ -52,6 +52,7 @@ Routine::Routine(Queue &queue, EventPointer event, const std::string &name,
auto program = Program(device_, context_, binary);
program.Build(device_, options);
StoreProgramToCache(program, context_, precision_, routine_name_);
+ return;
}
// Otherwise, the kernel will be compiled and program will be built. Both the binary and the