Learn · CERN

Talk57 min

Multiplatform Programming with Python

Peter Kicsiny · CERN

Watch At CERN

About

In this course the students can learn how to write platform agnostic code using Python (and some C). Some knowledge (~1 year experience) of these two languages is recommended.

The lecture will focus on how Python can easily be combined with C for CPU and GPU programming, by exploiting the advantages of both languages. The goal is to introduce 3 Python libraries that are used at CERN (e.g. in modern multiparticle simulation frameworks): CFFI, CuPy and PyOpenCL. CFFI is a library for Python-C interfacing and CPU kernel execution. CuPy and PyOpenCL are libraries for kernel execution compatible with GPUs. Additionally, there will be a short review of heterogeneous programming and a comparison of the CUDA and OpenCL programming models.

In a subsequent tutorial session the students will be able to play around with these Python libraries..

0:00:00 Slide 1

0:04:48 Slide 2

0:06:44 Slide 3

0:08:14 Slide 4

0:09:36 Slide 5

0:10:54 Slide 6

0:17:36 Slide 7

0:18:52 Slide 8

0:20:13 Slide 9

The talk

  1. Multiplatform Programming with Python 2023-03-08 · 57 min · CERN's player

Credits and licence

Institution
CERN
Department
Inverted CSC
Speaker
Peter Kicsiny
Year
2023
Language
English
Subjects
Computer science
Source
CERN
Licence
CERN, as CERN states it. CERN's terms
Attribution
© CERN. CERN provides its audiovisual media free of charge for educational and informational use, credited to CERN; this lecture is shown in CERN's own player.
Who can watch
CERN gives no rating. Invisible Network shows it to Tweens profiles and older, judged from what the source says about it. How courses are placed