-
Notifications
You must be signed in to change notification settings - Fork 4
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
Problems in Mac OS X #13
Comments
FWIW, on linux I run cmake-gui, and after it is done, I just call |
From a quick look at the log messages, it seems like
is the only real error. This may be just due to the |
@gpu Can you please check whether the archive I have previously provided is properly packaged? If I remove CLBlast binary from brew, I get the following error:
Probably I didn't build this properly, TBH I don't have much experience with it. Maybe after you prepare 1.3.1 I can try building it again for Mac OS X if you don't have means to build it for this OS. |
After having another look at the JAR, it seems like everything should be OK there. Here's a package for a quick test, without any Maven/Brew/... or other build tool. It's just the current JARs and a small sample. (The Presumably, it will result in the same error, but I'll write a few more words about that at uncomplicate/neanderthal#44 |
@blueberry You are right. If I use neanderthal v0.18.0 that is referencing JOCLBlast v1.2.0 I don't have this problem. I have previously deleted the jocl libraries from my maven repo so that the jars will be pulled in again. |
@milikicn Just to confirm: I assume that the same error appears when you try the test package that I uploaded, right? (I.e. it prints a looong stack trace that somewhere contains the "image not found" message) A quick glance over the history of the CLBlast CMakeFile.txt did not reveal any obvious changes that might cause the trouble here (particularly, the changes in the commit at CNugteren/CLBlast@7a7873d , which seemed to resolve the issue last time, still seem to be there). We'll have to dig a bit deeper here... |
@gpu Yes, it yielded the same error:
If I run the same code with jocl-blast-1.2.0, the program finishes without any problems:
|
Again, I don't have anything in my brew repository (no packages at all). If I install clblast via brew, then your initial test (with version 1.3.0) will work for me. |
@gpu This hints to the source of the problem:
Notice how libJOCLBlast is loaded from the temporary directory, while libclblast is looked for in /usr/local/opt/clblast/lib which I assume is the folder where So, to find the solution we should find out why libclblast is not (attempted to be) loaded from the same temp folder libJOCLBlast is located. @milikicn can you please uninstall the brew version, try to load the library via neanderthal, and, while the REPL's JVM is still on, look into the /private/var/folders/p5/fq4.........000gn folder and see whether libclblast is there? |
That may be the crucial hint, @blueberry : I didn't have the possible implications of brew/homebrew on the screen. But the symptoms now look as if (roughly!) the One might investigate the CMake settings for this, but it'll be hard to point at "THE" source for this behavior. It may be worth mentioning that JOCLBlast will dedicatedly first load the (The |
Maybe I'll have to re-read this, but ... this doesn't seem to be related directly : The issue there was a missing library, but in the JAR that milikicn provided, the |
I meant to point to your last comment in that thread. |
@blueberry I have removed all clblast and joclblast related files from my /private/var/folders/p5/.... temporary folder and ran the application. Two new files were added to the temp fodler: libJOCL_2_0_0-apple-x86_64.dylib, and libJOCLBlast_1_3_0-apple-x86_64.dylibm and also a folder JOCLBlast_1_3_0-apple-x86_64_dependents with the following folder structure:
|
Maybe as a (small) debugging step: What does
print? (It should show the dependencies, ... but we actually went through this in the other issue, so it will not necessarily tell us how to fix it...) |
I am getting:
The strange thing is that it references a binary from my Downloads folder. But that folder has been deleted a couple of days ago. |
The oddest thing is that the library seems to refer to itself. I'll have to figure out more about this MacOS dependency and RPATH stuff. It might be that it somehow picked up the pre-installed libclblast.dylib as a dependency during the compilation, but that's only a wild guess. Unfortunately, I can't try things out without a MacOS machine. (E.g. I'd try out what happens when compiling the JOCLBlast lib without any pre-installed CLBlast lib). But I'll try to read more about the RPATH - maybe at least my guesses may become a bit more educated.... |
Hello!
Hopefully it's just a dumb error on my part.
I cloned CLBlast, JOCLCommon and JOCLBlast inside an empty directory:
I go to CLBlast, I create a
build
directory andcd
to it, then Icmake ..
,make
and finallysudo make install
without any problem.Then I go to the JOCLBlast directory and I create a
nativeLibraries/apple/x86_64
directory. I copy thelibclblast.dylib
library fromCLBlast/build/
to this directory.Then I run these commands, which I've been using for the past builds:
And, finally, I get these errors after running
cmake --build .
:The text was updated successfully, but these errors were encountered: