-
Notifications
You must be signed in to change notification settings - Fork 730
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SYCL][ESIMD] Use LLVM IR for USM/SLM scatter (#12628)
- Loading branch information
Showing
8 changed files
with
137 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
sycl/test-e2e/ESIMD/unified_memory_api/scatter_usm_legacy.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
//==------- scatter_usm_legacy.cpp - DPC++ ESIMD on-device test -----------==// | ||
// | ||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | ||
// See https://llvm.org/LICENSE.txt for license information. | ||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
// | ||
//===----------------------------------------------------------------------===// | ||
// Use per-kernel compilation to have more information about failing cases. | ||
// RUN: %{build} -fsycl-device-code-split=per_kernel -o %t.out | ||
// RUN: %{run} %t.out | ||
|
||
// The test verifies esimd::scatter() functions accepting USM pointer | ||
// and optional compile-time esimd::properties. | ||
// The scatter() calls in this test do not use cache-hint properties | ||
// or VS > 1 (number of stores per offset) to not impose using PVC features. | ||
// | ||
// TODO: Remove this test when GPU driver issue with llvm.masked.scatter is | ||
// resolved and ESIMD starts using llvm.masked.scatter by default. | ||
// "-D__ESIMD_GATHER_SCATTER_LLVM_IR" is not used here. | ||
|
||
#include "scatter_usm.cpp" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
sycl/test-e2e/ESIMD/unified_memory_api/slm_scatter_legacy.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
//==------- slm_scatter_legacy.cpp - DPC++ ESIMD on-device test -----------==// | ||
// | ||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | ||
// See https://llvm.org/LICENSE.txt for license information. | ||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
// | ||
//===----------------------------------------------------------------------===// | ||
// Use per-kernel compilation to have more information about failing cases. | ||
// RUN: %{build} -fsycl-device-code-split=per_kernel -o %t.out | ||
// RUN: %{run} %t.out | ||
|
||
// The test verifies esimd::slm_scatter() functions accepting optional | ||
// compile-time esimd::properties. The slm_scatter() calls in this test do not | ||
// use VS > 1 (number of stores per offset) to not impose using PVC features. | ||
// | ||
// TODO: Remove this test when GPU driver issue with llvm.masked.scatter is | ||
// resolved and ESIMD starts using llvm.masked.scatter by default. | ||
// "-D__ESIMD_GATHER_SCATTER_LLVM_IR" is not used here. | ||
|
||
#include "slm_scatter.cpp" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters