Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
e6cb663
[SYCL] Rename clang binaries to dpclang
dm-vodopyanov Mar 23, 2026
d8939da
Revert "[SYCL] Rename clang binaries to dpclang"
dm-vodopyanov May 29, 2026
0e2ecdb
Merge remote-tracking branch 'origin/sycl' into rename_clang_to_dpclang
dm-vodopyanov May 29, 2026
6b896ba
Apply CR comments
dm-vodopyanov May 29, 2026
a678dba
Move sycl-ls back to install/bin folder
dm-vodopyanov May 29, 2026
814058d
Make it only for Linux`
dm-vodopyanov May 29, 2026
e0be600
Fix regressions + add a test
dm-vodopyanov May 29, 2026
4d91d11
Small fix
dm-vodopyanov May 29, 2026
56207c8
Fix formatting
dm-vodopyanov May 29, 2026
8110571
Fix formatting
dm-vodopyanov May 29, 2026
1b19d13
Update CI
dm-vodopyanov Jun 3, 2026
1139beb
Try to fix CI for Linux
dm-vodopyanov Jun 15, 2026
fc08eb4
Fix CI on Linux
dm-vodopyanov Jun 15, 2026
417df3d
Fix CI
dm-vodopyanov Jun 15, 2026
8b44d37
Fix merge conflict`
dm-vodopyanov Jun 15, 2026
e7ab6ae
Merge branch 'sycl' into rename_clang_to_dpclang
dm-vodopyanov Jun 15, 2026
44c1954
Try to fix CI
dm-vodopyanov Jun 16, 2026
9887a91
Try to fix CI
dm-vodopyanov Jun 16, 2026
079ce50
Fix CI
dm-vodopyanov Jun 17, 2026
984b2e4
Fix CI
dm-vodopyanov Jun 17, 2026
42408f3
Update CI config
dm-vodopyanov Jun 18, 2026
0623bae
Try to fix failures on Windows
dm-vodopyanov Jun 18, 2026
a832242
Fix clang-format
dm-vodopyanov Jun 22, 2026
fea0eaf
Some improvements
dm-vodopyanov Jun 22, 2026
eeb5025
Fix Windows
dm-vodopyanov Jun 22, 2026
8b4c27e
Add missing binary
dm-vodopyanov Jun 22, 2026
8d0835a
Merge branch 'sycl' into rename_clang_to_dpclang
dm-vodopyanov Jun 22, 2026
46b01d7
Merge remote-tracking branch 'origin/sycl' into rename_clang_to_dpclang
Jun 29, 2026
0f44a04
Apply CR comments
dm-vodopyanov Jun 29, 2026
a232458
Merge branch 'rename_clang_to_dpclang' of https://github.com/dm-vodop…
dm-vodopyanov Jun 29, 2026
b0802b7
Fix CI
dm-vodopyanov Jul 1, 2026
3578f68
Fix CI
dm-vodopyanov Jul 1, 2026
9fb8f49
Fix CI
dm-vodopyanov Jul 2, 2026
de25fd1
Fix CI
dm-vodopyanov Jul 2, 2026
348ab49
Merge branch 'intel:sycl' into rename_clang_to_dpclang
dm-vodopyanov Jul 2, 2026
8f13cab
Fix CI
dm-vodopyanov Jul 2, 2026
1f78e64
Merge branch 'rename_clang_to_dpclang' of https://github.com/dm-vodop…
dm-vodopyanov Jul 2, 2026
761cc89
Fix Windows
dm-vodopyanov Jul 6, 2026
b0c0c73
Fix Windows
dm-vodopyanov Jul 6, 2026
42c7929
Fix for SYCL RTC
dm-vodopyanov Jul 6, 2026
d887130
Fix E2E
dm-vodopyanov Jul 6, 2026
75cfdcd
Try to fix CI on Windows
dm-vodopyanov Jul 6, 2026
fa3a81b
Fix CI
dm-vodopyanov Jul 6, 2026
02c10da
Fix E2E test
dm-vodopyanov Jul 6, 2026
3c066a5
Fix some paths
dm-vodopyanov Jul 6, 2026
bae507e
Apply CR comment
dm-vodopyanov Jul 7, 2026
7291c6b
Apply CR comment
dm-vodopyanov Jul 7, 2026
4efea35
Revert changing location of devicelib files
dm-vodopyanov Jul 7, 2026
b7171a2
Apply CR comments
dm-vodopyanov Jul 7, 2026
05e80f6
Apply CR comments
dm-vodopyanov Jul 7, 2026
7f5938b
Apply CR comments
dm-vodopyanov Jul 10, 2026
26b9b59
Fix clang-format
dm-vodopyanov Jul 10, 2026
d0d0167
Fix for Windows
dm-vodopyanov Jul 10, 2026
8da7edf
Fix for Windows in-tree tests
dm-vodopyanov Jul 10, 2026
45c68d1
Fix clang-format
dm-vodopyanov Jul 10, 2026
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
8 changes: 4 additions & 4 deletions .github/workflows/sycl-blender-build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,15 @@ jobs:
uses: ./devops/actions/blender/oidn
with:
cmake_install_prefix: ${{ env.OIDN_INSTALL_DIR }}
c_compiler: ${{ env.SYCL_INSTALL_DIR }}/bin/clang${{ runner.os == 'Windows' && '.exe' || '' }}
cxx_compiler: ${{ env.SYCL_INSTALL_DIR }}/bin/clang++${{ runner.os == 'Windows' && '.exe' || '' }}
c_compiler: ${{ env.SYCL_INSTALL_DIR }}/bin/dpclang${{ runner.os == 'Windows' && '.exe' || '' }}
cxx_compiler: ${{ env.SYCL_INSTALL_DIR }}/bin/dpclang++${{ runner.os == 'Windows' && '.exe' || '' }}

