Cuda Cannot Read in Certain Folders

Asked 1 years ago, Updated 1 years ago, 62 views

When I ran the following code, I got an error in a specific folder, which was very troubling

import chainer
from chain import cuda
cuda.get_device(0).use()

The error says CUDA is not set up, but I have confirmed that it can be run in other folders.

 raise RuntimeError(msg)
RuntimeError: CUDA environment is not correctly set up
(see https://github.com/pfnet/chainer#installation).module'dis'has no attribute'COMPILER_FLAG_NAMES'

cuda chainer

2022-09-30 21:18

1 Answers

dis.py file was local.
dis.py is a standard module that relies on a chain, and if a file with this name is local, it will not be able to read what it originally wants.


2022-09-30 21:18

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.