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/routines/level2 | |
parent | d7ddbdeb1f416f56bc469d16c051551207274703 (diff) |
Fixed the cache to store binaries instead of OpenCL programs
Diffstat (limited to 'src/routines/level2')
-rw-r--r-- | src/routines/level2/xgemv.cc | 2 | ||||
-rw-r--r-- | src/routines/level2/xger.cc | 2 | ||||
-rw-r--r-- | src/routines/level2/xher.cc | 2 | ||||
-rw-r--r-- | src/routines/level2/xher2.cc | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/src/routines/level2/xgemv.cc b/src/routines/level2/xgemv.cc index 24e87db0..f8985038 100644 --- a/src/routines/level2/xgemv.cc +++ b/src/routines/level2/xgemv.cc @@ -136,7 +136,7 @@ StatusCode Xgemv<T>::MatVec(const Layout layout, const Transpose a_transpose, // Retrieves the Xgemv kernel from the compiled binary try { - auto& program = GetProgramFromCache(); + const auto program = GetProgramFromCache(); auto kernel = Kernel(program, kernel_name); // Sets the kernel arguments diff --git a/src/routines/level2/xger.cc b/src/routines/level2/xger.cc index dda78232..686c7e60 100644 --- a/src/routines/level2/xger.cc +++ b/src/routines/level2/xger.cc @@ -66,7 +66,7 @@ StatusCode Xger<T>::DoGer(const Layout layout, // Retrieves the Xgemv kernel from the compiled binary try { - auto& program = GetProgramFromCache(); + const auto program = GetProgramFromCache(); auto kernel = Kernel(program, "Xger"); // Sets the kernel arguments diff --git a/src/routines/level2/xher.cc b/src/routines/level2/xher.cc index aba665b0..a7116213 100644 --- a/src/routines/level2/xher.cc +++ b/src/routines/level2/xher.cc @@ -79,7 +79,7 @@ StatusCode Xher<T,U>::DoHer(const Layout layout, const Triangle triangle, // Retrieves the Xgemv kernel from the compiled binary try { - auto& program = GetProgramFromCache(); + const auto program = GetProgramFromCache(); auto kernel = Kernel(program, "Xher"); // Sets the kernel arguments diff --git a/src/routines/level2/xher2.cc b/src/routines/level2/xher2.cc index bcd6488f..3fd1a961 100644 --- a/src/routines/level2/xher2.cc +++ b/src/routines/level2/xher2.cc @@ -68,7 +68,7 @@ StatusCode Xher2<T>::DoHer2(const Layout layout, const Triangle triangle, // Retrieves the Xgemv kernel from the compiled binary try { - auto& program = GetProgramFromCache(); + const auto program = GetProgramFromCache(); auto kernel = Kernel(program, "Xher2"); // Sets the kernel arguments |