Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/drupal/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Centos 当torch.cuda.U为False时,它是否可用()_Centos_Pytorch_Gpu_Driver - Fatal编程技术网

Centos 当torch.cuda.U为False时,它是否可用()

Centos 当torch.cuda.U为False时,它是否可用(),centos,pytorch,gpu,driver,Centos,Pytorch,Gpu,Driver,如何将torch.cuda.is_available()的结果更改为True 以下是我可以提供的有关我的系统的一些信息: $ python Python 3.6.7 | packaged by conda-forge | (default, Nov 6 2019, 16:19:42) [GCC 7.3.0] on linux Type "help", "copyright", "credits" or "license&q

如何将
torch.cuda.is_available()
的结果更改为
True

以下是我可以提供的有关我的系统的一些信息:

$ python
Python 3.6.7 | packaged by conda-forge | (default, Nov  6 2019, 16:19:42) 
[GCC 7.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch
>>> torch.version.cuda
'8.0.61'
>>> torch.cuda.is_available()
False
>>> torch.backends.cudnn.enabled
True
>>> torch.__version__
'1.0.0.dev20190328'

关于GPU:

$ lspci | grep ' VGA ' | cut -d" " -f 1 | xargs -i lspci -v -s {}
05:00.0 VGA compatible controller: NVIDIA Corporation GP102 [GeForce GTX 1080 Ti] (rev a1) (prog-if 00 [VGA controller])
        Subsystem: eVga.com. Corp. Device 6598
        Flags: bus master, fast devsel, latency 0, IRQ 88, NUMA node 0
        Memory at fa000000 (32-bit, non-prefetchable) [size=16M]
        Memory at c0000000 (64-bit, prefetchable) [size=256M]
        Memory at d0000000 (64-bit, prefetchable) [size=32M]
        I/O ports at e000 [size=128]
        [virtual] Expansion ROM at fb000000 [disabled] [size=512K]
        Capabilities: <access denied>
        Kernel driver in use: nvidia
        Kernel modules: nouveau, nvidia_drm, nvidia

06:00.0 VGA compatible controller: NVIDIA Corporation GP102 [GeForce GTX 1080 Ti] (rev a1) (prog-if 00 [VGA controller])
        Subsystem: eVga.com. Corp. Device 6598
        Flags: bus master, fast devsel, latency 0, IRQ 89, NUMA node 0
        Memory at f8000000 (32-bit, non-prefetchable) [size=16M]
        Memory at a0000000 (64-bit, prefetchable) [size=256M]
        Memory at b0000000 (64-bit, prefetchable) [size=32M]
        I/O ports at d000 [size=128]
        [virtual] Expansion ROM at f9000000 [disabled] [size=512K]
        Capabilities: <access denied>
        Kernel driver in use: nvidia
        Kernel modules: nouveau, nvidia_drm, nvidia
$lspci | grep'VGA'| cut-d'-f1 | xargs-i lspci-v-s{}
05:00.0 VGA兼容控制器:NVIDIA Corporation GP102[GeForce GTX 1080 Ti](版本a1)(prog if 00[VGA控制器])
子系统:eVga.com。公司设备6598
标志:总线主节点、快速devsel、延迟0、IRQ 88、NUMA节点0
fa000000处的内存(32位,不可预取)[大小=16M]
c0000000处的内存(64位,可预取)[大小=256M]
d0000000处的内存(64位,可预取)[大小=32M]
e000处的I/O端口[size=128]
fb000000处的[虚拟]扩展ROM[已禁用][大小=512K]
能力:
正在使用的内核驱动程序:nvidia
核心模块:nouveau、nvidia_drm、nvidia
06:00.0 VGA兼容控制器:NVIDIA Corporation GP102[GeForce GTX 1080 Ti](版本a1)(prog if 00[VGA控制器])
子系统:eVga.com。公司设备6598
标志:总线主节点、快速devsel、延迟0、IRQ 89、NUMA节点0
f8000000时的内存(32位,不可预取)[大小=16M]
a0000000处的内存(64位,可预取)[大小=256M]
b0000000处的内存(64位,可预取)[大小=32M]
d000处的I/O端口[size=128]
f9000000处的[虚拟]扩展ROM[已禁用][大小=512K]
能力:
正在使用的内核驱动程序:nvidia
核心模块:nouveau、nvidia_drm、nvidia

Pytorch尚未正式启动对CUDA 11的支持。尽管如此,您可以在此线程中尝试一些解决方案-@SVPraveen此问题中没有任何内容表明OP想要使用CUDA 11。nvidia smi上显示的CUDA版本仅表明GPU驱动程序是最新的,支持CUDA版本高达11.0。这可能只是pytorch安装方式的问题。您当前正在使用pytorch 1.0.0。如果要升级到最新版本,请从上的快速启动表中选择所需的cuda版本和安装方法(pip或conda),并使用指示的命令。如果要安装旧版本,则可以使用中的命令,只需为操作系统和安装方法选择所需的cuda和pytorch版本(您可能希望使用cuda 10)。
$ lspci | grep ' VGA ' | cut -d" " -f 1 | xargs -i lspci -v -s {}
05:00.0 VGA compatible controller: NVIDIA Corporation GP102 [GeForce GTX 1080 Ti] (rev a1) (prog-if 00 [VGA controller])
        Subsystem: eVga.com. Corp. Device 6598
        Flags: bus master, fast devsel, latency 0, IRQ 88, NUMA node 0
        Memory at fa000000 (32-bit, non-prefetchable) [size=16M]
        Memory at c0000000 (64-bit, prefetchable) [size=256M]
        Memory at d0000000 (64-bit, prefetchable) [size=32M]
        I/O ports at e000 [size=128]
        [virtual] Expansion ROM at fb000000 [disabled] [size=512K]
        Capabilities: <access denied>
        Kernel driver in use: nvidia
        Kernel modules: nouveau, nvidia_drm, nvidia

06:00.0 VGA compatible controller: NVIDIA Corporation GP102 [GeForce GTX 1080 Ti] (rev a1) (prog-if 00 [VGA controller])
        Subsystem: eVga.com. Corp. Device 6598
        Flags: bus master, fast devsel, latency 0, IRQ 89, NUMA node 0
        Memory at f8000000 (32-bit, non-prefetchable) [size=16M]
        Memory at a0000000 (64-bit, prefetchable) [size=256M]
        Memory at b0000000 (64-bit, prefetchable) [size=32M]
        I/O ports at d000 [size=128]
        [virtual] Expansion ROM at f9000000 [disabled] [size=512K]
        Capabilities: <access denied>
        Kernel driver in use: nvidia
        Kernel modules: nouveau, nvidia_drm, nvidia