The CLAW Fortran compiler is generating accelerator directive. The program might be wrong if the transformations are not applied. Therefore, it is useful to have a mechanism to make the compilation failed in such case.
For this, we introduce the CLAW compile guard.
This directive is defined with the target accelerator prefix and it is removed by the CLAW Fortran compiler to make the compilation succeed.
In case the CLAW Fortran compiler has not been applied, it will make the compilation with accelerator failed.
!$<accelerator language prefix> claw-guard
!$acc claw-guard
!$omp claw-guard
The CLAW Fortran compiler is generating accelerator directive. The program might be wrong if the transformations are not applied. Therefore, it is useful to have a mechanism to make the compilation failed in such case.
For this, we introduce the CLAW compile guard.
This directive is defined with the target accelerator prefix and it is removed by the CLAW Fortran compiler to make the compilation succeed.
In case the CLAW Fortran compiler has not been applied, it will make the compilation with accelerator failed.