Skip to content

Fortran underscores #264

Closed
Closed
@jkd2016

Description

@jkd2016

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions