HPC/Applications/cuda: Difference between revisions

From CNM Wiki
Jump to navigation Jump to search
mNo edit summary
Line 8: Line 8:
# The [https://developer.nvidia.com/cuda-toolkit CUDA toolkit], containing the compiler <code>nvcc</code>, C include files, and libraries. Load this component as a module to compile and run applications that use GPUs on Carbon.
# The [https://developer.nvidia.com/cuda-toolkit CUDA toolkit], containing the compiler <code>nvcc</code>, C include files, and libraries. Load this component as a module to compile and run applications that use GPUs on Carbon.
# The driver – a kernel module that is installed on Carbon nodes that have a GPU.
# The driver – a kernel module that is installed on Carbon nodes that have a GPU.
# The [https://developer.nvidia.com/gpu-computing-sdk GPU Computing SDK] - code samples and white papers to help you get started writing software with CUDA C/C++. Available on Carbon as
# The [https://developer.nvidia.com/gpu-computing-sdk GPU Computing SDK] - code samples and white papers to help you get started writing software with CUDA C/C++. Available on Carbon:
~soft/cuda/dist/4.2/gpucomputingsdk_4.2.9_linux.run
#; packed: <code>~soft/cuda/dist/4.2/gpucomputingsdk_4.2.9_linux.{run,tar.gz}</code>
~soft/cuda/dist/4.2/gpucomputingsdk_4.2.9_linux.tar.gz
#; unpacked: <code>~soft/cuda/NVIDIA_GPU_Computing_SDK-4.2</code>
#: If you wish to unpack yourself, supply as CUDA install path: <code>/opt/soft/cuda-4.2.9-1</code> . For reference, here is what happens:
<pre>
$ module load cuda
$ ~soft/cuda/dist/4.2/gpucomputingsdk_4.2.9_linux.run
Script started, file is ./gpucomputingsdk_4.2.9_linux.log
Verifying archive integrity... All good.
Uncompressing NVIDIA GPU Computing SDK.........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
 
Enter install path (default ~/NVIDIA_GPU_Computing_SDK):
INPUT> /home/share/soft/cuda/NVIDIA_GPU_Computing_SDK-4.2
 
Located CUDA at /opt/soft/cuda-4.2.9-1
If this is correct, choose the default below.
If it is not correct, enter the correct path to CUDA
 
Cannot create second readline interface, falling back to dumb.
Enter CUDA install path (default /opt/soft/cuda-4.2.9-1):
`sdk/C' -> `/home/share/soft/cuda/NVIDIA_GPU_Computing_SDK-4.2/C'
`sdk/C/common' -> `/home/share/soft/cuda/NVIDIA_GPU_Computing_SDK-4.2/C/common'
`sdk/C/common/Makefile_rendercheckgl' -> `/home/share/soft/cuda/NVIDIA_GPU_Computing_SDK-4.2/C/common/Makefile_rendercheckgl'
`sdk/shared/inc/nvMatrix.h' -> `/home/share/soft/cuda/NVIDIA_GPU_Computing_SDK-4.2/shared/inc/nvMatrix.h'
`sdk/shared/inc/exception.h' -> `/home/share/soft/cuda/NVIDIA_GPU_Computing_SDK-4.2/shared/inc/exception.h'
 
========================================
 
Configuring SDK Makefile (/home/share/soft/cuda/NVIDIA_GPU_Computing_SDK-4.2/C/common/common.mk)...
Configuring SDK Makefile (/home/share/soft/cuda/NVIDIA_GPU_Computing_SDK-4.2/OpenCL/common/common_opencl.mk)...
Configuring SDK Makefile (/home/share/soft/cuda/NVIDIA_GPU_Computing_SDK-4.2/CUDALibraries/common/common_cudalib.mk)...
Configuring SDK Makefile (/home/share/soft/cuda/NVIDIA_GPU_Computing_SDK-4.2/CUDALibraries/common/common_npplib.mk)...
Configuring SDK Makefile (/home/share/soft/cuda/NVIDIA_GPU_Computing_SDK-4.2/CUDALibraries/common/UtilNPP/defines.mk)...
 
========================================
 
