Created
May 13, 2022 09:45
-
-
Save v1kko/2c8eec9344548c83c9da58b64068b028 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define SIZE 100000000 | |
program test_openmp | |
real :: a(SIZE), b(SIZE), c(SIZE) | |
integer :: n | |
!$omp target teams | |
do n = 1, SIZE | |
c(n) = a(n) + b(n) | |
end do | |
!$omp end target teams | |
end program |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment