PRUNERS / archer

Archer, a data race detection tool for large OpenMP applications
https://pruners.github.io/archer
Apache License 2.0
62 stars 13 forks source link

Fortran wrapper #25

Open jprotze opened 7 years ago

jprotze commented 7 years ago

The following commands create a binary, that is instrumented with TSan, has the Clang-TSan, LLVM-openmp and archer runtime library linked:

gfortran -fopenmp -sanitize=thread -c code.f
clang -fopenmp -sanitize=thread -lgfortran -larcher code.o

I'm not sure, how to modify the compiler wrapper, to split the compilation into this two steps.

dongahn commented 7 years ago

Have you also tried Frontran code that goes into a static library? -fPIC on the Fortran code might do but then, this may require libfortran.a to be built with -fPIC which isn't the case with default configuration.

simoatze commented 7 years ago

@jprotze Maybe we can just create a new wrapper for Fortran and call it flang-archer or something like that?