Mercurial > hg > CbC > CbC_gcc
view libgomp/testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c @ 120:f93fa5091070
fix conv1.c
author | mir3636 |
---|---|
date | Thu, 08 Mar 2018 14:53:42 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* Test the acc_on_device library function. */ /* { dg-additional-options "-fno-builtin-acc_on_device" } */ #include <openacc.h> int main () { int dev; #pragma acc parallel copyout (dev) { dev = acc_on_device (acc_device_not_host); } int expect = 1; #if ACC_DEVICE_TYPE_host expect = 0; #endif return dev != expect; }