claw-project / claw-compiler

CLAW Compiler for Performance Portability
https://claw-project.github.io
BSD 2-Clause "Simplified" License
40 stars 15 forks source link

Compile guard #20

Closed clementval closed 8 years ago

clementval commented 8 years ago

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
clementval commented 8 years ago

Implementation done. I will perform some test on real code before closing

clementval commented 8 years ago

Tested on radiation standalone successfully