IntelLabs / ParallelAccelerator.jl

The ParallelAccelerator package, part of the High Performance Scripting project at Intel Labs
BSD 2-Clause "Simplified" License
294 stars 32 forks source link

Setting ParallelAccelerator to use MKL instead of OpenBLAS #151

Open ig0xb opened 7 years ago

ig0xb commented 7 years ago

I was able to setup ParallelAccelerator to use OpenBLAS using this Link which i found in the previous post in the Issues section. I tried to set up MKL_LIB=1 & OPENBLAS_LIB = 0 . But no luck i guess its more than that I have also made the following changes to bashprofile

export CPLUS_INCLUDE_PATH=$CPLUS_INCLUDE_PATH:/opt/intel/mkl/include/ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/intel/mkl/lib/

Kindly let me know what changes do i need to make to setup in order for ParallelAccelerator to use MKL. Thank You Regards Saran

DrTodd13 commented 6 years ago

If you want to use MKL, I'd recommend using the following link to get Julia itself setup for MKL. Then, I'd re-build the ParallelAccelerator package with Pkg.build("ParallelAccelerator"). Look at generated/config.jl to make sure mkl_lib is set. If it isn't, let us know. You're approach of setting those directly in the config.jl would probably work but they are paths, not 1 or 0. So, I'd still suggest re-running the build script.

How to setup Julia for MKL.