-
Notifications
You must be signed in to change notification settings - Fork 123
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
Compile problem with Eigen versions #51
Comments
Hi Marshall, I think this is because the Eigen lib installed on your computer is outdated. Have you tried to update your opam then upgrade the Eigen lib with the following command. opam update
opam upgrade eigen You can also install both Owl and Eigen from git repo directly. Because Owl is dependent on Eigen, so you need to build and install Eigen first. git clone https://github.com/ryanrhymes/eigen.git
cd eigen
make cleanall
make oasis
make && make install The make cleanall is just to remove previously installed Eigen version. After installing Eigen, you can then install Owl in a similar way. git clone https://github.com/ryanrhymes/owl.git
cd owl
make cleanall
make oasis
make && make install Of course, you can still install Eigen with opam but only build Owl from source, this should also work. |
Thanks Liang. I realize now that this was a foolish mistake on my part. It didn't occur to me to run I'm happy to install Eigen directly with |
That would be great! PR is always welcome! I think you can try to introduce some optional parameters for orientation to |
It looks like |
Yes you are right. Sorry I forgot to add that, I have fixed the previous comments. |
This might end up being a question about opam that I should ask about on discuss.ocaml.org or StackOverflow, but it could be that the difficulty I'm experiencing has to do with how the current versions of Owl and Eigen work together, so I thought I'd ask here first.
The latest version of Owl won't compile with the opam version of Eigen, producing this error:
I saw in the Eigen git history that
dot
was recently renamed togemm
, so I assumed that I just needed a more recent version of Eigen. I got Eigen from github and was able to compile and install it using'opam pin add eigen <my source dir>
. I don't quite understand all of the command variants in the Eigen source, but I think the appropriate version ofgemm
is in there (in eigen_dismat_s.ml?).However, when try to pin my local owl git tree, I get the same error, ie.. that
gemm
is unbound (see below). I don't understand this.On the other hand, if I then compile a file to a native executable (rather than running utop), Owl seems to be available. I have no problem compiling code that uses Owl.
Any thoughts about what might be going wrong?
Thanks-
Marshall
The text was updated successfully, but these errors were encountered: