I have been trying to transfer the scipy function cdist
over to the gpu using cupy
.
from cupyx.scipy.spatial import distance as cudist
import cupy as cu
a = cu.array([1,2])
b = cu.array([3,4])
c = cudist.cdist(a, b, metric="euclidean")
I get a
RuntimeError: pylibraft is not installed
I after looking on the cupy closed issues I see that they made the decision to use the RAFT algorithms and that I need to install those to get pylibraft
. So I do so as described in the pip section of the RAPIDSAI's RAFT git repo and I run:
pip install pylibraft-cu11 --extra-index-url=https://pypi.nvidia.com
Just to receive the rather concise error during the getting requirements to build wheel portion of the pip install
RuntimeError: Bad params
I am using python 3.11
nvcc --version
reveals cuda_12.1.r12.1
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 531.61 Driver Version: 531.61 CUDA Version: 12.1 |
|-----------------------------------------+----------------------+----------------------+
| GPU Name TCC/WDDM | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+======================+======================|
| 0 NVIDIA GeForce RTX 3060 WDDM | 00000000:01:00.0 On | N/A |
| 0% 36C P8 16W / 170W| 345MiB / 12288MiB | 1% Default |
| | | N/A |
+-----------------------------------------+----------------------+----------------------+