From ac336097e31c3d36eb4666c99b5283335dfc2325 Mon Sep 17 00:00:00 2001 From: Ludovic Raess Date: Wed, 1 Nov 2023 10:34:49 +0100 Subject: [PATCH] Fix slide layout --- slide-notebooks/l7_1-xpu.jl | 6 ++++-- slide-notebooks/notebooks/l7_1-xpu.ipynb | 4 ++-- website/_literate/l7_1-xpu_web.jl | 6 ++++-- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/slide-notebooks/l7_1-xpu.jl b/slide-notebooks/l7_1-xpu.jl index c9748737..87596574 100644 --- a/slide-notebooks/l7_1-xpu.jl +++ b/slide-notebooks/l7_1-xpu.jl @@ -305,7 +305,8 @@ md""" - Changing the `inbounds=false` flag to `inbounds=true` will globally apply `@inbounds` in front of compute statements and deliver better performance. Beware to enable this option only once the code delivers epxected results. """ -#nb # %% A slide [markdown] {"slideshow": {"slide_type": "fragment"}} +#src ######################################################################### +#nb # %% A slide [markdown] {"slideshow": {"slide_type": "slide"}} #nb # > 💡 note: Curious to see how it works under the hood? Feel free to [explore the source code](https://github.com/omlins/ParallelStencil.jl/blob/cd59a5b0d1fd32ceaecbf7fc922ab87a24257781/src/ParallelKernel/parallel.jl#L263). Another nice bit of open source software (and the fact that Julia's meta programming rocks 🚀). #md # \note{Curious to see how it works under the hood? Feel free to [explore the source code](https://github.com/omlins/ParallelStencil.jl/blob/cd59a5b0d1fd32ceaecbf7fc922ab87a24257781/src/ParallelKernel/parallel.jl#L263). Another nice bit of open source software (and the fact that Julia's meta programming rocks 🚀).} @@ -348,7 +349,8 @@ Then, we can modify the `compute_flux!` function definition from the `diffusion_ return nothing end -#nb # %% A slide [markdown] {"slideshow": {"slide_type": "fragment"}} +#src ######################################################################### +#nb # %% A slide [markdown] {"slideshow": {"slide_type": "slide"}} #nb # > 💡 note: Using `@parallel_indices` one can specify to activate `inbounds=true` on a per-kernel basis (`@parallel_indices (ix, iy) inbounds=true function`). This option can be globally overwrritten by `@init_parallel_stencil`. #md # \note{Using `@parallel_indices` one can specify to activate `inbounds=true` on a per-kernel basis (`@parallel_indices (ix, iy) inbounds=true function`). This option can be globally overwrritten by `@init_parallel_stencil`.} diff --git a/slide-notebooks/notebooks/l7_1-xpu.ipynb b/slide-notebooks/notebooks/l7_1-xpu.ipynb index ba75444f..d14b8e19 100644 --- a/slide-notebooks/notebooks/l7_1-xpu.ipynb +++ b/slide-notebooks/notebooks/l7_1-xpu.ipynb @@ -573,7 +573,7 @@ "metadata": { "name": "A slide ", "slideshow": { - "slide_type": "fragment" + "slide_type": "slide" } } }, @@ -663,7 +663,7 @@ "metadata": { "name": "A slide ", "slideshow": { - "slide_type": "fragment" + "slide_type": "slide" } } }, diff --git a/website/_literate/l7_1-xpu_web.jl b/website/_literate/l7_1-xpu_web.jl index 5ca24acd..36f6ba9e 100644 --- a/website/_literate/l7_1-xpu_web.jl +++ b/website/_literate/l7_1-xpu_web.jl @@ -304,7 +304,8 @@ md""" - Changing the `inbounds=false` flag to `inbounds=true` will globally apply `@inbounds` in front of compute statements and deliver better performance. Beware to enable this option only once the code delivers epxected results. """ -#nb # %% A slide [markdown] {"slideshow": {"slide_type": "fragment"}} +#src ######################################################################### +#nb # %% A slide [markdown] {"slideshow": {"slide_type": "slide"}} #nb # > 💡 note: Curious to see how it works under the hood? Feel free to [explore the source code](https://github.com/omlins/ParallelStencil.jl/blob/cd59a5b0d1fd32ceaecbf7fc922ab87a24257781/src/ParallelKernel/parallel.jl#L263). Another nice bit of open source software (and the fact that Julia's meta programming rocks 🚀). #md # \note{Curious to see how it works under the hood? Feel free to [explore the source code](https://github.com/omlins/ParallelStencil.jl/blob/cd59a5b0d1fd32ceaecbf7fc922ab87a24257781/src/ParallelKernel/parallel.jl#L263). Another nice bit of open source software (and the fact that Julia's meta programming rocks 🚀).} @@ -347,7 +348,8 @@ Then, we can modify the `compute_flux!` function definition from the `diffusion_ return nothing end -#nb # %% A slide [markdown] {"slideshow": {"slide_type": "fragment"}} +#src ######################################################################### +#nb # %% A slide [markdown] {"slideshow": {"slide_type": "slide"}} #nb # > 💡 note: Using `@parallel_indices` one can specify to activate `inbounds=true` on a per-kernel basis (`@parallel_indices (ix, iy) inbounds=true function`). This option can be globally overwrritten by `@init_parallel_stencil`. #md # \note{Using `@parallel_indices` one can specify to activate `inbounds=true` on a per-kernel basis (`@parallel_indices (ix, iy) inbounds=true function`). This option can be globally overwrritten by `@init_parallel_stencil`.}