You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fpm should produce a warning or an informative message not an error when it
cannot find the source for a module. If I want to use OpenMP with gfortran
and enter
fpm build --flag -fopenmp
Unable to find sourcefor module dependency: "omp_lib" used by "app/main.f90"
ERROR STOP 1
when using the -fopenmp switch with gfortran I should be able to use the OMP_LIB
module. The same thing happens if I want to use system-installed modules that I
can point to via environment variables or -I,-l,-L, ...
So something as simple as this cannot be compiled ...
program matrix1
use omp_lib
implicit noneinteger:: n, nthreads
real(kind=8), allocatable, dimension(:,:) :: a,b,c
integer:: i,j,k
! Specify number of threads to use:
!$ print*, "Using OpenMP, how many threads? "
!$ read*, nthreads
!$ call omp_set_num_threads(nthreads)
:
:
: