Skip to content
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

[SYCL] Use incude/sycl/CL as the target to check copied headers #5050

Merged
merged 1 commit into from Nov 30, 2021
Merged

[SYCL] Use incude/sycl/CL as the target to check copied headers #5050

merged 1 commit into from Nov 30, 2021

Conversation

ghost
Copy link

@ghost ghost commented Nov 30, 2021

When the sycl-headers target calls the copy_directory command, the
command sees that the ${OUT_HEADERS_IN_CL_DIR} output already exists
and the files are already there. Before the patch, the command
looked for the include/CL directory, not include/sycl/CL one, there was
no such directory and the headers were copied again and again.

Now when we ask CMake to build the sycl-headers target twice, the
'Copying SYCL headers ...' message is displayed only after the first
time.

Co-authored-by: tcreech-intel timothy.m.creech@intel.com

When the sycl-headers target calls the copy_directory command, the
command sees that the ${OUT_HEADERS_IN_CL_DIR} output already exists
and the files are already there. Before the patch, the command
looked for the include/CL directory, not include/sycl/CL one, there was
no such directory and the headers were copied again and again.

Now when we ask CMake to build the sycl-headers target twice, the
'Copying SYCL headers ...' message is displayed only after the first
time.

Co-authored-by: tcreech-intel <timothy.m.creech@intel.com>
@ghost ghost self-requested a review as a code owner November 30, 2021 10:11
@bader bader merged commit 7700edb into intel:sycl Nov 30, 2021
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.

4 participants