* Please make sure your PATH includes /opt/soft/cuda-4.2.9-1/bin
* Please make sure your LD_LIBRARY_PATH includes:
*  for 32-bit Linux distributions: /opt/soft/cuda-4.2.9-1/lib
*  for 64-bit Linux distributions: /opt/soft/cuda-4.2.9-1/lib64 and /opt/soft/cuda-4.2.9-1/lib
 
* To uninstall the NVIDIA GPU Computing SDK, please delete /home/share/soft/cuda/NVIDIA_GPU_Computing_SDK-4.2
* Installation Complete
</pre>

Revision as of 20:30, November 26, 2012

The initial module release contains the 4.2.x CUDA production release; the recently released version 5.0 is not yet provided.

Components

There are three components to CUDA 4.2:

  1. The CUDA toolkit, containing the compiler nvcc, C include files, and libraries. Load this component as a module to compile and run applications that use GPUs on Carbon.
  2. The driver – a kernel module that is installed on Carbon nodes that have a GPU.
  3. The GPU Computing SDK - code samples and white papers to help you get started writing software with CUDA C/C++. Available on Carbon:
    packed
    ~soft/cuda/dist/4.2/gpucomputingsdk_4.2.9_linux.{run,tar.gz}
    unpacked
    ~soft/cuda/NVIDIA_GPU_Computing_SDK-4.2
    If you wish to unpack yourself, supply as CUDA install path: /opt/soft/cuda-4.2.9-1 . For reference, here is what happens:
$ module load cuda
$ ~soft/cuda/dist/4.2/gpucomputingsdk_4.2.9_linux.run
Script started, file is ./gpucomputingsdk_4.2.9_linux.log
Verifying archive integrity... All good.
Uncompressing NVIDIA GPU Computing SDK.........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................

Enter install path (default ~/NVIDIA_GPU_Computing_SDK):
INPUT> /home/share/soft/cuda/NVIDIA_GPU_Computing_SDK-4.2 

Located CUDA at /opt/soft/cuda-4.2.9-1
If this is correct, choose the default below.
If it is not correct, enter the correct path to CUDA

Cannot create second readline interface, falling back to dumb.
Enter CUDA install path (default /opt/soft/cuda-4.2.9-1): 
`sdk/C' -> `/home/share/soft/cuda/NVIDIA_GPU_Computing_SDK-4.2/C'
`sdk/C/common' -> `/home/share/soft/cuda/NVIDIA_GPU_Computing_SDK-4.2/C/common'
`sdk/C/common/Makefile_rendercheckgl' -> `/home/share/soft/cuda/NVIDIA_GPU_Computing_SDK-4.2/C/common/Makefile_rendercheckgl'
…
`sdk/shared/inc/nvMatrix.h' -> `/home/share/soft/cuda/NVIDIA_GPU_Computing_SDK-4.2/shared/inc/nvMatrix.h'
`sdk/shared/inc/exception.h' -> `/home/share/soft/cuda/NVIDIA_GPU_Computing_SDK-4.2/shared/inc/exception.h'

========================================

Configuring SDK Makefile (/home/share/soft/cuda/NVIDIA_GPU_Computing_SDK-4.2/C/common/common.mk)...
Configuring SDK Makefile (/home/share/soft/cuda/NVIDIA_GPU_Computing_SDK-4.2/OpenCL/common/common_opencl.mk)...
Configuring SDK Makefile (/home/share/soft/cuda/NVIDIA_GPU_Computing_SDK-4.2/CUDALibraries/common/common_cudalib.mk)...
Configuring SDK Makefile (/home/share/soft/cuda/NVIDIA_GPU_Computing_SDK-4.2/CUDALibraries/common/common_npplib.mk)...
Configuring SDK Makefile (/home/share/soft/cuda/NVIDIA_GPU_Computing_SDK-4.2/CUDALibraries/common/UtilNPP/defines.mk)...

========================================

* Please make sure your PATH includes /opt/soft/cuda-4.2.9-1/bin
* Please make sure your LD_LIBRARY_PATH includes:
*   for 32-bit Linux distributions: /opt/soft/cuda-4.2.9-1/lib
*   for 64-bit Linux distributions: /opt/soft/cuda-4.2.9-1/lib64 and /opt/soft/cuda-4.2.9-1/lib

* To uninstall the NVIDIA GPU Computing SDK, please delete /home/share/soft/cuda/NVIDIA_GPU_Computing_SDK-4.2
* Installation Complete