Julia build with Intel MKL

I start to use Julia. Fast & Useful linear algebra. It is a fresh alternative of Matlab. We can use Intel MKL without Intel Compiler. However, we have to bulid Julia as follows (Julia v0.6 & Ubuntu 16.04).

    1. Install Intel MKL
    2. Clone Julia repository of git
    3. Add Makefile.user in the main julia source directory with the following
      override USE_INTEL_MKL=1
      override USE_INTEL_LIBM = 0
      prefix=/home/hoge/julia

      (Note that the final line is install directory)

    4. Add the following to deps/tools/common.mk, for ARPACK.

      ifeq  ($(USE_INTEL_MKL), 1)
      ifneq ($(USEIFC),1)
      USE_BLAS_FFLAGS += -ff2c
      endif
      endif
      

      Refs:

    5. “make -j4” after “source /opt/intel/mkl/bin/mklvars.sh intel64 ilp64”
    6. We can check results by make testall
    7. I saw an error about the following part of cmdlineargs.jl, but it seems no problem.
      if !is_windows() && VersionNumber(Base.libllvm_version) > v"3.3"
      testdir = mktempdir()
      cd(testdir) do
      rm(testdir)
      @test success(`$exename -e "exit(0)"`)
      end
      end
      
    8. make install

2 thoughts on “Julia build with Intel MKL

  1. Carlo Monjaraz

    Hi, thank you for your instructions, I have been in this same trouble for some days. I am running Fedora 27, I will come to confirm if your procedure also works for F27. Thanks!

    Reply

Leave a Reply to yosuke Cancel reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.