重新安装后无法识别 Nvidia 驱动程序

重新安装后无法识别 Nvidia 驱动程序

因此服务器上的 CUDA8 出现了一些故障,无法识别 nvidia 驱动程序。我清除了 nvidia,然后将内核降级到 116,然后升级回 119。我重新安装了驱动程序(nvidia 384),并安装了 cuda 驱动程序(sudo apt-get -y install cuda-drivers),但我一直收到这些错误:

nvidia-smi
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

lsmod 无法识别 nvidia,但是

ubuntu-drivers devices | grep nv
driver   : nvidia-384 - third-party free
driver   : nvidia-390 - third-party free recommended

modinfo nvidia-384
filename:       /lib/modules/4.4.0-119-generic/updates/dkms/nvidia_384.ko
alias:          char-major-195-*
version:        384.130
supported:      external
license:        NVIDIA
srcversion:     586B4E0CF4083A6BC41A33B
alias:          pci:v000010DEd00000E00sv*sd*bc04sc80i00*
alias:          pci:v000010DEd*sv*sd*bc03sc02i00*
alias:          pci:v000010DEd*sv*sd*bc03sc00i00*
depends:        
vermagic:       4.4.0-119-generic SMP mod_unload modversions 
parm:           NVreg_Mobile:int
parm:           NVreg_ResmanDebugLevel:int
parm:           NVreg_RmLogonRC:int
parm:           NVreg_ModifyDeviceFiles:int
parm:           NVreg_DeviceFileUID:int
parm:           NVreg_DeviceFileGID:int
parm:           NVreg_DeviceFileMode:int
parm:           NVreg_UpdateMemoryTypes:int
parm:           NVreg_InitializeSystemMemoryAllocations:int
parm:           NVreg_UsePageAttributeTable:int
parm:           NVreg_MapRegistersEarly:int
parm:           NVreg_RegisterForACPIEvents:int
parm:           NVreg_CheckPCIConfigSpace:int
parm:           NVreg_EnablePCIeGen3:int
parm:           NVreg_EnableMSI:int
parm:           NVreg_TCEBypassMode:int
parm:           NVreg_UseThreadedInterrupts:int
parm:           NVreg_EnableStreamMemOPs:int
parm:           NVreg_MemoryPoolSize:int
parm:           NVreg_RegistryDwords:charp
parm:           NVreg_RegistryDwordsPerDevice:charp
parm:           NVreg_RmMsg:charp
parm:           NVreg_AssignGpus:charp

    sudo modprobe nvidia_384
modprobe: ERROR: could not insert 'nvidia_384': Exec format error

我不确定该怎么做。为什么无法识别 GPU(Tesla K40)?我应该重新安装 CUDA 吗?

编辑: lspci 实际上识别了它:

lspci | grep -i nvidia
03:00.0 VGA compatible controller: NVIDIA Corporation GF119 [NVS 315] (rev a1)
03:00.1 Audio device: NVIDIA Corporation GF119 HDMI Audio Controller (rev a1)
04:00.0 3D controller: NVIDIA Corporation GK110BGL [Tesla K40m] (rev a1)

答案1

尝试使用 Ubuntu 提供的 Nvidia 驱动程序。启用“Universe”软件源,在“附加驱动程序”选项卡下,选择经过测试的 Nvidia 384 驱动程序。它将是 384.111,ubuntu-drivers 输出将如下所示:

driver   : nvidia-384 - distro non-free recommended  

当 nvidia-smi 看到驱动程序后,尝试安装 cuda。

相关内容