# NVIDIA GeForce 940MX torch.cuda.is\_available() False

**URL:** <https://discuss.pytorch.org/t/nvidia-geforce-940mx-torch-cuda-is-available-false/89803>\
**Category:** Uncategorized\
**Created:** [July 19, 2020, 7:33pm UTC](https://discuss.pytorch.org/t/nvidia-geforce-940mx-torch-cuda-is-available-false/89803 "2020-07-19T19:33:38Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ignacio\_Ibarra](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/ignacio_ibarra/32/23953_2.png) [@Ignacio\_Ibarra](https://discuss.pytorch.org/u/Ignacio_Ibarra)\
**Post date:** [July 19, 2020, 7:33pm UTC](https://discuss.pytorch.org/t/nvidia-geforce-940mx-torch-cuda-is-available-false/89803/1 "2020-07-19T19:33:38Z")

</div>

Hi I’ve just installed PyTorch through Anaconda distro in Windows 10. And when i call torch.cuda.is\_available() it returns False. I have an NVIDIA GeForce 940MX graphic card. It seems that my graphics card is not compatible with the latest version of CUDA.

How can I get a solution that allows me, for example, to allocate a tensor in the memory of the GPU?

---

<div class="post-metadata">

**Author:** ![ebarsoum](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/ebarsoum/32/5515_2.png) [@ebarsoum](https://discuss.pytorch.org/u/ebarsoum)\
**Post date:** [July 19, 2020, 8:10pm UTC](https://discuss.pytorch.org/t/nvidia-geforce-940mx-torch-cuda-is-available-false/89803/2 "2020-07-19T20:10:36Z")

</div>

What is the output of `nvidia-smi` command?

---

<div class="post-metadata">

**Author:** ![Ignacio\_Ibarra](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/ignacio_ibarra/32/23953_2.png) [@Ignacio\_Ibarra](https://discuss.pytorch.org/u/Ignacio_Ibarra)\
**Post date:** [July 19, 2020, 9:03pm UTC](https://discuss.pytorch.org/t/nvidia-geforce-940mx-torch-cuda-is-available-false/89803/3 "2020-07-19T21:03:14Z")

</div>

I can’t run that command in my cmd promt.

These are my files located in the directory where i had founded a file named nvidia-smi

C:\Program Files\NVIDIA Corporation\Installer2\Display.Driver.{5C61AB78-CA89-4A7E-895C-1D8179B0261F}\>ls

DisplayDriver.NVX nv-vk32.json nvdecmftmjpeg.dl\_ nvfbcplugin.dl\_ nvoglv64.dl\_  
DisplayDriver.nvi nv-vk64.json nvdecmftmjpegx.dl\_ nvfbcplugin64.dl\_ nvopencl32.dl\_  
DisplayDriverExt.dll nvam.cat nvdet.dl\_ \*\* nvidia-smi.1.pd\_ \*\* nvopencl64.dl\_  
GeForce\_iCafe.exe nvam.inf nvdetx.dl\_ \*\* nvidia-smi.ex\_ \*\*\* nvpciflt.sy\_  
GeForce\_iCafeExt.dll nvapi.dl\_ nvdispco64.dll nvifr.dl\_ nvptxjitcompiler32.dl\_  
NvContainerSetup.exe nvapi64.dl\_ nvdispgenco64.dll nvifr64.dl\_ nvptxjitcompiler64.dl\_  
NvCplSetupInt.exe nvcompiler32.dl\_ nvdrsdb.bi\_ nvifropengl32.dl\_ nvsetup.exe  
NvSplash.exe nvcompiler64.dl\_ nvdxgiwrap.dl\_ nvifropengl64.dl\_ nvumdshim.dl\_  
NvSplash.wmv nvcuda32.dl\_ nvdxgiwrapx.dl\_ nvinfo.pb nvumdshimx.dl\_  
NvSplashService.exe nvcuda64.dl\_ nvencmfth264.dl\_ nvinit.dl\_ nvwgf2um.dl\_  
NvSplash\_ZH.wmv nvcuvid32.dl\_ nvencmfth264x.dl\_ nvinitx.dl\_ nvwgf2um\_cfg.dl\_  
VulkanRT-Installer.exe nvcuvid64.dl\_ nvencmfthevc.dl\_ nvlddmkm.sy\_ nvwgf2umx.dl\_  
dbInstaller.exe nvd3d9wrap.dl\_ nvencmfthevcx.dl\_ nvldumd.dl\_ nvwgf2umx\_cfg.dl\_  
flxcomm64.dl\_ nvd3d9wrapx.dl\_ nvencodeapi.dl\_ nvldumdx.dl\_ opencl32.dl\_  
flxconnect64.dl\_ nvd3dum.dl\_ nvencodeapi64.dl\_ nvmcumd.dl\_ opencl64.dl\_  
flxcore64.dl\_ nvd3dum\_cfg.dl\_ nvfatbinaryloader32.dl\_ nvml.dl\_ pvsonydll32.dl\_  
license.txt nvd3dumx.dl\_ nvfatbinaryloader64.dl\_ nvoglshim32.dl\_ pvsonydll64.dl\_  
logo.png nvd3dumx\_cfg.dl\_ nvfbc.dl\_ nvoglshim64.dl\_  
mcu.ex\_ nvdebugdump.ex\_ nvfbc64.dl\_ nvoglv32.dl\_

---

<div class="post-metadata">

**Author:** ![ebarsoum](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/ebarsoum/32/5515_2.png) [@ebarsoum](https://discuss.pytorch.org/u/ebarsoum)\
**Post date:** [July 20, 2020, 12:57am UTC](https://discuss.pytorch.org/t/nvidia-geforce-940mx-torch-cuda-is-available-false/89803/4 "2020-07-20T00:57:18Z")

</div>

Install CUDA to get nvidia.smi.

---

<div class="post-metadata">

**Author:** ![Ignacio\_Ibarra](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/ignacio_ibarra/32/23953_2.png) [@Ignacio\_Ibarra](https://discuss.pytorch.org/u/Ignacio_Ibarra)\
**Post date:** [July 20, 2020, 2:32am UTC](https://discuss.pytorch.org/t/nvidia-geforce-940mx-torch-cuda-is-available-false/89803/5 "2020-07-20T02:32:55Z")

</div>

I think I already installed it via “conda install pytorch torchvision cudatoolkit = 10.2 -c pytorch” in Anaconda Promt. Should I do the installation again?

---

<div class="post-metadata">

**Author:** ![ebarsoum](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/ebarsoum/32/5515_2.png) [@ebarsoum](https://discuss.pytorch.org/u/ebarsoum)\
**Post date:** [July 20, 2020, 5:51am UTC](https://discuss.pytorch.org/t/nvidia-geforce-940mx-torch-cuda-is-available-false/89803/6 "2020-07-20T05:51:05Z")

</div>

You can install it directly from NVidia website which also install the right driver if you don’t have it ([https://developer.nvidia.com/cuda-10.2-download-archive](https://developer.nvidia.com/cuda-10.2-download-archive)).

---

<div class="post-metadata">

**Author:** ![istiqnurull](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/istiqnurull/32/43675_2.png) [@istiqnurull](https://discuss.pytorch.org/u/istiqnurull)\
**Post date:** [November 5, 2021, 6:59am UTC](https://discuss.pytorch.org/t/nvidia-geforce-940mx-torch-cuda-is-available-false/89803/7 "2021-11-05T06:59:12Z")

</div>

Hai, i have nvidia geforce 940mx hardware on my laptop. it’s said the cuda version is cuda 5.0. i checked the toolkit driver options. but cuda 5.0 toolkit is not compatible for windows 10. what’s should i do?

---

<div class="post-metadata">

**Author:** ![ptrblck](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/ptrblck/32/1823_2.png) [@ptrblck](https://discuss.pytorch.org/u/ptrblck)\
**Post date:** [November 5, 2021, 7:14am UTC](https://discuss.pytorch.org/t/nvidia-geforce-940mx-torch-cuda-is-available-false/89803/8 "2021-11-05T07:14:54Z")

</div>

The 940mx would have a compute capability of 5.0 so should be supported in the current pip wheels and conda binaries.
