This repository was archived by the owner on Mar 28, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +28
-4
lines changed Expand file tree Collapse file tree 4 files changed +28
-4
lines changed Original file line number Diff line number Diff line change 4
4
// RUN: %clangxx -DSYCL_ENABLE_FALLBACK_ASSERT -fsycl -fsycl-targets=%sycl_triple %s -o %t.out %threads_lib
5
5
// RUN: %CPU_RUN_PLACEHOLDER %t.out &> %t.txt || true
6
6
// RUN: %CPU_RUN_PLACEHOLDER FileCheck %s --input-file %t.txt
7
- // RUN: %GPU_RUN_PLACEHOLDER %t.out &> %t.txt || true
7
+ //
8
+ // Since this is a multi-threaded application enable memory tracking and
9
+ // deferred release feature in the Level Zero plugin to avoid releasing memory
10
+ // too early. This is necessary because currently SYCL RT sets indirect access
11
+ // flag for all kernels and the Level Zero runtime doesn't support deferred
12
+ // release yet.
13
+ // RUN: env SYCL_PI_LEVEL_ZERO_TRACK_INDIRECT_ACCESS_MEMORY=1 %GPU_RUN_PLACEHOLDER %t.out &> %t.txt || true
8
14
// RUN: %GPU_RUN_PLACEHOLDER FileCheck %s --input-file %t.txt
9
15
// RUN: %ACC_RUN_PLACEHOLDER %t.out &> %t.txt || true
10
16
// RUN: %ACC_RUN_PLACEHOLDER FileCheck %s --input-file %t.txt
Original file line number Diff line number Diff line change 2
2
// RUN: %clangxx -DSYCL_ENABLE_FALLBACK_ASSERT -fsycl -fsycl-targets=%sycl_triple %s -o %t.out %threads_lib
3
3
// RUN: %CPU_RUN_PLACEHOLDER %t.out &> %t.txt || true
4
4
// RUN: %CPU_RUN_PLACEHOLDER FileCheck %s --input-file %t.txt
5
- // RUN: %GPU_RUN_PLACEHOLDER %t.out &> %t.txt || true
5
+ //
6
+ // Since this is a multi-threaded application enable memory tracking and
7
+ // deferred release feature in the Level Zero plugin to avoid releasing memory
8
+ // too early. This is necessary because currently SYCL RT sets indirect access
9
+ // flag for all kernels and the Level Zero runtime doesn't support deferred
10
+ // release yet.
11
+ // RUN: env SYCL_PI_LEVEL_ZERO_TRACK_INDIRECT_ACCESS_MEMORY=1 %GPU_RUN_PLACEHOLDER %t.out &> %t.txt || true
6
12
// RUN: %GPU_RUN_PLACEHOLDER FileCheck %s --input-file %t.txt
7
13
// RUN: %ACC_RUN_PLACEHOLDER %t.out &> %t.txt || true
8
14
// RUN: %ACC_RUN_PLACEHOLDER FileCheck %s --input-file %t.txt
Original file line number Diff line number Diff line change 3
3
// RUN: %clangxx -DSYCL_ENABLE_FALLBACK_ASSERT -fsycl -fsycl-targets=%sycl_triple -I %S/Inputs %s %S/Inputs/kernels_in_file2.cpp -o %t.out %threads_lib
4
4
// RUN: %CPU_RUN_PLACEHOLDER %t.out &> %t.txt || true
5
5
// RUN: %CPU_RUN_PLACEHOLDER FileCheck %s --input-file %t.txt
6
- // RUN: %GPU_RUN_PLACEHOLDER %t.out &> %t.txt || true
6
+ //
7
+ // Since this is a multi-threaded application enable memory tracking and
8
+ // deferred release feature in the Level Zero plugin to avoid releasing memory
9
+ // too early. This is necessary because currently SYCL RT sets indirect access
10
+ // flag for all kernels and the Level Zero runtime doesn't support deferred
11
+ // release yet.
12
+ // RUN: env SYCL_PI_LEVEL_ZERO_TRACK_INDIRECT_ACCESS_MEMORY=1 %GPU_RUN_PLACEHOLDER %t.out &> %t.txt || true
7
13
// RUN: %GPU_RUN_PLACEHOLDER FileCheck %s --input-file %t.txt
8
14
// RUN: %ACC_RUN_PLACEHOLDER %t.out &> %t.txt || true
9
15
// RUN: %ACC_RUN_PLACEHOLDER FileCheck %s --input-file %t.txt
Original file line number Diff line number Diff line change 3
3
// RUN: %clangxx -DSYCL_ENABLE_FALLBACK_ASSERT -fsycl -fsycl-targets=%sycl_triple -DDEFINE_NDEBUG_INFILE2 -I %S/Inputs %S/assert_in_simultaneously_multiple_tus.cpp %S/Inputs/kernels_in_file2.cpp -o %t.out %threads_lib
4
4
// RUN: %CPU_RUN_PLACEHOLDER %t.out &> %t.txt || true
5
5
// RUN: %CPU_RUN_PLACEHOLDER FileCheck %s --input-file %t.txt
6
- // RUN: %GPU_RUN_PLACEHOLDER %t.out &> %t.txt || true
6
+ //
7
+ // Since this is a multi-threaded application enable memory tracking and
8
+ // deferred release feature in the Level Zero plugin to avoid releasing memory
9
+ // too early. This is necessary because currently SYCL RT sets indirect access
10
+ // flag for all kernels and the Level Zero runtime doesn't support deferred
11
+ // release yet.
12
+ // RUN: env SYCL_PI_LEVEL_ZERO_TRACK_INDIRECT_ACCESS_MEMORY=1 %GPU_RUN_PLACEHOLDER %t.out &> %t.txt || true
7
13
// RUN: %GPU_RUN_PLACEHOLDER FileCheck %s --input-file %t.txt
8
14
// RUN: %ACC_RUN_PLACEHOLDER %t.out &> %t.txt || true
9
15
// RUN: %ACC_RUN_PLACEHOLDER FileCheck %s --input-file %t.txt
You can’t perform that action at this time.
0 commit comments