Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions Tools/ApplicationDebugger/array-transform/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ through this sample *after* you familiarize yourself with the basics of
SYCL programming, and *before* you start using the debugger.


| Area | Description
|---------------------|--------------
| What you will learn | Essential debugger features for effective debugging on CPU, GPU (Linux only), and FPGA emulator
| Time to complete | 20 minutes for CPU or FPGA emulator; 30 minutes for GPU
| Area | Description |
|---------------------|-------------------------------------------------------------------------------------------------|
| What you will learn | Essential debugger features for effective debugging on CPU, GPU (Linux only), and FPGA emulator |
| Time to complete | 20 minutes for CPU or FPGA emulator; 30 minutes for GPU |

This sample accompanies
[Get Started with Intel® Distribution for GDB* on Linux* OS Host](https://software.intel.com/en-us/get-started-with-debugging-dpcpp)
Expand All @@ -34,16 +34,16 @@ of the application debugger.

## Prerequisites

| Optimized for | Description
|--------------------------------------------------|--------------
| OS | Linux* Ubuntu* 20.04 to 22.04 <br> CentOS* 8 <br> Fedora* 30 <br> SLES 15 <br> Windows* 10, 11
| Hardware to debug offloaded <br> kernels on GPUs | Intel® Arc(tm) <br> Intel® Data Center GPU Flex Series
| Software | Intel&reg; oneAPI DPC++/C++ Compiler
| Optimized for | Description |
|--------------------------------------------------|------------------------------------------------------------------------------------------------|
| OS | Linux* Ubuntu* 20.04 to 22.04 <br> CentOS* 8 <br> Fedora* 30 <br> SLES 15 <br> Windows* 10, 11 |
| Hardware to debug offloaded <br> kernels on GPUs | Intel® Arc(tm) <br> Intel® Data Center GPU Flex Series |
| Software | Intel&reg; oneAPI DPC++/C++ Compiler |

> **Note** although the sample can be run on all supported by Intel® oneAPI
> Base Toolkit platforms, the GPU debugger can debug only kernels offloaded
> onto devices specified at “Hardware to debug offloaded kernels on GPUs”
> while running with the L0 backend. When the GPU device is different from
> while running with the L0 backend. When the GPU device is different from
> the listed above, e.g., an integrated graphics device, breakpoints inside
> the kernel won't be hit. In such case, try to switch the offload to a CPU
> device by using ONEAPI_DEVICE_SELECTOR environment variable.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required (VERSION 3.4)
cmake_minimum_required (VERSION 3.5)
set (CMAKE_CXX_COMPILER "icpx")
project (matrix_mul LANGUAGES CXX)

Expand Down
324 changes: 216 additions & 108 deletions Tools/ApplicationDebugger/guided_matrix_mult_BadBuffers/README.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,14 @@ int main() {
q.memcpy(&c_back[0], dev_c, M*P * sizeof(float));

q.wait();

sycl::free(dev_a, q); // For the purposes of this demo, since we lost the original pointer value
// and will crash before this point, this free is effectively a no-op and a
// bug in its own right (we should be checking pointers best we can before
// trying to free them).
// All USM allocations should be released after use.
sycl::free(dev_b, q);
sycl::free(dev_c, q);
}

int result;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,10 @@ int main() {
q.memcpy(&c_back[0], dev_c, M*P * sizeof(float));

q.wait();

sycl::free(dev_a, q);
sycl::free(dev_b, q);
sycl::free(dev_c, q);
}

int result;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required (VERSION 3.4)
cmake_minimum_required (VERSION 3.5)
set (CMAKE_CXX_COMPILER "icpx")
project (matrix_mul LANGUAGES CXX)

Expand Down
123 changes: 61 additions & 62 deletions Tools/ApplicationDebugger/guided_matrix_mult_Exceptions/README.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,10 @@ int main() {
q.memcpy(&c_back[0], dev_c, M*P * sizeof(float));

q.wait();

sycl::free(dev_a, q);
sycl::free(dev_b, q);
sycl::free(dev_c, q);
}

int result;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,10 @@ int main() {
q.memcpy(&c_back[0], dev_c, M*P * sizeof(float));

q.wait();

sycl::free(dev_a, q);
sycl::free(dev_b, q);
sycl::free(dev_c, q);
}

int result;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,10 @@ int main() {
q.memcpy(&c_back[0], dev_c, M*P * sizeof(float));

q.wait();

sycl::free(dev_a, q);
sycl::free(dev_b, q);
sycl::free(dev_c, q);
}

int result;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required (VERSION 3.4)
cmake_minimum_required (VERSION 3.5)
set (CMAKE_CXX_COMPILER "icpx")
project (matrix_mul LANGUAGES CXX)

Expand Down
Loading