Skip to content

Commit db88afc

Browse files
committed
autofix oneMath_gemm
1 parent 6fcd1b1 commit db88afc

1 file changed

Lines changed: 15 additions & 21 deletions

File tree

Lesson_Materials/oneMath_gemm/index.html

Lines changed: 15 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,11 @@
22

33
<html>
44
<head>
5-
<meta charset="utf-8" />
6-
<link rel="stylesheet" href="../../Static/css/reveal.css" />
7-
<link
8-
rel="stylesheet"
9-
href="../../Static/css/theme/white.css"
10-
/>
11-
<link rel="stylesheet" href="../../Static/css/custom.css" />
12-
<link
13-
rel="stylesheet"
14-
href="../../Static/css/atom-one-light.css"
15-
/>
5+
<meta charset="utf-8"/>
6+
<link rel="stylesheet" href="../../Static/css/reveal.css"/>
7+
<link rel="stylesheet" href="../../Static/css/theme/white.css"/>
8+
<link rel="stylesheet" href="../../Static/css/custom.css"/>
9+
<link rel="stylesheet" href="../../Static/css/atom-one-light.css"/>
1610
<script src="../../node_modules/reveal.js/dist/reveal.js" defer></script>
1711
<script src="../../node_modules/reveal.js/dist/plugin/markdown.js" defer></script>
1812
<script src="../../node_modules/reveal.js/dist/plugin/highlight.js" defer></script>
@@ -25,7 +19,7 @@
2519
<div class="slides">
2620
<!--Slide 1-->
2721
<section class="hbox">
28-
<h2 style="text-transform: none;">
22+
<h2 style="text-transform: none;">
2923
oneAPI Math Library (oneMath)
3024
</h2>
3125
</section>
@@ -59,13 +53,13 @@ <h2 style="text-transform: none;">
5953
* **Intel CPU/GPU**: Intel Math Kernels Library (oneMKL)
6054
* **NVIDIA GPU**: cuBLAS, cuSOLVER, cuRAND, cuFFT
6155
* **AMD GPU**: rocBLAS, rocSOLVER, rocRAND, rocFFT
62-
* Imagine being able to use all of them with *single source code* &#8594; **oneMath**
56+
* Imagine being able to use all of them with *single source code* **oneMath**
6357
</div>
6458
</section>
6559
<!--Slide 5-->
6660
<section>
6761
<div class="hbox">
68-
<h2 style="text-transform: none;">
62+
<h2 style="text-transform: none;">
6963
oneAPI and oneMath
7064
</h2>
7165
</div>
@@ -80,14 +74,14 @@ <h2 style="text-transform: none;">
8074
* wrapper implementation dispatching SYCL API calls to a multitude of implementations, both generic and vendor-specific
8175
</div>
8276
<div class="container">
83-
<img style="height:4em; margin-top:2em;" src="../../Static/images/oneAPI.png" />
77+
<img style="height:4em; margin-top:2em;" src="../../Static/images/oneAPI.png"/>
8478
<div style="display: inline; width: 2em;"></div>
85-
<img style="height:4em; margin-top:2em;" src="../../Static/images/uxl.svg" />
79+
<img style="height:4em; margin-top:2em;" src="../../Static/images/uxl.svg"/>
8680
</div>
8781
</section>
8882
<!--Slide 6-->
8983
<section>
90-
<h2 style="text-transform: none;">
84+
<h2 style="text-transform: none;">
9185
oneMath library backends
9286
</h2>
9387
<object class="r-stretch" data="../../Static/images/oneMath-backends.svg"></object>
@@ -98,7 +92,7 @@ <h2 style="text-transform: none;">
9892
#### Run-time dispatching
9993
</div>
10094
<div class="container">
101-
<pre><code>
95+
<pre><code class="language-cpp">
10296
#include &lt;oneapi/math.hpp&gt;
10397

10498
sycl::queue q{myDeviceSelector};
@@ -125,16 +119,16 @@ <h2 style="text-transform: none;">
125119
#### Compile-time dispatching
126120
</div>
127121
<div class="container">
128-
<pre><code>
129-
#include &ltoneapi/math.hpp&gt
122+
<pre><code class="language-cpp">
123+
#include &lt;oneapi;/math.hpp&gt;
130124

131125
sycl::queue cpu_queue{sycl::cpu_selector_v};
132126

133127
sycl::buffer&lt;T,1&gt; a{a_host, m*k};
134128
sycl::buffer&lt;T,1&gt; b{b_host, k*n};
135129
sycl::buffer&lt;T,1&gt; c{c_host, m*n};
136130

137-
oneapi::math::backend_selector&ltoneapi::math::backend::mklcpu&gt cpu_selector(cpu_queue);
131+
oneapi::math::backend_selector&lt;oneapi;::math::backend::mklcpu&gt; cpu_selector(cpu_queue);
138132
// Select the Intel oneMKL CPU backend specifically ^^^^^^
139133

140134
oneapi::math::blas::column_major::gemm(cpu_selector, ..., m, n, k, ..., a, ..., b, ..., c, ... );

0 commit comments

Comments
 (0)