summaryrefslogtreecommitdiff
path: root/src/routines/level1/xscal.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/routines/level1/xscal.cc')
-rw-r--r--src/routines/level1/xscal.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/routines/level1/xscal.cc b/src/routines/level1/xscal.cc
index e83e73fd..b92e2cdf 100644
--- a/src/routines/level1/xscal.cc
+++ b/src/routines/level1/xscal.cc
@@ -60,7 +60,7 @@ StatusCode Xscal<T>::DoScal(const size_t n, const T alpha,
// Retrieves the Xscal kernel from the compiled binary
try {
- auto& program = GetProgramFromCache();
+ const auto program = GetProgramFromCache();
auto kernel = Kernel(program, kernel_name);
// Sets the kernel arguments