apache / mxnet

Lightweight, Portable, Flexible Distributed/Mobile Deep Learning with Dynamic, Mutation-aware Dataflow Dep Scheduler; for Python, R, Julia, Scala, Go, Javascript and more
https://mxnet.apache.org
Apache License 2.0
20.77k stars 6.8k forks source link

MXnet with cuda wont install on windows 10! #18551

Open djaym7 opened 4 years ago

djaym7 commented 4 years ago

Is gpu really supported in windows ?

tried using 1.6.0,1.5.0 with python 3.6,3.7,3.8 with cuda installed (verified using nvcc --version) and no matter what it wont impor t!

Cant find dlls, or OSError: [WinError 126] The specified module could not be found or new everytime!!

Neutron3529 commented 4 years ago

My MXNet with win10 is OK(although quite slow compared to Linux) have you ever tried calling nvidia-smi?

djaym7 commented 4 years ago

My MXNet with win10 is OK(although quite slow compared to Linux) have you ever tried calling nvidia-smi?

Yes, i call it every day -l 1

Neutron3529 commented 4 years ago

My MXNet with win10 is OK(although quite slow compared to Linux) have you ever tried calling nvidia-smi?

Yes, i call it every day -l 1

If nvidia-smi is callable, the CUDA should be installed properly. (you could check the "CUDA Version") slot to ensure it.

neutron@Neutron:/me$ nvidia-smi
Tue Jun 16 16:29:00 2020       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 440.82       Driver Version: 440.82       CUDA Version: 10.2     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce GTX 1060    On   | 00000000:01:00.0 Off |                  N/A |
| N/A   80C    P2    78W /  N/A |   2270MiB /  6078MiB |     99%      Default |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|    0      1003      G   /usr/lib/Xorg                                 38MiB |
|    0     96256      C   python                                      2227MiB |
+-----------------------------------------------------------------------------+

If the CUDA is installed properly, I don't know what would cause MXNet failed to load. maybe pdb could help telling you what happened.

import pdb
pdb.set_trace()
import mxnet

save the following script into a test.py then execute python test.py, the python would enter pdb mode, then, using either s(step), n(next) or r(execute until return) to control the pdb procedure. It may help you to find which dll is missing. and you may manually edit the .py script of MXNet to ensure a successful load.

ChaiBapchya commented 4 years ago

@mxnet-label-bot add [windows]

yajiedesign commented 4 years ago

[WinError 126]Because you lost some DLL dependencies.use https://github.com/lucasg/Dependencies/releases check depend with mxnet_xx.dll