Loading Events

Survival C/C++ for HIP and OpenCL

8 June 2023
9:00am - 1:00pm

Registrations for this session has now closed! Please continue to sign up if you would like to be added to a waitlist. Thank you.

The C++ programming language and its C subset is used extensively in research environments. In particular it is the language utilised in the parallel programming frameworks CUDA, HIP, and OpenCL.

This workshop is designed to equip participants with “Survival C++”, an understanding of the basic syntax, how information is encoded in binary format, and how to compile and debug C++ software.

JOIN AS A PRE-REQUISITE to HIP and OpenCL trainings: The workshops from Pawsey on HIP and OpenCL use examples written in basic C++, and it is vital that attendees have a working knowledge of the language beforehand.

THE TOPICS:

Topics to be covered are as follows:

  • Making code understandable with comments
  • Statements and code blocks in C++
  • How integers and floats encode and approximate information.
  • Using functions
  • How to print values for debugging
  • Basic math operators in C/C++
  • Flow control such as if statements and for loops
  • Arrays and memory allocations
    • Static and dynamic memory allocation
    • Multi-dimensional array representations
  • Strings
  • Reading and writing binary data
  • Compiling C++ source code
  • Debugging with the GDB debugging tool
  • Matrix multiplication with C++

The information taught in the workshop will be accompanied by interactive examples and exercises.

Register here:

  • List your primary domain / research field.
  • For example, PhD, Masters, Researcher, etc.
    A Pawsey Friend receives occasional newsletters with Pawsey-related updates ranging from events, job opportunities, training, news and more.

About your trainer: Toby Potter

Dr. Toby Potter

Dr. Toby Potter is a computational physicist and proprietor of Pelagos Consulting and Education.

He has a keen interest in using computers to solve problems and showing others how to do the same. Toby was a Pawsey (then iVEC) intern in 2007 and went on to complete a doctorate in computational Astrophysics at UWA and a postdoc in computational geophysics at the Centre for Energy Geoscience (UWA).

Toby has experience in CUDA, HIP and OpenCL parallel processing frameworks and is the author of the workshop material.

At Pelagos Toby uses his background to translate mathematical ideas into software and makes challenging concepts easier for clients in industry, government, and academia.