Installation problem: How to set MKLROOT when I use command conda install -c intel mkl mkl-devel mkl-static mkl-include
to install MKL`
#485
Replies: 6 comments
-
As a workaround, you may consider using the docker image. |
Beta Was this translation helpful? Give feedback.
-
The MKL library is a little tricky since it can be installed in different locations in principle. Since you installed it with conda though you can try
which should be similar to this:
|
Beta Was this translation helpful? Give feedback.
-
Really thank you!!! I finally solve the problem which I have been stuck for 5 days. conda create -n aihwkit python=3.9
conda activate aihwkit
conda install -y cmake openblas pybind11
conda install -y -c conda-forge scikit-build
pip install torch torchvision
git clone https://github.com/IBM/aihwkit.git
cd aihwkit
conda install -y -c intel mkl mkl-devel mkl-static mkl-include
MKLROOT=$CONDA_PREFIX/lib CMAKE_PREFIX_PATH=$CONDA_PREFIX make build_cuda flags="-DCMAKE_CUDA_COMPILER=/usr/local/cuda/bin/nvcc" But it will output an error generally.(I have tested it on two machine). It's not an elegant way to solve it. But I don't know how to do it better. Then It seems i can use aihwkit(cuda version). |
Beta Was this translation helpful? Give feedback.
-
Actually, it failed when i use docker. 😭 |
Beta Was this translation helpful? Give feedback.
-
@dongwhfdyer Thanks for your valuable experience! I encounter a similar |
Beta Was this translation helpful? Give feedback.
-
Right, the MKL library certainly has to be in the |
Beta Was this translation helpful? Give feedback.
-
I am trying to install aihwkit's gpu version on ubuntu20.04. But I got stuck with MKL library.
Here are the commands I used:
cuda11.6 is preinstalled.
I used
conda install -c intel mkl mkl-devel mkl-static mkl-include
to install MKL library. It went smoothly. But I don't know where MKL library is installed so I cannot set the ENV variableMKLROOT
said in the docs. When I just simplely usemake build_cuda
trying to compile the aihwkit source code, I always got the following output.I have been stuck here for two days. If there's anything helpful, I will be very grateful!!
Beta Was this translation helpful? Give feedback.
All reactions