Skip to content

Commit

Permalink
Fix slide layout
Browse files Browse the repository at this point in the history
  • Loading branch information
luraess committed Nov 1, 2023
1 parent 746d1ab commit ac33609
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
6 changes: 4 additions & 2 deletions slide-notebooks/l7_1-xpu.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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 🚀).}

Expand Down Expand Up @@ -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`.}

Expand Down
4 changes: 2 additions & 2 deletions slide-notebooks/notebooks/l7_1-xpu.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@
"metadata": {
"name": "A slide ",
"slideshow": {
"slide_type": "fragment"
"slide_type": "slide"
}
}
},
Expand Down Expand Up @@ -663,7 +663,7 @@
"metadata": {
"name": "A slide ",
"slideshow": {
"slide_type": "fragment"
"slide_type": "slide"
}
}
},
Expand Down
6 changes: 4 additions & 2 deletions website/_literate/l7_1-xpu_web.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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 🚀).}

Expand Down Expand Up @@ -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`.}

Expand Down

0 comments on commit ac33609

Please sign in to comment.