From b54d94b82d8de9c9d4271bb6ee3e5c1bdb8563d5 Mon Sep 17 00:00:00 2001 From: Tom Deakin Date: Mon, 24 Oct 2016 13:30:55 +0100 Subject: [PATCH] [RAJA] Use global defined scalar value --- RAJAStream.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RAJAStream.cpp b/RAJAStream.cpp index e418f09..0ee2390 100644 --- a/RAJAStream.cpp +++ b/RAJAStream.cpp @@ -77,7 +77,7 @@ void RAJAStream::mul() { T* b = d_b; T* c = d_c; - const T scalar = 0.3; + const T scalar = startScalar; forall(index_set, [=] RAJA_DEVICE (int index) { b[index] = scalar*c[index]; @@ -102,7 +102,7 @@ void RAJAStream::triad() T* a = d_a; T* b = d_b; T* c = d_c; - const T scalar = 0.3; + const T scalar = startScalar; forall(index_set, [=] RAJA_DEVICE (int index) { a[index] = b[index] + scalar*c[index];