pypulseq icon indicating copy to clipboard operation
pypulseq copied to clipboard

PyPulseq requires GPU compute (cuPy) on Google Colab

Open btasdelen opened this issue 8 months ago • 1 comments

This was brought to my attention during the Pulseq workshop. I tested it and confirmed it. Without GPU support, we can't import PyPulseq, because it requires SigPy, which requires cuPy and GPU compute.

================================================================
Failed to import CuPy.

If you installed CuPy via wheels (cupy-cudaXXX or cupy-rocm-X-X), make sure that the package matches with the version of CUDA or ROCm installed.

On Linux, you may need to set LD_LIBRARY_PATH environment variable depending on how you installed CUDA/ROCm.
On Windows, try setting CUDA_PATH environment variable.

Check the Installation Guide for details:
  https://docs.cupy.dev/en/latest/install.html

Original error:
  ImportError: libcuda.so.1: cannot open shared object file: No such file or directory
================================================================

We should not really require GPU for sequence creation. SigPy lists cupy as optional. Is there a way to circumvent this error?

btasdelen avatar Nov 17 '23 19:11 btasdelen