- name: Build Embree
uses: ./devops/actions/blender/embree
with:
cmake_install_prefix: ${{ env.EMBREE_INSTALL_DIR }}
c_compiler: ${{ env.SYCL_INSTALL_DIR }}/bin/clang${{ runner.os == 'Windows' && '.exe' || '' }}
cxx_compiler: ${{ env.SYCL_INSTALL_DIR }}/bin/clang++${{ runner.os == 'Windows' && '.exe' || '' }}
c_compiler: ${{ env.SYCL_INSTALL_DIR }}/bin/dpclang${{ runner.os == 'Windows' && '.exe' || '' }}
cxx_compiler: ${{ env.SYCL_INSTALL_DIR }}/bin/dpclang++${{ runner.os == 'Windows' && '.exe' || '' }}

- name: Build Blender
uses: ./devops/actions/blender/blender-build
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/sycl-linux-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ jobs:
testing_mode: build-only
target_devices: all
binaries_artifact: ${{ inputs.e2e_binaries_artifact }}
sycl_compiler: $GITHUB_WORKSPACE/toolchain/bin/clang++
sycl_compiler: $GITHUB_WORKSPACE/toolchain/bin/dpclang++
extra_lit_opts: --param sycl_build_targets="spir;nvidia"

- name: Build E2E tests with NewOffloadModel
Expand All @@ -341,7 +341,7 @@ jobs:
testing_mode: build-only
target_devices: all
binaries_artifact: ${{ inputs.e2e_binaries_new_offload_model_artifact }}
sycl_compiler: $GITHUB_WORKSPACE/toolchain/bin/clang++
sycl_compiler: $GITHUB_WORKSPACE/toolchain/bin/dpclang++
extra_lit_opts: --param sycl_build_targets="spir;nvidia" --param enable_new_offload_model=True

- name: Build E2E tests with SPIR-V Backend
Expand All @@ -352,7 +352,7 @@ jobs:
testing_mode: build-only
target_devices: all
binaries_artifact: ${{ inputs.e2e_binaries_spirv_backend_artifact }}
sycl_compiler: $GITHUB_WORKSPACE/toolchain/bin/clang++
sycl_compiler: $GITHUB_WORKSPACE/toolchain/bin/dpclang++
extra_lit_opts: --param spirv-backend=True

- name: Build E2E tests in Preview Mode
Expand All @@ -363,5 +363,5 @@ jobs:
testing_mode: build-only
target_devices: all
binaries_artifact: ${{ inputs.e2e_binaries_preview_artifact }}
sycl_compiler: $GITHUB_WORKSPACE/toolchain/bin/clang++
sycl_compiler: $GITHUB_WORKSPACE/toolchain/bin/dpclang++
extra_lit_opts: --param test-preview-mode=True
2 changes: 1 addition & 1 deletion .github/workflows/sycl-linux-precommit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ jobs:
ref: ${{ github.ref || github.sha }}
testing_mode: full
target_devices: native_cpu:cpu
sycl_compiler: $GITHUB_WORKSPACE/toolchain/bin/clang++
sycl_compiler: $GITHUB_WORKSPACE/toolchain/bin/dpclang++
extra_lit_opts: --param sycl_build_targets="native_cpu"
extra_cmake_args: -DSYCL_TEST_E2E_TARGETS="native_cpu:cpu" -DSYCL_TEST_E2E_STANDALONE=ON

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/sycl-linux-run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -321,9 +321,9 @@ jobs:
tar xf sycl_linux.tar.gz -C toolchain
echo PATH=$PWD/toolchain/bin/:$PATH >> $GITHUB_ENV
echo LD_LIBRARY_PATH=$PWD/toolchain/lib/:$LD_LIBRARY_PATH >> $GITHUB_ENV
- run: which clang++ sycl-ls
- run: sycl-ls --verbose
- run: SYCL_UR_TRACE=1 sycl-ls
- run: which dpclang++ dpsycl-ls
- run: dpsycl-ls --verbose
- run: SYCL_UR_TRACE=1 dpsycl-ls
- name: Print IGC version
run: |
if [ -f /usr/local/lib/igc/IGCTAG.txt ]; then
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sycl-prebuilt-e2e-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ jobs:
echo LD_LIBRARY_PATH=$PWD/toolchain/lib:$LD_LIBRARY_PATH >> $GITHUB_ENV
echo PATH=$PWD/toolchain/bin:$PATH >> $GITHUB_ENV
- run: |
sycl-ls
dpsycl-ls
- name: Run E2E tests
uses: ./devops/actions/run-tests/linux/e2e
timeout-minutes: 20
Expand Down
11 changes: 2 additions & 9 deletions .github/workflows/sycl-pytorch-build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,6 @@ jobs:
tar -xf $TOOLCHAIN_ARTIFACT_FILENAME -C install
rm $TOOLCHAIN_ARTIFACT_FILENAME

- name: Create dpclang Symlinks
shell: bash
run: |
# Symlink to the expected compiler names until we provide them.
ln -sf "$SYCL_INSTALL_DIR/bin/clang" "$SYCL_INSTALL_DIR/bin/dpclang"
ln -sf "$SYCL_INSTALL_DIR/bin/clang++" "$SYCL_INSTALL_DIR/bin/dpclang++"

