Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't get it working with OpenBLAS on Arch linux #30

Open
achjaj opened this issue Jan 23, 2023 · 1 comment
Open

Can't get it working with OpenBLAS on Arch linux #30

achjaj opened this issue Jan 23, 2023 · 1 comment

Comments

@achjaj
Copy link

achjaj commented Jan 23, 2023

On my Arch linux system, I have two BLAS implementations installed: cblas (3.11.0-1) and openblas (0.3.21-1).
I can build my project when I put "lflags": ["-lcblas"] into my dub.json file. But if I replace it with
"lflags": ["-lopenblas"] I got linker error: undefined reference to 'cblas_snrm2'. This is expected as libopenblas.so does not have cblas_snrm2 symbol, instead it have snrm2 symbol.

So how can I link my project against OpenBLAS?

@John-Colvin
Copy link
Member

I have checked libopenblas.so on my machine and it does has cblas_snrm2 in it.

I think you probably want to do "libs": ["cblas"] or "libs": ["openblas"] instead of lflags.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants