question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't use chainer in W10 with CUDA 11.1

See original GitHub issue

When trying to run chainer, I get the following error message:

Traceback (most recent call last):
  File "train_dcgan.py", line 178, in <module>
    main()
  File "train_dcgan.py", line 65, in main
    chainer.cuda.get_device_from_id(args.gpu).use()
  File "C:\Users\Beri\miniconda3\envs\ganDemo\lib\site-packages\chainer\backends\cuda.py", line 279, in get_device_from_id
    check_cuda_available()
  File "C:\Users\Beri\miniconda3\envs\ganDemo\lib\site-packages\chainer\backends\cuda.py", line 142, in check_cuda_available
    raise RuntimeError(msg)
RuntimeError: CUDA environment is not correctly set up
(see https://github.com/chainer/chainer#installation).No module named 'cupy.util'

This works fine if using CUDA 10.2, but it has no support for the most recent NVIDIA GPUs.

  • Conditions:

Platform: Windows-10-10.0.19041-SP0 Chainer: 7.7.0 ChainerX: Not Available NumPy: 1.19.3 CuPy: Not Available iDeep: Not Available

  • Chainer version: 7.7.0
  • CuPy version: cupy-cuda111==8.1.0
  • OS/Platform: Windows 10 x64
  • CUDA/cuDNN version: CUDA 11.1/cuDNN 8.0.4.30

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
iegorvalcommented, Mar 1, 2021

@DiKorsch ok, thank you for the fast reply. I guess I will open a new issue then.

0reactions
DiKorschcommented, Mar 1, 2021

@iegorval, yes, this is the change, that fixed the problem for me 🤷

Read more comments on GitHub >

github_iconTop Results From Across the Web

Installation — Chainer 7.8.1 documentation
See CuPy's installation guide to install CuPy. Once CuPy is correctly set up, Chainer will automatically enable CUDA support.
Read more >
Setting up the development environment for Chainer with ...
Setting up the development environment for Chainer with CUDA on Eclipse on Windows 10 · The versions we are installing. Visual Studio. 2017...
Read more >
Can not import cupy with chainer 4.1.0 - Stack Overflow
i recently encountered this error on windows environment python 3.6 vs 2015 cuda 8.0. i tried. pip install cupy.
Read more >
WIndows 10 CUDA installation failure solved
If the installation of CUDA is failing on Windows 10 its most likely failing because you have GeForce Experience installed.
Read more >
WSL 2 GPU Support for Docker Desktop on NVIDIA GPUs
Today, everything has changed: On the OS side, Windows 11 users can now enable their GPU without participating in the Windows Insider program....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found