From ffac9fc352656306570e67128487488dbd9d2b9e Mon Sep 17 00:00:00 2001 From: Tom Deakin Date: Wed, 16 Nov 2016 12:50:20 -0600 Subject: [PATCH] [OMP45] Use alloc instead to to allocate device memory This fixes #11 --- OMP45Stream.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OMP45Stream.cpp b/OMP45Stream.cpp index 3ba2d40..8ba0434 100644 --- a/OMP45Stream.cpp +++ b/OMP45Stream.cpp @@ -18,7 +18,7 @@ OMP45Stream::OMP45Stream(const unsigned int ARRAY_SIZE, T *a, T *b, T *c, int this->a = a; this->b = b; 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]) {} }