Skip to content

Commit

Permalink
update lesson materials for high-language episode
Browse files Browse the repository at this point in the history
  • Loading branch information
code4yonglei committed Nov 12, 2024
1 parent 49e33d1 commit 9278fba
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions content/9-language-support.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ High-level language support

.. instructor-note::

- 25 min teaching
- 15 min exercises
- 40 min teaching
- 20 min exercises


Julia
Expand Down Expand Up @@ -477,6 +477,7 @@ into kernels and device functions following the execution model.
Kernels written in Numba appear to have direct access to NumPy arrays.
NumPy arrays are transferred between the CPU and the GPU automatically.


ufunc (gufunc) decorator
~~~~~~~~~~~~~~~~~~~~~~~~

Expand All @@ -486,6 +487,7 @@ will produce a ufunc-like object. This object is a close analog but not fully co
with a regular NumPy ufunc. Generating a ufunc for GPU requires the explicit
type signature and target attribute.


Examples
~~~~~~~~

Expand Down Expand Up @@ -632,6 +634,8 @@ Using ufuncs (or gfuncs) for GPU processing can be straightforward, but this app

To gain greater control and flexibility, one may need to craft their own kernels and manually manage data transfer. Refer to the *Python for HPDA* resource linked below for guidance on implementing such techniques using Numba.



Exercises
---------

Expand All @@ -646,7 +650,11 @@ Exercises
See also
--------

* `Python for HPDA (ENCCS) <https://enccs.github.io/hpda-python/parallel-computing/>`__
* `Python in HPC (UPPMAX-HPC2N) <https://uppmax.github.io/HPC-python/>`__
* `Julia for HPC <https://enccs.github.io/julia-for-hpc/>`__

* `Introduction to programming in Julia (ENCCS) <https://enccs.github.io/julia-intro/>`__
* `Julia for High-Performance Scientific Computing (ENCCS) <https://enccs.github.io/julia-for-hpc/>`__
* `Julia for high-performance data analytics (ENCCS) <https://enccs.github.io/julia-for-hpda/>`__
* `Introduction to running R, Python, Julia, and Matlab in HPC (NAISS-LUNARC-HPC2N-UPPMAX) <https://uppmax.github.io/R-python-julia-matlab-HPC/>`__
* `High Performance Data Analytics in Python (ENCCS) <https://enccs.github.io/hpda-python/>`_
* `Practical Intro to GPU Programming using Python (ENCCS) <https://github.com/ENCCS/webinar_documents/tree/main/2024-oct-24-python>`_
* `Using Python in an HPC environment (UPPMAX-HPC2N) <https://uppmax.github.io/HPC-python/>`__
* `Python for Scientific Computing (Aalto Scientific Computing) <https://aaltoscicomp.github.io/python-for-scicomp/>`_

0 comments on commit 9278fba

Please sign in to comment.