Closed apoorvagnihotri closed 1 year ago
It looks like you don't have intel's MKL library linked into your environment. How did you install the code? If you installed from source, did you install MKL?
No, I haven't. I have previously read that MKL library doesn't play well with AMG CPUs (slower).
Additionally, other Intel libraries like sklearn-intelex tend to give incorrect results altogether on AMD systems.
https://github.com/scikit-learn/scikit-learn/discussions/23212
Given the problems of using Intel libraries on AMD CPUs, is there any alternative to using MKL as a dependency?
On Tue, Feb 21, 2023, 11:39 PM David Chan @.***> wrote:
It looks like you don't have intel's MKL library linked into your environment. How did you install the code? If you installed from source, did you install MKL?
— Reply to this email directly, view it on GitHub https://github.com/CannyLab/tsne-cuda/issues/119#issuecomment-1438902743, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFMSG2ORTXUCCRFC5U7VYQ3WYUAG7ANCNFSM6AAAAAAVDHSEKM . You are receiving this because you authored the thread.Message ID: @.***>
All of the pre-built binaries are linked with MKL, however the code itself supports OpenBLAS and ATLAS. You should be able to build it from source following the instructions: https://github.com/CannyLab/tsne-cuda/wiki/Installation
You may also need to make modifications for the 4090/CUDA 12, given that it's not officially supported (we don't have a 4090 for testing). The if statement here will need to be adapted to add the compute architecture compute_89 and sm_89 for the 4090, and the options here will need to be adjusted for performance (the native setting will be fine, but will likely not make use of the device efficiently).
I'm not sure if there are any breaking changes for CUDA 12 (from 11), so you may run into this as well if any parts of the API were deprecated/removed.
In my case, I installed an older version of MKL in a virtual environment (because the machine is not mine). Then, I specified the MKL environment path. This solved the issue.
OS: Ubuntu 22.04.2 LTS tsnecuda installation: pip3 install tsnecuda==3.0.1+cu112 -f https://tsnecuda.isx.ai/tsnecuda_stable.html CUDA: 12.2
pip install mkl==2019.0
export LD_LIBRARY_PATH=/home/myname/miniforge3/envs/myenv/lib/
python tsne.py
In the Jupyter Notebook, specifying environment variables in a notebook cell can cause the same issue to reoccur. If you want to use plotting packages to interactively view results in the Jupyter environment, additional steps might be necessary (it might not be difficult).
Error below:
I am using the following hardware: OS - Manjaro 6.1 CPU - AMD 7900X GPU - NVIDIA RTX 4090 - CUDA 12.0
Please request me more information for debugging process.