Coder Social home page Coder Social logo

ashishd / gpu-programming-essentials Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pawseysc/gpu-programming-essentials

0.0 0.0 0.0 56 KB

Repository containing material exercises for the GPU Programming Essentials lecture

License: MIT License

C 6.51% Fortran 2.93% Cuda 90.56%

gpu-programming-essentials's Introduction

GPU Programming Essentials

Exercises for the GPU Programming Essentials lecture for Curtin's HPC course.

All the exercises will be run on Topaz cluster, although you can run them on your local machine as well if you have a NVIDIA Graphics Card.

Loading and using CUDA

The latest NVIDIA SDK has been installed in the course's group directory. To use it, execute the following

module use /group/courses0100/software/nvhpc/modulefiles
module load nvhpc/21.9

For CUDA C/C++ code, use the nvcc compiler.

For CUDA Fortran code, use the nvfortran compiler.

Example batch script

#!/bin/bash


#SBATCH --ntasks=1
#SBATCH --gres=gpu:1
#SBATCH --account=courses0100
#SBATCH --nodes=1
#SBATCH --partition=gpuq

module use /group/courses0100/software/nvhpc/modulefiles
module load nvhpc/21.9

srun nvcc -o add vector_add/gpu_vector_add.cu
srun ./add

gpu-programming-essentials's People

Contributors

dipietrantonio avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.