OpenMP Offloading Validation & Verification Suite; Official repository. We have migrated from bitbucket!! For documentation, results, publication and presentations, please check out our website ->
However, the problem I have here is that gfortran's C preprocessor (built-in cpp) runs in traditional mode, which requires that the '#' is in the first line. If it isn't it complains as follows.
tests/6.0/target/test_target_nowait_argument.F90:9:6:
9 | #include "ompvv.F90"
| 1
Error: Invalid character in name at (1)
I think it is not uncommon that a traditional-mode CPP is used as fancier C pre-processor features might have more issues (e.g. with Fortran comments, quotes inside quotes etc.), unless they have a notion of Fortran.
First, I wonder whether the first 4 white spaces of the whole file shouldn't be removed ( → Pull Req. #811)
https://github.com/SOLLVE/sollve_vv/blob/b2743f89063fd313d022162fb1ae3c7fcf3c2b04/tests/6.0/target/test_target_nowait_argument.F90#L1-L9
However, the problem I have here is that gfortran's C preprocessor (built-in cpp) runs in traditional mode, which requires that the '#' is in the first line. If it isn't it complains as follows.
I think it is not uncommon that a traditional-mode CPP is used as fancier C pre-processor features might have more issues (e.g. with Fortran comments, quotes inside quotes etc.), unless they have a notion of Fortran.
Possible solutions:
Remove the spaces before
#include
:include "ompvv.F90"
+#include "ompvv.F90"
Move only the
#
to column 1:include "ompvv.F90"
+# include "ompvv.F90"
Remove the first 4 spaces from all lines, i.e. something like:
!
!//===----------------------------------------------------------------------===//
include "ompvv.F90"
+! +!//===----------------------------------------------------------------------===// +#include "ompvv.F90"
program test_omp_target_nowait
use iso_fortran_env +program test_omp_target_nowait
use iso_fortran_env
@spophale @fel-cab @andrewkallai @seyonglee