Fortran underscores · Issue #264 · flame/blis (original) (raw)

I'm currently adding BLIS to our electronic structure code Elk (elk.sourceforge.net).

There is an issue with calling the BLIS API subroutines, namely they don't have leading underscores as required by Fortran.

For example, to set the number of threads at run-time, I can use

call mkl_set_num_threads(nthd)
call openblas_set_num_threads(nthd)

with MKL and OpenBLAS, but

call bli_thread_set_num_threads(nthd)

doesn't work because bli_thread_set_num_threads_ is not the name in the library.

Any ideas on how to resolve this in a portable way?