[OpenACC] Use global defined scalar value

This commit is contained in:
Tom Deakin 2016-10-24 13:24:11 +01:00
parent b120acaf87
commit ac6158fa31

View File

@ -71,7 +71,7 @@ void ACCStream<T>::copy()
template <class T> template <class T>
void ACCStream<T>::mul() void ACCStream<T>::mul()
{ {
const T scalar = 0.3; const T scalar = startScalar;
unsigned int array_size = this->array_size; unsigned int array_size = this->array_size;
T * restrict b = this->b; T * restrict b = this->b;
@ -100,7 +100,7 @@ void ACCStream<T>::add()
template <class T> template <class T>
void ACCStream<T>::triad() void ACCStream<T>::triad()
{ {
const T scalar = 0.3; const T scalar = startScalar;
unsigned int array_size = this->array_size; unsigned int array_size = this->array_size;
T * restrict a = this->a; T * restrict a = this->a;