- name: Checkout PyTorch
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
Expand Down Expand Up @@ -152,8 +145,8 @@ jobs:
# Install PyTorch.
pip3 install ./dist/*.whl

- name: Run sycl-ls
run: sycl-ls --verbose
- name: Run dpsycl-ls
run: dpsycl-ls --verbose

- name: Run PyTorch XPU Sanity Check
shell: bash
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/sycl-windows-run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,9 @@ jobs:
echo "PATH=$env:GITHUB_WORKSPACE\\install\\bin;$env:PATH" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
echo "LIB=$env:GITHUB_WORKSPACE\\install\\lib;$env:LIB" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
- run: |
sycl-ls
dpsycl-ls
- run: |
sycl-ls --verbose
dpsycl-ls --verbose

- name: Run E2E Tests
if: inputs.tests_selector == 'e2e'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/sycl-yarpgen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ jobs:
echo PATH=$PWD/toolchain/bin/:$PATH >> $GITHUB_ENV
echo LD_LIBRARY_PATH=$PWD/toolchain/lib/:$LD_LIBRARY_PATH >> $GITHUB_ENV
- run: which clang++
- run: which dpclang++

- run: sycl-ls
- run: dpsycl-ls

- name: Set up yarpgen
run: |
Expand Down
1 change: 1 addition & 0 deletions clang/tools/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ create_subdirectory_options(CLANG TOOL)

add_clang_subdirectory(diagtool)
add_clang_subdirectory(driver)
add_clang_subdirectory(dpllvm)
if(CLANG_ENABLE_CIR)
add_clang_subdirectory(cir-opt)
add_clang_subdirectory(cir-translate)
Expand Down
48 changes: 48 additions & 0 deletions clang/tools/dpllvm/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
set(LLVM_LINK_COMPONENTS
Support
)

# dpllvm is the entry-point shim for the DPC++ toolchain. It is installed into
# bin/ next to the real tools; the public "dp"-prefixed names are symlinks
# (copies on Windows, which lacks first-class symlinks) to it. At runtime
# dpllvm strips the "dp" prefix from argv[0] and execs the sibling real binary
# (dpclang -> clang, dpclang++ -> clang++, dpsycl-ls -> sycl-ls, ...).
#
# These names must not collide with a system LLVM/Clang on PATH, hence the
# prefix; the real binaries keep their original names because the clang driver
# re-invokes itself by name and expects to find "clang"/"clang++".
add_clang_tool(dpllvm
dpllvm.cpp
)

# The public entry-points. Each is a symlink/copy to dpllvm; the stripped name
# (after removing "dp") must match a real binary installed next to dpllvm.
# dpclang* -> clang, clang++, clang-cl, clang-cpp (this project)
# dpsycl-ls -> sycl-ls (sycl/tools/sycl-ls)
# dpsyclbin-dump -> syclbin-dump (sycl/tools/syclbin-dump)
# dpsycl-prof -> sycl-prof (sycl/tools/sycl-prof, UNIX + XPTI only)
# dpsycl-sanitize -> sycl-sanitize (sycl/tools/sycl-sanitize, UNIX + XPTI)
# dpsycl-trace -> sycl-trace (sycl/tools/sycl-trace, UNIX + XPTI)
#
# add_clang_symlink creates both the build-tree link (POST_BUILD of dpllvm, so
# it lands in the same build bin/ as every real tool) and the install rule
# (component "dpllvm"). The sycl-* entry-points are created here rather than in
# their own tool directories so that all symlink creation lives in one place and
# ships as a single component that deploy-sycl-toolchain pulls in; a symlink
# whose target tool is not built on a given platform simply errors at runtime,
# which is the same behavior as a missing tool.
set(DPCPP_ENTRY_POINTS
dpclang
dpclang++
dpclang-cl
dpclang-cpp
dpsycl-ls
dpsyclbin-dump
dpsycl-prof
dpsycl-sanitize
dpsycl-trace
)

foreach(link ${DPCPP_ENTRY_POINTS})
add_clang_symlink(${link} dpllvm)
endforeach()
80 changes: 80 additions & 0 deletions clang/tools/dpllvm/dpllvm.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
//===-- dpllvm.cpp - DPC++ tool entry-point shim --------------------------===//
//
// 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
//
//===----------------------------------------------------------------------===//
//
// The DPC++ toolchain ships public entry-points whose names are prefixed with
// "dp" (dpclang, dpclang++, dpclang-cl, dpclang-cpp, dpsycl-ls, ...) so they
// don't collide with the identically-named tools of a system LLVM/Clang
// installation that may be on PATH. Those entry-points are symlinks (real
// copies on Windows, which has no first-class symlinks) that resolve to this
// tool.
//
// dpllvm looks at how it was invoked (argv[0]), strips the leading "dp", and
// re-executes the correspondingly-named real binary that lives next to it in
// the same directory -- e.g. invoking "dpclang++" runs "clang++". The real
// binary keeps its original name ("clang++", not "dpclang++") because the
// clang driver re-invokes itself by name (for -cc1, offloading sub-jobs, etc.)
// and must find a binary called "clang"/"clang++".
//
//===----------------------------------------------------------------------===//

#include "llvm/Support/Error.h"
#include "llvm/Support/Path.h"
#include "llvm/Support/Program.h"

int main(int argc, char *argv[]) {
using namespace llvm;
using namespace llvm::sys;

StringRef Executable = argv[0];
StringRef Alias = path::filename(Executable);

ExitOnError Exit((Alias + ": ").str());

// Derive the real tool's base name by dropping any executable extension and
// stripping the "dp" prefix (e.g. "dpclang++" / "dpclang++.exe" ->
// "clang++"). The extension is intentionally not carried over: how it appears
// in argv[0] is inconsistent across platforms (a Windows invocation may or
// may not include ".exe"), so it is left to findProgramByName below to append
// the right suffix when locating the real binary.
StringRef RealName = path::stem(Alias);
if (!RealName.consume_front("dp"))
Exit(createStringError("binary '" + Alias + "' not prefixed by 'dp'."));

// Locate the directory this tool was installed into so we can find the real
// binary sitting next to it, regardless of the current working directory or
// how the tool was found on PATH.
void *MainAddr = reinterpret_cast<void *>(main);
std::string DpllvmPath = fs::getMainExecutable(argv[0], MainAddr);
if (DpllvmPath.empty())
Exit(createStringError(
"couldn't determine the path to the DPC++ bin/ directory."));

StringRef BinaryDir = path::parent_path(DpllvmPath);

// findProgramByName searches the given directory and appends the platform
// executable suffix (".exe" on Windows), so this resolves the sibling real
// binary whether or not the invoking name carried an extension.
ErrorOr<std::string> BinaryPathOrErr =
findProgramByName(RealName, {BinaryDir});
if (!BinaryPathOrErr)
Exit(createStringError("binary '" + RealName + "' not found next to '" +
DpllvmPath + "'."));
StringRef BinaryPath = *BinaryPathOrErr;

SmallVector<StringRef, 128> Args = {BinaryPath};
Args.append(argv + 1, argv + argc);

std::string ErrMsg;
int Result = ExecuteAndWait(BinaryPath, Args, /*Env=*/std::nullopt,
/*Redirects=*/{}, /*SecondsToWait=*/0,
/*MemoryLimit=*/0, &ErrMsg);
if (!ErrMsg.empty())
Exit(
createStringError("failed to execute '" + BinaryPath + "': " + ErrMsg));
return Result;
}
12 changes: 6 additions & 6 deletions devops/actions/run-tests/benchmark/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,9 @@ runs:
else
echo "INFO: SYCL directory '$SYCL_DIR' does not exist or is missing libsycl.so"
echo "Checking if SYCL is installed in the system..."
which sycl-ls
sycl-ls
export CMPLR_ROOT="$(dirname $(dirname $(which sycl-ls)))"
which dpsycl-ls
dpsycl-ls
export CMPLR_ROOT="$(dirname $(dirname $(which dpsycl-ls)))"
echo "CMPLR_ROOT=$CMPLR_ROOT" >> $GITHUB_ENV
fi
echo "Using SYCL from: $CMPLR_ROOT"
Expand Down Expand Up @@ -277,11 +277,11 @@ runs:
pip install --user --break-system-packages -r ./devops/scripts/benchmarks/requirements.txt

