Skip to content

[SYCL][E2E] Remove use of distutils package #12943

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 9, 2024
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
7 changes: 3 additions & 4 deletions sycl/test-e2e/lit.cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@
import copy
import re
import subprocess
import tempfile
import textwrap
from distutils.spawn import find_executable
import shutil

import lit.formats
import lit.util
Expand Down Expand Up @@ -558,15 +557,15 @@
else:
lit_config.warning("Can't find " + tool.key)

if find_executable("cmc"):
if shutil.which("cmc") is not None:
config.available_features.add("cm-compiler")

# Device AOT compilation tools aren't part of the SYCL project,
# so they need to be pre-installed on the machine
aot_tools = ["ocloc", "opencl-aot"]

for aot_tool in aot_tools:
if find_executable(aot_tool) is not None:
if shutil.which(aot_tool) is not None:
lit_config.note("Found pre-installed AOT device compiler " + aot_tool)
config.available_features.add(aot_tool)
else:
Expand Down
1 change: 0 additions & 1 deletion sycl/test/lit.cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import re
import subprocess
import tempfile
from distutils.spawn import find_executable

import lit.formats
import lit.util
Expand Down