muon icon indicating copy to clipboard operation
muon copied to clipboard

GPU not found

Open wangjiawen2013 opened this issue 3 years ago • 1 comments

Hi, I tried to run mofa mu.tl.mofa(mdata,n_factors=20,outfile="brain3k_mofa_model.hdf5",gpu_mode=True) but an error occurred: GPU mode is activated, but GPU not found... switching to CPU mode For GPU mode, you need: 1 - Make sure that you are running MOFA+ on a machine with an NVIDIA GPU 2 - Install CUPY following instructions on https://docs-cupy.chainer.org/en/stable/install.html I have already installed CUPY following the instructions and I am sure GPU is available when using pytorch. what's the reason ?

wangjiawen2013 avatar Oct 07 '22 14:10 wangjiawen2013

Hey @wangjiawen2013,

Not sure this is enough information to diagnose the issue.

MOFA relies on CUPY for GPU-related training. Does the following also work as you'd expect in the same environment and on the same machine?

import cupy as cp
print(cp.cuda.runtime.getDeviceCount())

gtca avatar Oct 09 '22 11:10 gtca