repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
OpenACC documentation updates.
[official-gcc.git]
/
libgomp
/
testsuite
/
libgomp.oacc-c
/
lib-1.c
blob
17129d8bebdc256b60fe8538f969ba2a6acff3ef
1
/* { dg-do run } */
2
3
#include <openacc.h>
4
5
int
6
main
(
int
argc
,
char
**
argv
)
7
{
8
acc_device_t devtype
=
acc_device_host
;
9
10
#if ACC_DEVICE_TYPE_nvidia
11
devtype
=
acc_device_nvidia
;
12
13
if
(
acc_get_num_devices
(
devtype
) ==
0
)
14
return
0
;
15
#endif
16
17
acc_init
(
devtype
);
18
19
acc_init
(
devtype
);
20
21
return
0
;
22
}
23
24
/* { dg-shouldfail "libgomp: device already active" } */