You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: DirectProgramming/C++SYCL/DenseLinearAlgebra/address_sanitizer/README.md
+12-9Lines changed: 12 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,17 +1,17 @@
1
-
# `Jacobi Iterative Solver` Sample
1
+
# `Address Sanitizer` Sample
2
2
3
-
The `Jacobi Iterative Solver` sample demonstrates how to use Intel® oneAPI Base Toolkit (Base Kit) to target CPU, GPU, and multi-GPU to offload resource intensive computation using SYCL*. The targeted sample code demonstrates optimization and runtime differences for each type of device.
3
+
The `Address Sanitizer` sample demonstrates how to use the AddressSanitizer (ASan) memory detector with the SYCL library.
4
4
5
5
| Area | Description
6
6
|:--- |:---
7
-
| What you will learn | How selecting a different target impacts the behavior of a program.
7
+
| What you will learn | How to use the Address Sanitizer tool
8
8
| Time to complete | 10 minutes
9
-
| Category | Code Optimization
9
+
| Category | Memory Management
10
10
11
11
12
12
## Purpose
13
13
14
-
The `Jacobi Iterative Solver` sample illustrates how to use the Jacobi Iterative method to solve linear equations. In this case, the sample solves a system of equations represented by two input matrices. The first matrix is the number of unknown variables. The second matrix contains the results. The sample code calculates the results using the Jacobi method and compares the newly calculated results with the old ones.
14
+
The `Address Sanitizer` sample illustrates how to use Address Sanitizer to manage memory errors with the SYCL library. Each of the examples shows a different error and how to
15
15
16
16
This sample starts with a CPU-oriented application and shows how to use SYCL and several tools to offload regions of the code to a GPU on the target system.
17
17
@@ -31,17 +31,20 @@ The sample includes three versions of the `Jacobi Iterative Solver` program.
31
31
32
32
| Optimized for | Description
33
33
|:--- |:---
34
-
| OS | Ubuntu*18.04 (or newer)
34
+
| OS | Ubuntu*20.04 (or newer)
35
35
| Hardware | GEN9 (or newer)
36
36
| Software | Intel® oneAPI DPC++/C++ Compiler
37
37
38
38
## Key Implementation Details
39
39
40
40
The basic SYCL implementation explained in the code includes:
41
41
42
-
- local buffers and accessors (declare local memory buffers and accessors to be accessed and managed by each workgroup)
43
-
- shared local memory (SLM) optimizations
44
-
- kernels (including parallel_for function and range<1> objects)
0 commit comments