Instalação do CUDA no openSUSE Leap 42.1

Neste post, deixo as instruções de como instalar o pacote CUDA Toolkit na plataforma openSUSE Leap 42.2

  1. Efetue o download no link: https://developer.nvidia.com/cuda-downloads ;
  2. Escolha a arquitetura;
  3. Escolha o sistema operacional Linux;
  4. A versão de seu Linux;
  5. O tipo do instalador;
  6. E finalmente efetue o download do pacote cuda_7.5.18_linux.run

Partindo do principio que o driver já esta instalado e configurado, a seguir execute o arquivo, com as seguintes resposta baseado no exemplo abaixo:

# ./cuda_7.5.18_linux.run 
Logging to /tmp/cuda_install_2681.log
Using less to view the EULA.
Do you accept the previously read EULA? (accept/decline/quit): accept
You are attempting to install on an unsupported configuration. Do you wish to continue? ((y)es/(n)o) [ default is no ]: yes
Install NVIDIA Accelerated Graphics Driver for Linux-x86_64 352.39? ((y)es/(n)o/(q)uit): no
Install the CUDA 7.5 Toolkit? ((y)es/(n)o/(q)uit): yes
Enter Toolkit Location [ default is /usr/local/cuda-7.5 ]: 
Do you want to install a symbolic link at /usr/local/cuda? ((y)es/(n)o/(q)uit): yes
Install the CUDA 7.5 Samples? ((y)es/(n)o/(q)uit): yes
Enter CUDA Samples Location [ default is /root ]: /root/cuda
Installing the CUDA Toolkit in /usr/local/cuda-7.5 ...

Installing the CUDA Samples in /dados/programas/cuda ...
Copying samples to /dados/programas/cuda/NVIDIA_CUDA-7.5_Samples now...
Finished copying samples.

===========
= Summary =
===========

Driver: Not Selected
Toolkit: Installed in /usr/local/cuda-7.5
Samples: Installed in /dados/programas/cuda, but missing recommended libraries

Please make sure that
 - PATH includes /usr/local/cuda-7.5/bin
 - LD_LIBRARY_PATH includes /usr/local/cuda-7.5/lib64, or, add /usr/local/cuda-7.5/lib64 to /etc/ld.so.conf and run ldconfig as root

To uninstall the CUDA Toolkit, run the uninstall script in /usr/local/cuda-7.5/bin
To uninstall the NVIDIA Driver, run nvidia-uninstall

Please see CUDA_Installation_Guide_Linux.pdf in /usr/local/cuda-7.5/doc/pdf for detailed information on setting up CUDA.

***WARNING: Incomplete installation! This installation did not install the CUDA Driver. A driver of version at least 352.00 is required for CUDA 7.5 functionality to work.
To install the driver using this installer, run the following command, replacing <CudaInstaller> with the name of this run file:
 sudo <CudaInstaller>.run -silent -driver

Logfile is /tmp/cuda_install_2681.log

Agora se tudo estiver funcionando corretamente, execute:

# cd /root/NVIDIA_CUDA-7.5_Samples/1_Utilities/deviceQuery
# optirun ./deviceQueryv 
*** (remova o optrun se não possuir 2 placa de vídeos)

./deviceQuery Starting...

CUDA Device Query (Runtime API) version (CUDART static linking)

Detected 1 CUDA Capable device(s)

Device 0: "GeForce GTX 860M"
 CUDA Driver Version / Runtime Version 7.5 / 7.5
 CUDA Capability Major/Minor version number: 5.0
 Total amount of global memory: 2048 MBytes (2147352576 bytes)
 ( 5) Multiprocessors, (128) CUDA Cores/MP: 640 CUDA Cores
 GPU Max Clock rate: 1020 MHz (1.02 GHz)
 Memory Clock rate: 2505 Mhz
 Memory Bus Width: 128-bit
 L2 Cache Size: 2097152 bytes
 Maximum Texture Dimension Size (x,y,z) 1D=(65536), 2D=(65536, 65536), 3D=(4096, 4096, 4096)
 Maximum Layered 1D Texture Size, (num) layers 1D=(16384), 2048 layers
 Maximum Layered 2D Texture Size, (num) layers 2D=(16384, 16384), 2048 layers
 Total amount of constant memory: 65536 bytes
 Total amount of shared memory per block: 49152 bytes
 Total number of registers available per block: 65536
 Warp size: 32
 Maximum number of threads per multiprocessor: 2048
 Maximum number of threads per block: 1024
 Max dimension size of a thread block (x,y,z): (1024, 1024, 64)
 Max dimension size of a grid size (x,y,z): (2147483647, 65535, 65535)
 Maximum memory pitch: 2147483647 bytes
 Texture alignment: 512 bytes
 Concurrent copy and kernel execution: Yes with 1 copy engine(s)
 Run time limit on kernels: Yes
 Integrated GPU sharing Host Memory: No
 Support host page-locked memory mapping: Yes
 Alignment requirement for Surfaces: Yes
 Device has ECC support: Disabled
 Device supports Unified Addressing (UVA): Yes
 Device PCI Domain ID / Bus ID / location ID: 0 / 1 / 0
 Compute Mode:
 < Default (multiple host threads can use ::cudaSetDevice() with device simultaneously) >
deviceQuery, CUDA Driver = CUDART, CUDA Driver Version = 7.5, CUDA Runtime Version = 7.5, NumDevs = 1, Device0 = GeForce GTX 860M
Result = PASS

Pronto, veja um exemplo de processamento gráfico em tempo real…

2 comentários em “Instalação do CUDA no openSUSE Leap 42.1

Deixe uma resposta para Jose Carlos Rocha Cancelar resposta

Preencha os seus dados abaixo ou clique em um ícone para log in:

Logotipo do WordPress.com

Você está comentando utilizando sua conta WordPress.com. Sair /  Alterar )

Foto do Google

Você está comentando utilizando sua conta Google. Sair /  Alterar )

Imagem do Twitter

Você está comentando utilizando sua conta Twitter. Sair /  Alterar )

Foto do Facebook

Você está comentando utilizando sua conta Facebook. Sair /  Alterar )

Conectando a %s

Este site utiliza o Akismet para reduzir spam. Saiba como seus dados em comentários são processados.