-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Build with MKL problem #2 #6367
Comments
Have you seen: http://software.intel.com/en-us/articles/julia-with-intel-mkl-for-improved-performance? Even if the build tips there don't help, the poster is inviting feedback. |
That guide starts very badly by suggesting to download the zip file from github. That zip file does not work, because we use submodules for some of our dependencies. We also have a script to extract information about the repo history for the |
It also suggests editing |
I did post on the website. While the guide itself is not great, I think the fact that Julia is on Intel's radar is a great thing for Julia. Only good things can come from fostering an improved relationship with Intel. Especially since the last I read, Xianyi is not even conveying any certainty in whether he will continue to develop OpenBLAS (see OpenMathLib/OpenBLAS#351) |
Unfortunately, no updates yet... |
Still ... unfortunately, no updates ... |
I guess I should just give up on this issue |
I don't have MKL for Mac, but last week I built with MKL on Ubuntu without problems by defining
so could you try a fresh clone of Julia with a |
You're going to have to find someone who has built Julia successfully with MKL on Mac. I think @ViralBShah is one such person. If he can recall around when it last worked, you can try checking out an old version of Julia and see if it works there, then git bisect to find when it stopped working. Also, did you try posting in Intel's support forum, in addition to just commenting on a few-months-old article that they may not be checking? The step that's failing is using the gfortran compiler as a linker driver to make a shared arpack library from the static .a arpack libraries, and linking Blas. However the |
Thanks for the tips. I'll try posting a on intel support forum and checking a new build from scratch. I think gcc should be releasing a stable 4.9 version around easter. I'll have some results by then I hope. I'm not sure why the build would be linking the Accelerate framework instead of MKL. |
Judging by the line |
I do not have MKL on mac either, and have never tried it. |
Ah, sorry then, nevermind. It looked like you had worked on some or all of the MKL portions of the Makefiles. |
Yes I have - but just not with MKL on mac. :-) |
I'll check and see if that was the issue. |
@tkelman Thanks Tony. You successfully diagnosed the problem. The MKLROOT environment variables were not set correctly in my .bash_profile. See attached gist for further details. https://gist.github.com/esd100/10906796 |
@esd100 Are there remaining unresolved issues or lack of documentation that need to be addressed here, or are we OK to close this? |
Thanks for checking. May I suggest the following update to documentation to using MKL on Mac OS X Mavericks.
|
Other than that, this issue is okay to close. |
@esd100 Would you be able to make a pull request adding that to the appropriate part of the README? Go here and click the "Edit" button in the header above the rendered file, make your changes, then follow the instructions to make a pull request. Refer to this issue number as #6367 in your request so it will be linked to this issue. Thanks! |
So essentially we should've somehowe made sure that the instructions in https://github.com/JuliaLang/julia#intel-math-kernel-libraries made sure that the user understood that he would have to run them every time before building with MKL. |
Thanks for the instructions. I will try to make the changes and do the pull request thing. I have never done it before, so I will have to figure it out. |
@ivarne I think maybe that it's just a little bit difficult to understand to the non-technically savvy person. i.e., people that haven't used configure, make, install commands very often or even people that haven't used a terminal very often.. |
Thanks! Suggesting this is the sneaky way we try to get new contributors to Julia. |
Doesn't MKL provide a script to do this on mac like linux? |
After a successful build of Julia with gfortran 4.8.2 on OS X Mavericks (10.9) with Haswell processor using OpenBLAS 0.3.9rc2 (see #6272), I decided to delete everything and try to see if I could build Julia using MKL. After I deleted everything and installed MKL version (composer_xe_2013_sp1.2.139), I downloaded Julia source again, modified make.user and tried to build it.
The build process made it very far, as you can see from the length of the gist, (https://gist.github.com/esd100/9905847) but failed with the error below. :-(
libtool: link: ar cru .libs/libarpacksrc.a .libs/sgetv0.o .libs/slaqrb.o .libs/sstqrb.o .libs/ssortc.o .libs/ssortr.o .libs/sstatn.o .libs/sstats.o .libs/snaitr.o .libs/snapps.o .libs/snaup2.o .libs/snaupd.o .libs/snconv.o .libs/sneigh.o .libs/sngets.o .libs/ssaitr.o .libs/ssapps.o .libs/ssaup2.o .libs/ssaupd.o .libs/ssconv.o .libs/sseigt.o .libs/ssgets.o .libs/sneupd.o .libs/sseupd.o .libs/ssesrt.o .libs/dgetv0.o .libs/dlaqrb.o .libs/dstqrb.o .libs/dsortc.o .libs/dsortr.o .libs/dstatn.o .libs/dstats.o .libs/dnaitr.o .libs/dnapps.o .libs/dnaup2.o .libs/dnaupd.o .libs/dnconv.o .libs/dneigh.o .libs/dngets.o .libs/dsaitr.o .libs/dsapps.o .libs/dsaup2.o .libs/dsaupd.o .libs/dsconv.o .libs/dseigt.o .libs/dsgets.o .libs/dneupd.o .libs/dseupd.o .libs/dsesrt.o .libs/cnaitr.o .libs/cnapps.o .libs/cnaup2.o .libs/cnaupd.o .libs/cneigh.o .libs/cneupd.o .libs/cngets.o .libs/cgetv0.o .libs/csortc.o .libs/cstatn.o .libs/znaitr.o .libs/znapps.o .libs/znaup2.o .libs/znaupd.o .libs/zneigh.o .libs/zneupd.o .libs/zngets.o .libs/zgetv0.o .libs/zsortc.o .libs/zstatn.o
libtool: link: ranlib .libs/libarpacksrc.a
libtool: link: ( cd ".libs" && rm -f "libarpacksrc.la" && ln -s "../libarpacksrc.la" "libarpacksrc.la" )
Making all in .
libtool: link: gfortran -mmacosx-version-min=10.7 -dynamiclib -o .libs/libarpack.2.dylib -Wl,-force_load,./SRC/.libs/libarpacksrc.a -Wl,-force_load,./UTIL/.libs/libarpackutil.a -framework vecLib -mmacosx-version-min=10.7 -O2 -Wl,-rpath -Wl,/Applications/julia/usr/lib -framework vecLib -install_name /Applications/julia/usr/lib/libarpack.2.dylib -compatibility_version 3 -current_version 3.0 -Wl,-single_module
gfortran: fatal error: no input files; unwilling to write output files
compilation terminated.
make[4]: *** [libarpack.la] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [arpack-ng-3.1.3/.libs/libarpack.dylib] Error 2
make[1]: *** [julia-release] Error 2
make: *** [release] Error 2
The text was updated successfully, but these errors were encountered: