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

OpenVML installation #17

Closed
jnjaby opened this issue Aug 4, 2017 · 3 comments
Closed

OpenVML installation #17

jnjaby opened this issue Aug 4, 2017 · 3 comments

Comments

@jnjaby
Copy link

jnjaby commented Aug 4, 2017

Wondering which folder should I direct to for OpenVML installation?
When I run make, it return

mkdir -p bin
mkdir -p obj
g++ -I/usr/include/atlas -I/opt/OpenVML/include -Wall -std=c++11 -O2 -D ENABLE_ATLAS -D ENABLE_OPENVML -c src/BlasWrapper.cc -o obj/BlasWrapper.o
In file included from src/BlasWrapper.cc:8:0:
src/../include/BlasWrapper.h:84:23: fatal error: openvml.h: No such file or directory
   #include <openvml.h>
                       ^
compilation terminated.
make: *** [obj/BlasWrapper.o] Error 1

@jiaxiang-wu
Copy link
Owner

hi jnjaby,

You may need to modify the CXXFLAGS and LDFLAGS in the Makefile, to match your OpenVML's include and library directory.

CPPFLAGS=-I/usr/include/atlas -I/opt/OpenVML/include
LDFLAGS=-L/usr/lib/atlas-base -L/opt/OpenVML/lib

For the above configuration, /opt/OpenVML/include should contain openvml.h

@jnjaby
Copy link
Author

jnjaby commented Aug 5, 2017

It works. But still need to export LD_LIBRARY_PATH=/Path/to/lib for make run. You'd better add this to the usage in case someone may occur the same problem. Thanks!

@jiaxiang-wu
Copy link
Owner

Thanks for your suggestion. README.md updated in 3bec22e.

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