mirror of
https://github.com/autc04/Retro68.git
synced 2024-12-04 01:50:38 +00:00
21 lines
186 B
C
21 lines
186 B
C
|
#define N 32
|
||
|
|
||
|
int
|
||
|
foo (unsigned int sum)
|
||
|
{
|
||
|
#pragma acc parallel reduction (+:sum)
|
||
|
{
|
||
|
sum;
|
||
|
}
|
||
|
|
||
|
return sum;
|
||
|
}
|
||
|
|
||
|
int
|
||
|
main (void)
|
||
|
{
|
||
|
unsigned int sum = 0;
|
||
|
foo (sum);
|
||
|
return 0;
|
||
|
}
|