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

Linking shared objects such as openblas #32

Open
wdeshazer opened this issue Oct 4, 2023 · 0 comments
Open

Linking shared objects such as openblas #32

wdeshazer opened this issue Oct 4, 2023 · 0 comments

Comments

@wdeshazer
Copy link

wdeshazer commented Oct 4, 2023

I am working on a project and need to use openblas. Documentation for the server that I am working on suggests using:

-L$(BLAS_DIR)/lib -lopenblas

Where BLAS_DIR is an environment variable

BLAS_DIR=/fusion/usc/c8/opt/env/gcc-8.3.1

I have tried many approaches but my most recent and best attempt was the following:

$(BUILDDIR)/gtnpydep: gtn/main.F gtn/calctransm.F gtn/gtn.v
	$(FORTHON) -a $(INSTALLARGS) -a $(FCOMP) $(DEBUG) --fargs  "-LUMFPACK2 -lumfpack -L$(BLAS_DIR)/lib -lopenblas" --interfacefile gtn/gtn.v -f gtn/main.F gtn $(GTN_SRC) 
	touch $@

What is the correct syntax for incorporating a library?

The error that I am encountering is that python can't find the symbol dgesv_, which I have confirmed is in libopenblas.so

(gtneut_env) [deshazere@omega-a pygtneut_develop]$ python gtneut_run.py 
>>> GTNEUT version: 0.00
python: symbol lookup error: /fusion/projects/codes/conda/omega/dev_envs/deshazere/gtneut_env/lib/python3.7/site-packages/gtneut/gtnpy.cpython-37m-x86_64-linux-gnu.so: undefined symbol: dgesv_
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

1 participant