mirror of
https://github.com/autc04/Retro68.git
synced 2024-11-28 21:49:33 +00:00
19 lines
239 B
C
19 lines
239 B
C
int
|
|
main (void)
|
|
{
|
|
unsigned val = 0;
|
|
|
|
#pragma omp target map(tofrom: val)
|
|
#pragma omp simd
|
|
for (int i = 0 ; i < 1 ; i++)
|
|
{
|
|
#pragma omp atomic update
|
|
val = val + 1;
|
|
}
|
|
|
|
if (val != 1)
|
|
__builtin_abort ();
|
|
|
|
return 0;
|
|
}
|