Skip to content

[SYCL] Detect changes in sycl headers #4723

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 2 commits into from
Oct 7, 2021
Merged

Conversation

vladimirlaz
Copy link
Contributor

This is follow up for #4710

When a sub-directory of the DEPENDS directories is modified the change is not
detected by CMake. The change adds a full list of files in the sub-directory to
DEPENDS to detect the change. file(GLOBE_RECURSE) is used with
CONFIGURE_DEPENDS option to rerun configure step if a new entry is added to
the directory structure.
Restore version.hpp in source directory as it is used to build SYCL
library.

Removing a header file is the only case when change is not propagated to
the build and install directory. This problem existed before the change and
TODO was left to fix it in the future.

When subdirectory of the DEPENDS directories are modified the change is not
detected by CMake. The change set full list of files in subdirectory to
DEPENDS to detect the change. file(GLOBE_RECURSE) is used with
CONFIGURE_DEPENDS option to rerun configure if new entry is added to
directory structure.
Restore version.hpp in source directory as it is used to build SYCL
library.

Removing header file is the only case when change is not propagated to
build and install directory. This problem existed before the change and
TODO was left to fix it in future.
alexbatashev
alexbatashev previously approved these changes Oct 7, 2021
The use of build directory as source for install causing duplication of
level_zero headers.
@vladimirlaz
Copy link
Contributor Author

The failure is unrelated to the change and is under investigation.

@vladimirlaz vladimirlaz merged commit 8d979f0 into intel:sycl Oct 7, 2021
@vladimirlaz vladimirlaz deleted the sycl branch October 8, 2021 06:18
@oleksandr-pavlyk
Copy link
Contributor

Because CL/sycl/version.hpp was added to .gitignore it is now absent from the nightly sycl bundle, causing dpctl build with nightly bundle to fail. https://github.com/IntelPython/dpctl/runs/3846688175

@vladimirlaz
Copy link
Contributor Author

Because CL/sycl/version.hpp was added to .gitignore it is now absent from the nightly sycl bundle, causing dpctl build with nightly bundle to fail. https://github.com/IntelPython/dpctl/runs/3846688175

The latest release https://github.com/intel/llvm/releases/tag/sycl-nightly%2F20211008 contains version.hpp.

vlazare@nnvocl150:/localdisk2/vladimirlaz_llvm/build/gggg$ tar ztvf dpcpp-compiler.tar.gz | grep "/version.hpp"
-rw-r--r-- root/root       596 2021-10-08 20:47 dpcpp_compiler/include/sycl/CL/sycl/version.hpp.in
-rw-r--r-- root/root       513 2021-10-08 20:47 dpcpp_compiler/include/sycl/CL/sycl/version.hpp
vlazare@nnvocl150:/localdisk2/vladimirlaz_llvm/build/gggg$

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants