Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Writing Portable C++ Programs for CPU and GPU

CppCon via YouTube

Overview

Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Learn effective patterns for developing portable C++ code that runs seamlessly on both CPU and GPU (CUDA) environments in this conference talk from CppCon 2024. Explore key strategies including "Host device everything," conditional compilation techniques, constexpr function optimization, handling compiler warnings, and template-based solutions. Discover how to address common challenges arising from architectural differences between CPUs and GPUs, with detailed evaluation of each pattern's usability, maintenance requirements, and practical applications. Master defensive programming approaches and function dispatching methods while gaining insights into potential pitfalls and implementation considerations. Presented by Thomas Mejstrik, a mathematics Ph.D. holder specializing in numerical linear algebra and high-performance computing, who brings extensive experience in CUDA/C++ development and academic research to provide comprehensive guidance for cross-platform code development.

Syllabus

Bridging the Gap: Writing Portable C++ Programs for CPU and GPU - Thomas Mejstrik - CppCon 2024

Taught by

CppCon

Reviews

Start your review of Writing Portable C++ Programs for CPU and GPU

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.