echo "::endgroup::"
- name: Run sycl-ls
- name: Run dpsycl-ls
shell: bash
run: |
# Run sycl-ls
sycl-ls --verbose
# Run dpsycl-ls
dpsycl-ls --verbose
- name: Build and run benchmarks
shell: bash
env:
Expand Down
4 changes: 2 additions & 2 deletions devops/actions/run-tests/linux/cts/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ runs:
echo "::endgroup::"
fi

cmake -GNinja -B./build-cts -S./khronos_sycl_cts -DCMAKE_CXX_COMPILER=$(which clang++) \
cmake -GNinja -B./build-cts -S./khronos_sycl_cts -DCMAKE_CXX_COMPILER="$(which dpclang++)" \
-DSYCL_IMPLEMENTATION=DPCPP \
-DSYCL_CTS_EXCLUDE_TEST_CATEGORIES="$cts_exclude_filter" \
-DSYCL_CTS_ENABLE_OPENCL_INTEROP_TESTS=OFF \
-DDPCPP_INSTALL_DIR="$(dirname $(which clang++))/.." \
-DDPCPP_INSTALL_DIR="$(dirname $(which dpclang++))/.." \
-DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
$CMAKE_EXTRA_ARGS
# Ignore errors so that if one category build fails others still have a
Expand Down
2 changes: 1 addition & 1 deletion devops/actions/run-tests/linux/e2e/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ runs:
if: inputs.testing_mode != 'run-only'
shell: bash
run: |
cmake -GNinja -B./build-e2e -S./llvm/sycl/test-e2e -DCMAKE_CXX_COMPILER="${{ inputs.sycl_compiler || '$(which clang++)'}}" -DLLVM_LIT="$PWD/llvm/llvm/utils/lit/lit.py" ${{ steps.cmake_opts.outputs.opts }}
cmake -GNinja -B./build-e2e -S./llvm/sycl/test-e2e -DCMAKE_CXX_COMPILER="${{ inputs.sycl_compiler || '$(which dpclang++)'}}" -DLLVM_LIT="$PWD/llvm/llvm/utils/lit/lit.py" ${{ steps.cmake_opts.outputs.opts }}
Comment thread
dm-vodopyanov marked this conversation as resolved.
Dismissed
Comment thread
dm-vodopyanov marked this conversation as resolved.
Dismissed
- name: SYCL End-to-end tests
id: run_e2e
continue-on-error: true
Expand Down
2 changes: 1 addition & 1 deletion devops/actions/run-tests/windows/cts/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ runs:
-DSYCL_IMPLEMENTATION=DPCPP \
-DSYCL_CTS_EXCLUDE_TEST_CATEGORIES="$cts_exclude_filter" \
-DSYCL_CTS_ENABLE_OPENCL_INTEROP_TESTS=OFF \
-DDPCPP_INSTALL_DIR="$(dirname $(which clang++))/.." \
-DDPCPP_INSTALL_DIR="$(dirname $(which dpclang++))/.." \
-DCMAKE_CXX_COMPILER=cl \
-DCMAKE_BUILD_TYPE=Release \
$CMAKE_EXTRA_ARGS
Expand Down
2 changes: 1 addition & 1 deletion devops/actions/run-tests/windows/e2e/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ runs:
- name: Configure E2E tests
shell: bash
run: |
cmake -GNinja -B build-e2e -S./llvm/sycl/test-e2e -DCMAKE_CXX_COMPILER="${{ inputs.sycl_compiler || '$(which clang++).exe' }}" -DLEVEL_ZERO_LIBS_DIR="D:\\github\\level-zero_win-sdk\\lib" -DLEVEL_ZERO_INCLUDE="D:\\github\\level-zero_win-sdk\\include" -DLLVM_LIT="..\\llvm\\llvm\\utils\\lit\\lit.py" ${{ steps.cmake_opts.outputs.opts }}
cmake -GNinja -B build-e2e -S./llvm/sycl/test-e2e -DCMAKE_CXX_COMPILER="${{ inputs.sycl_compiler || '$(which dpclang++).exe' }}" -DLEVEL_ZERO_LIBS_DIR="D:\\github\\level-zero_win-sdk\\lib" -DLEVEL_ZERO_INCLUDE="D:\\github\\level-zero_win-sdk\\include" -DLLVM_LIT="..\\llvm\\llvm\\utils\\lit\\lit.py" ${{ steps.cmake_opts.outputs.opts }}
Comment thread
dm-vodopyanov marked this conversation as resolved.
Dismissed
Comment thread
dm-vodopyanov marked this conversation as resolved.
Dismissed

