Não é possível instalar o CUDA 8.0 no Ubuntu 16.04.3

0

Isso é o que fiz com as informações disponíveis na web. Eu tenho 3 arquivos em /etc/modprobe.d "blacklist-nouveau.conf" com conteúdo

blacklist nouveau
blacklist lbm-nouveau
options nouveau modeset=0
alias nouveau off
alias lbm-nouveau off

"nouveau-kms.conf"

options nouveau modeset=0

e "nvidia-installer-disable-nouveau.conf" (gerado pelo cuda runfile) tendo

blacklist nouveau
options nouveau modeset=0

Meu / usr / src tem os diretórios abaixo:

linux-headers-4.10.0-28          linux-hwe-4.10.0
linux-headers-4.10.0-28-generic  linux-source-4.4.0
linux-headers-4.10.0-40          linux-source-4.4.0.tar.bz2
linux-headers-4.10.0-40-generic

Eu realizei

sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade
sudo apt-get install linux-source
sudo apt-get source linux-image-$(uname -r)
sudo apt-get install linux-headers-$(uname -r)
sudo update-initramfs -u

Quando eu corro

sudo ./cuda_8.0.61_375.26_linux.run --kernel-source-path=/usr/src/linux-hwe-4.10.0

Estou recebendo o erro --kernel-source-path não válido com o log abaixo.

nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Thu Dec  7 01:45:55 2017
installer version: 375.26

PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin

nvidia-installer command line:
    ./nvidia-installer
    --ui=none
    --no-questions
    --accept-license
    --disable-nouveau
    --kernel-source-path=/usr/src/linux-hwe-4.10.0

Using built-in stream user interface
-> Detected 2 CPUs online; setting concurrency level to 2.
-> License accepted by command line option.
-> Installing NVIDIA driver version 375.26.
-> Running distribution scripts
   executing: '/usr/lib/nvidia/pre-install'...
-> done.
-> The distribution-provided pre-install script failed!  Are you sure you want to continue? (Answer: Continue installation)
WARNING: One or more modprobe configuration files to disable Nouveau are already present at: /etc/modprobe.d/nvidia-installer-disable-nouveau.conf.  Please be sure you have rebooted your system since these files were written.  If you have rebooted, then Nouveau may be enabled for other reasons, such as being included in the system initial ramdisk or in your X configuration file.  Please consult the NVIDIA driver README and your Linux distribution's documentation for details on how to correctly disable the Nouveau kernel driver.
-> For some distributions, Nouveau can be disabled by adding a file in the modprobe configuration directory.  Would you like nvidia-installer to attempt to create this modprobe file for you? (Answer: Yes)
-> One or more modprobe configuration files to disable Nouveau have been written.  For some distributions, this may be sufficient to disable Nouveau; other distributions may require modification of the initial ramdisk.  Please reboot your system and attempt NVIDIA driver installation again.  Note if you later wish to reenable Nouveau, you will need to delete these files: /etc/modprobe.d/nvidia-installer-disable-nouveau.conf
-> Performing CC sanity check with CC="/usr/bin/cc".
-> Using the kernel source path '/usr/src/linux-hwe-4.10.0' as specified by the '--kernel-source-path' commandline option.
ERROR: Neither the '/usr/src/linux-hwe-4.10.0/include/linux/version.h' nor the '/usr/src/linux-hwe-4.10.0/include/generated/uapi/linux/version.h' kernel header file exists.  The most likely reason for this is that the kernel source files in '/usr/src/linux-hwe-4.10.0' have not been configured.
ERROR: Installation has failed.  Please see the file '/var/log/nvidia-installer.log' for details.  You may find suggestions on fixing installation problems in the README available on the Linux driver download page at www.nvidia.com.

Eu tentei dar a cada versão do código-fonte do kernel a partir de /usr/src , mas continuo recebendo o mesmo problema.

Estou entendendo que como "version.h" não foi encontrado, as fontes do kernel não estão corretas, possivelmente. Mas não tenho certeza de qual local eu tenho para dar lá ou tenho que baixar algumas fontes adicionais. Eu re-instalei o Ubuntu 16.04.3 mas não tive sorte. Por favor me ajude, estou preso por muito tempo. Agradecemos antecipadamente.

    
por Kumar 06.12.2017 / 21:45

1 resposta

0

Sua Pilha de Ativação de Hardware no Ubuntu 16.04 fornece o kernel 4.10 ... mas os documentos da Intel para CUDA ( Instruções ) o apoio do estado para o Ubuntu 16.04 para o kernel 4.4 ... (para CUDA 9, então 8 seria similar).
O Ubuntu 14.01.1 ISO vem com o kernel 4.4 ... series. Se você reinstalar a partir desse ISO, você obterá o kernel suportado. Isso provavelmente seria mais fácil do que instalar a série 4.4 em seu sistema atual e, em seguida, tentar desanuviar qualquer outra coisa que a pilha HWE trouxesse.

No entanto, pode funcionar se você:

1) Instale os drivers proprietários da Nvidia primeiro. Pegue os que trabalham e lide com CUDA.

2) Use os arquivos .deb (locais) para instalação em vez dos arquivos .run. O download do cuda 8.0 já está legado e pode ser encontrado no link O download do cudnn é do link

 dpkg -i ...deb 

deve fazer isso.

3) Instale o pacote cuda nos repositórios do Ubuntu. Isso deve trazer o pacote cuda-toolkit e a maioria dos pacotes de biblioteca CUDA que você precisa. Note que algumas amostras podem precisar de bibliotecas adicionais, mas a maioria será executada com o acima.

Você parece estar perdendo os cabeçalhos necessários do kernel - eles são normalmente encontrados em / usr / src / linux-headers-4 ...., não o que você especificou. Não há nada para especificar assim para a instalação .deb, então eu não sei o que você precisa lá (algum requisito de arquivo .run?). De qualquer forma, o link acima tem instruções para alterar as variáveis PATH e LD_LIBRARY_PATH para pegar os binários e bibliotecas CUDA necessários.

    
por ubfan1 07.12.2017 / 01:19