36
edits
Changes
m
no edit summary
</source>
'''Copy vs. PCopy'''
<source>
OpenACC OpenMP
int x[10],y[10]; int x[10],y[10];
#pragma acc data copy(x) pcopycopy(y) #pragma omp target data map(x,y)
{ {
... ...
#pragma acc kernels copy(x) pcopycopy(y) #pragma omp target update to(x)
{ #pragma omp target map(y)
// Accelerator Code {