- name: Keep track of files after configuring E2E step
if: ${{ !cancelled() && inputs.binaries_artifact != '' && inputs.testing_mode != 'run-only' }}
Expand Down
4 changes: 2 additions & 2 deletions devops/scripts/benchmarks/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ def download(dir, url, file, untar=False, unzip=False, checksum=""):

def get_device_architecture(additional_env_vars):
sycl_ls_output = run(
["sycl-ls", "--verbose"], add_sycl=True, env_vars=additional_env_vars
["dpsycl-ls", "--verbose"], add_sycl=True, env_vars=additional_env_vars
).stdout.decode()

architectures = set()
Expand All @@ -234,7 +234,7 @@ def warn_if_level_zero_is_not_found(additional_env_vars) -> bool:
sycl_ls_found_l0 = False

sycl_ls_output = run(
["sycl-ls"], add_sycl=True, env_vars=additional_env_vars
["dpsycl-ls"], add_sycl=True, env_vars=additional_env_vars
).stdout.decode()

for line in sycl_ls_output.splitlines():
Expand Down
2 changes: 2 additions & 0 deletions sycl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,7 @@ endif()
add_custom_target(sycl-compiler
DEPENDS append-file
clang
dpllvm
clang-offload-wrapper
clang-offload-bundler
clang-offload-deps
Expand Down Expand Up @@ -509,6 +510,7 @@ get_property(SYCL_TOOLCHAIN_DEPS GLOBAL PROPERTY SYCL_TOOLCHAIN_INSTALL_COMPONEN
set( SYCL_TOOLCHAIN_DEPLOY_COMPONENTS
append-file
clang
dpllvm
clang-offload-wrapper
clang-offload-bundler
clang-offload-deps
Expand Down
3 changes: 3 additions & 0 deletions sycl/test/lit.cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@
)

config.substitutions.append(("%python", '"%s"' % (sys.executable)))
config.substitutions.append(
("%dpclangxx", os.path.join(config.install_bin_dir, "dpclang++"))
)

# Propagate extra environment variables
if config.extra_environment:
Expand Down
1 change: 1 addition & 0 deletions sycl/test/lit.site.cfg.py.in
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ config.sycl_clang_extra_flags = "@SYCL_CLANG_EXTRA_FLAGS@"
config.test_include_path = "@TEST_INCLUDE_PATH@"

config.llvm_enable_projects = "@LLVM_ENABLE_PROJECTS@"
config.install_bin_dir = "@LLVM_TOOLS_DIR@"

config.sycl_threads_lib = '@SYCL_THREADS_LIB@'
config.sycl_use_libcxx = 'ON' if @LLVM_LIBCXX_USED@ else 'OFF'
Expand Down
Loading
Loading