[OpenACC] Use global defined scalar value
This commit is contained in:
parent
b120acaf87
commit
ac6158fa31
@ -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;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user