I am trying to use openmp to parallelize a fortran loop that has calls to c functions. The current implementation uses Iso_c_binding and I cant find any reference on how to make this interface thread safe. I tried using !$OMP THREADPRIVATE command and the compiler doesn’t like it. Any input would be much appreciated.
use, intrinsic :: ISO_C_BINDING
logical function addffd(ssd,ffd) BIND ( C,name = “addffd”//postfix)
character, dimension (*) :: ssd
integer (C_INT) :: ffd