GPU Programming

E. Carlinet

J. Chazalon

2021

Moodle page

Access the Moodle page here to take quizzes, select your project group and submit assignments.

Lectures

TP

Project

How to use OpenStack GPUs

  1. Make sure you have your SSH key registered on https://cri.epita.fr/users/{EPITA_LOGIN}/ssh-keys/.

  2. Connect to any available machine (pick one at random, your ~/afs/ directory will be shared):

    ssh -X -l $EPITALOGIN -p 22000 gpgpu.image.lrde.iaas.epita.fr
    ssh -X -l $EPITALOGIN -p 22001 gpgpu.image.lrde.iaas.epita.fr
    ssh -X -l $EPITALOGIN -p 22002 gpgpu.image.lrde.iaas.epita.fr
    ssh -X -l $EPITALOGIN -p 22003 gpgpu.image.lrde.iaas.epita.fr
  3. Activate your AFS:

    kinit  # Then enter you CRI password
    aklog
    $AFS_DIR/.confs/install.sh
  4. Activate the development environment featuring all CUDA tools:

    nix-shell /etc/nixos-gpgpu/shell.nix
  5. Then use NVidia tools directly to compile, debug and profile your programs:

    nvcc -o device_query -g -G device_query.cu