Repository navigation
[MAINT] Run C-API tests in the OS compiler workflows - #2435
Open
ndgrigorian wants to merge 12 commits into
Open
ndgrigorian wants to merge 12 commits into
ndgrigorian wants to merge 12 commits into
Conversation
ndgrigorian
requested review from
antonwolfy and
vlad-perevezentsev
as code owners
December 2, 2026 07:04
|
View rendered docs @ https://intelpython.github.io/dpctl/pulls/2435/index.html |
Collaborator
intel/llvm#23807 stopped installing the OpenCL ICD loader with the SYCL toolchain, so nightly builds from 2026-11-12 on have no lib/OpenCL.lib on Windows and the module failed to find the compiler. dpctl loads the loader at run time, and only the C-API tests link it, so the module now sets IntelSyclCompiler_OPENCL_LIBRARY only if the toolchain has it, and dpctl_c_api_tests links it when set.
open source DPC++ reports its clang version, which __VERSION__ does not contain
test discovery runs the executable after the link
install GTest from apt on Linux and build it from source on Windows
ndgrigorian
force-pushed
the
ci/capi-tests-os-compiler
branch
from
December 2, 2026 08:04
c5b40e4 to
4665235
Compare
antonwolfy
previously approved these changes
Dec 2, 2026
antonwolfy
left a comment
Collaborator
There was a problem hiding this comment.
LGTM, thank you! The two inline comments are optional nits.
The failing build_linux/build_windows jobs in one of the "Conda package" runs are unrelated: conda raises InvalidSpec while parsing a package spec, and the "Conda package" run on master fails the same way (e.g. after #2433).
Fail if _skbuild has more or less than one build directory, and pass it to the C-API test step through BUILD_DIR
Nothing in the tests calls OpenCL directly, and libDPCTLSyclInterface loads the loader at run time, so drop the lookup of IntelSyclCompiler_OPENCL_LIBRARY.
The tests make no dlopen calls.
vlad-perevezentsev
left a comment
Collaborator
There was a problem hiding this comment.
The test binary no longer links libOpenCL. dpctl's tests pass on GPU and CPU. A few small comments below:
Also remove the copy that earlier runs left in the cached bundle, so CI builds without a bundled loader
A failed C-API test build no longer skips dpctl/tests
This branch has not been deployed
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR proposes building and running the
libsyclinterfaceC-API tests in both workflows using the OS compiler. So far they have only run in the coverage workflow.This PR also fixes the Windows workflow, which has been failing since the OS compiler stopped installing the OpenCL ICD loader with the toolchain with:
FindIntelSyclCompilerno longer looks for the loader, whichdpctlloads at run time, and the C-API tests no longer link it, as they make no OpenCL calls. They no longer linklibdleither, as they make nodlopencalls. The Linux workflow was not affected, as it copieslibOpenCL.sofrom the CPU runtime into the nightlyTo make the tests work with the open source compiler,
ChkDPCPPVersionalso accepts the version from__clang_version__, asIntelSyclCompiler_VERSIONis the clang version, which__VERSION__of the nightly does not contain. On Windows,DPCTLSyclInterface.dllis copied next to the test executable, as test discovery runs it right after linkingGTest is installed from apt on Linux, and built from source on Windows with the shared CRT to match
-fsycl