-
-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
compiled omp do
program
#4030
Labels
openmp
Issue or pull request specific to openmp
Comments
module libgompinterop
use iso_c_binding
implicit none
interface
subroutine GOMP_parallel (fn, data, num_threads, flags) bind (C, name="GOMP_parallel")
import :: c_funptr, c_ptr, c_int
type(c_funptr), value :: fn
type(c_ptr), value :: data
integer(c_int), value :: num_threads
integer(c_int), value :: flags
end subroutine
subroutine GOMP_barrier() bind(C, name="GOMP_barrier")
end subroutine
subroutine GOMP_critical_start() bind(C, name="GOMP_critical_start")
end subroutine
subroutine GOMP_critical_end() bind(C, name="GOMP_critical_end")
end subroutine
function omp_get_max_threads() bind(c, name="omp_get_max_threads")
import :: c_int
integer(c_int) :: omp_get_max_threads
end function omp_get_max_threads
function omp_get_thread_num() bind(c, name="omp_get_thread_num")
import :: c_int
integer(c_int) :: omp_get_thread_num
end function omp_get_thread_num
end interface
end module |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This now works!
With #4028, we can now move ahead and see if we can compile other codes with LFortran
Can be transformed to
Which can be compiled using
The text was updated successfully, but these errors were encountered: