Kengo Miyamoto
New member
Hello,
When a source program file A includes OpenMP directives, would it be difficult for all source program files that refer to objects in A to be compiled using OpenMP options?
Specifically, if test1.f90 and test.f90 are compiled with OpenMP options because they include OpenMP directives, it follows that test2.f90 should be compiled with an OpenMP option if it is called by a subroutine in test.f90 that is parallelized with OpenMP.
We don’t anticipate any issues if test2.f90 is also to be compiled with an OpenMP option, even if it is called by a non-parallelized subroutine in test.f90.
< $FC $OMP -c test1.f90
< $FC -c test2.f90
< $FC $OMP test1.o test2.o test.f90 -o test.out
---
> $FC $OMP -c test1.f90
> $FC $OMP -c test2.f90
> $FC $OMP test1.o test2.o test.f90 -o test.out
However, WRF 4.4.2 specifies some files to be compiled without OpenMP options in arch/noopt_eception_f file, which causes issues for Fujitsu Fortran when building WRF 4.4.2 load module files.
Would it be possible to compile all source program files that refer to the objects with OpenMP directives using OpenMP options in the future versions of WRF? This would be very helpful for us.
Sincerely
When a source program file A includes OpenMP directives, would it be difficult for all source program files that refer to objects in A to be compiled using OpenMP options?
Specifically, if test1.f90 and test.f90 are compiled with OpenMP options because they include OpenMP directives, it follows that test2.f90 should be compiled with an OpenMP option if it is called by a subroutine in test.f90 that is parallelized with OpenMP.
We don’t anticipate any issues if test2.f90 is also to be compiled with an OpenMP option, even if it is called by a non-parallelized subroutine in test.f90.
< $FC $OMP -c test1.f90
< $FC -c test2.f90
< $FC $OMP test1.o test2.o test.f90 -o test.out
---
> $FC $OMP -c test1.f90
> $FC $OMP -c test2.f90
> $FC $OMP test1.o test2.o test.f90 -o test.out
However, WRF 4.4.2 specifies some files to be compiled without OpenMP options in arch/noopt_eception_f file, which causes issues for Fujitsu Fortran when building WRF 4.4.2 load module files.
Would it be possible to compile all source program files that refer to the objects with OpenMP directives using OpenMP options in the future versions of WRF? This would be very helpful for us.
Sincerely