Skip to content

Commit 7d5824b

Browse files
authored
Merge pull request #151 from codeplaysoftware/updates-2022
Updates & Fixes from recent training
2 parents 6a53f5b + 0513333 commit 7d5824b

File tree

7 files changed

+8
-9
lines changed

7 files changed

+8
-9
lines changed

Code_Exercises/Exercise_18_Local_Memory_Tiling/solution.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ TEST_CASE("image_convolution_tiled", "local_memory_tiling_solution") {
111111
}
112112
}
113113

114-
item.barrier();
114+
sycl::group_barrier(item.get_group());
115115

116116
auto sum = sycl::float4{0.0f, 0.0f, 0.0f, 0.0f};
117117

Code_Exercises/Exercise_19_Work_Group_Sizes/solution.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ TEST_CASE("image_convolution_tiled", "local_memory_tiling_solution") {
111111
}
112112
}
113113

114-
item.barrier();
114+
sycl::group_barrier(item.get_group());
115115

116116
auto sum = sycl::float4{0.0f, 0.0f, 0.0f, 0.0f};
117117

Lesson_Materials/Lecture_01_What_is_SYCL/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
#### What is SYCL?
108108
</div>
109109
<div class="hbox" data-markdown>
110-
SYCL is a **single source**, high-level, standard C++ programming model, that can target a range of heterogeneous platforms
110+
SYCL is a ***single source***, high-level, standard C++ programming model, that can target a range of heterogeneous platforms
111111
</div>
112112
<div class="container">
113113
<div class="col" data-markdown>
@@ -130,7 +130,7 @@
130130
#### What is SYCL?
131131
</div>
132132
<div class="hbox" data-markdown>
133-
SYCL is a single source, **high-level**, standard C++ programming model, that can target a range of heterogeneous platforms
133+
SYCL is a single source, ***high-level***, standard C++ programming model, that can target a range of heterogeneous platforms
134134
</div>
135135
<div class="container">
136136
<article class="main" data-markdown>
@@ -150,7 +150,7 @@
150150
#### What is SYCL?
151151
</div>
152152
<div class="hbox" data-markdown>
153-
SYCL is a single source, high-level **standard C++** programming model, that can target a range of heterogeneous platforms
153+
SYCL is a single source, high-level ***standard C++*** programming model, that can target a range of heterogeneous platforms
154154
</div>
155155
<div class="container">
156156
<div class="col" data-markdown>

Lesson_Materials/Lecture_02_Enqueuing_a_Kernel/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@
325325
<div class=container data-markdown>
326326
* Must be defined using a C++ lambda or function object, they cannot be a function pointer or std::function.
327327
* Must always capture or store members by-value.
328-
* SYCL kernel functions declared with a lambda must be named using a forward declarable C++ type, declared in global scope.
328+
* SYCL kernel functions declared with a lambda ~~must be named using a forward declarable C++ type, declared in global scope~~ can be anonymous since SYCL 2020!
329329
* SYCL kernel function names follow C++ ODR rules, which means you cannot have two kernels with the same name.
330330
</div>
331331
</section>

Lesson_Materials/Lecture_14_ND_Range_Kernel/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@
330330
* Nested subscript operators can be called for each dimension taking a **size_t**
331331
* E.g. a 3-dimensional accessor: acc[x][y][z] = …
332332
* A pointer to memory can be retrieved by calling **get_pointer**
333-
* This returns a **multi_ptr**, which is a wrapper class for pointers to the memory in the relevant memory space
333+
* This returns a raw pointer to the data
334334
</div>
335335
</section>
336336
<!--Slide 23-->

Lesson_Materials/Lecture_16_Coalesced_Global_Memory/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@
138138
#### Row-major vs Column-major
139139
</div>
140140
<div class="container" data-markdown>
141-
* Coalescing global memory access is particularly important when wording in multiple dimensions.
141+
* Coalescing global memory access is particularly important when working in multiple dimensions.
142142
* This is because when doing so you have to convert from a position in 2d space to a linear memory space.
143143
* There are two ways to do this; generally referred to as row-major and column-major.
144144
</div>

Lesson_Materials/Lecture_19_Work_Group_Sizes/index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@
6060
<!--Slide 2-->
6161
<section class="hbox" data-markdown>
6262
## Learning Objectives
63-
* Learn about using computecpp_info
6463
* Learn about compute and memory bound algorithms
6564
* Learn about optimizing for occupancy
6665
* Learn about optimizing for throughput

0 commit comments

Comments
 (0)