Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

[SYCL] Fix kernel-bundle-merge-options-env.cpp #1445

Merged

Conversation

romanovvlad
Copy link

@romanovvlad romanovvlad commented Dec 12, 2022

Calling link API is not supported for ESIMD kernels. Use simple kernel instead, as it is not important for the purpose of the test.

@romanovvlad romanovvlad changed the title update [SYCL] Fix kernel-bundle-merge-options-env.cpp Dec 13, 2022
@romanovvlad romanovvlad marked this pull request as ready for review December 13, 2022 10:23
@romanovvlad romanovvlad requested a review from a team as a code owner December 13, 2022 10:23
#include "kernel-bundle-merge-options.hpp"

// CHECK: piProgramBuild
// CHECK-NEXT: <unknown>
// CHECK-NEXT: <unknown>
// CHECK-NEXT: <unknown>
// CHECK-NEXT: <const char *>:{{.*}}-DENV_COMPILE_OPTS{{.*}}-vc-codegen
// CHECK: <const char *>:{{[^bar]*}}-DENV_COMPILE_OPTS{{[^bar]*}}-DENV_LINK_OPTS{{[^bar]*}}
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have not found a better way to check that the string contains one word and doesn't contain another.

Copy link

@v-klochkov v-klochkov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am Ok with the fix.

Generally speaking adding -vc-codegen in our headers does not seem necessary because the same kernel type auto-detection mechanism should work (same as the one used in 'ocloc', which automatically detects the kernel type).

Right now though it is not a good moment experimenting with removal of insertion of 'vc-codegen' because there was a bug in GPU RT, which was fixed about 3 weeks ago and it will take some time before that newer GPU reaches CI.

@romanovvlad
Copy link
Author

The failures are unrelated. The same failures are here #1455

@romanovvlad romanovvlad merged commit 5367d96 into intel:intel Dec 15, 2022
myler pushed a commit to myler/llvm-test-suite that referenced this pull request Mar 22, 2023
Calling link API is not supported for ESIMD kernels. Use simple kernel
instead, as it is not important for the purpose of the test.
aelovikov-intel pushed a commit to aelovikov-intel/llvm that referenced this pull request Mar 27, 2023
…#1445)

Calling link API is not supported for ESIMD kernels. Use simple kernel
instead, as it is not important for the purpose of the test.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants