[OMP45] Use alloc instead to to allocate device memory

This fixes #11
This commit is contained in:
Tom Deakin 2016-11-16 12:50:20 -06:00
parent cb2221a64a
commit ffac9fc352

View File

@ -18,7 +18,7 @@ OMP45Stream<T>::OMP45Stream(const unsigned int ARRAY_SIZE, T *a, T *b, T *c, int
this->a = a; this->a = a;
this->b = b; this->b = b;
this->c = c; this->c = c;
#pragma omp target enter data map(to: a[0:array_size], b[0:array_size], c[0:array_size]) #pragma omp target enter data map(alloc: a[0:array_size], b[0:array_size], c[0:array_size])
{} {}
} }