Closed EricLiu2000 closed 6 years ago
It seems it fails to load the native tensor library. Did ./gradlew build
succeed without errors?
Yes, finishes successfully.
I'm using the CPU version, if that's worth noting.
Can you run ./gradlew cleanAll be.iminds.iot.dianne.tensor.native:build
to rebuild the native code and post the output?
Clearly building the native code is failing. Did you initialize the submodules? i.e. run
git submodule init
git submodule update
Just ran both commands with no result.
It seems OpenBLAS is complaining that clang is not supporting OpenMP on your system. Maybe this can help (I am not a Mac user myself unfortunately). Another option is to run inside a (ubuntu) docker container. If you have docker installed, you should be able to build a docker with DIANNE using the ./gradlew docker
command.
I've just installed the OpenMP runtime library. Which commands should I specifically call OpenMP on?
Try to build again with ./gradlew cleanAll build
?
It seems to encounter the same error, however this time around it took much longer.
Hi Eric,
It seems your gcc
compiler is a symlink to Apple's clang
, which unfortunately does not support OpenMP. You can however install gcc
via Homebrew:
brew install gcc --without-multilib
This might take a while, because brew
has to compile gcc
(compiling a compiler, the irony) due to the --without-multilib
. Once finished, gcc
will still point to clang
, as not to break Apple's systems, but you can explicitly set the compiler using:
CC=gcc-8 CXX=g++-8 ./gradlew build
This is assuming you installed the latest version available from HomeBrew. I've not been able to test this one though, so if you run into trouble, I suggest you try gcc-6
which is tested.
Please let us know if this works.
It works! Thank you for your help. I'd actually previously already tried these same commands (to no avail), and brew complains about the --without-multilib option not existing (which it still does, but irrelevant now). Seems like separately installing the OpenMP library fixed the issue! Thanks again.
Great! Have fun!
I'm on Mac High Sierra, and am currently having trouble running ./gradlew run.all and http://localhost:8080/dianne. The output of ./gradlew run.all is below:
Any help would be appreciated. Thanks.