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

[SYCL][libdevice] Test libdevice jit-link mode. #1055

Merged
merged 3 commits into from
Jun 16, 2022

Conversation

jinge90
Copy link

@jinge90 jinge90 commented Jun 13, 2022

Signed-off-by: jinge90 [email protected]

We added option f[no-]sycl-device-lib-jit-link to control SYCL device library link mode. Currently, jit-link is disabled by default and we explicitly test this option in this PR.

@jinge90 jinge90 requested a review from a team as a code owner June 13, 2022 05:54
@jinge90 jinge90 requested a review from againull June 13, 2022 05:54
@jinge90
Copy link
Author

jinge90 commented Jun 14, 2022

Hi, @againull
Could you help review this patch?

Thanks very much.

@@ -3,6 +3,11 @@
// RUN: %CPU_RUN_PLACEHOLDER %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out

// RUN: %clangxx -fsycl -fno-builtin -fsycl-device-lib-jit-link %s -o %t.out

Choose a reason for hiding this comment

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

Could you please clarify why some of the tests have -fno-builtin flag and some of them don't? Is this a workaround for something?

Copy link
Author

Choose a reason for hiding this comment

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

Hi, @againull
To some math functions, clang may have different ways to handle.

  1. convert it to a library function call
  2. instruction expand, use several IR instructions to replace
    The tests aim to test implementations in SYCL device library, we need to guarantee all functions to test are converted to corresponding library function call, so adding "-fno-builtin" to force to achieve it.

Thanks very much.

Copy link
Author

Choose a reason for hiding this comment

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

Hi, @againull
Ping~

Choose a reason for hiding this comment

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

Thank you for the explanation!

@againull againull self-requested a review June 16, 2022 15:27
@againull againull merged commit edd4388 into intel:intel Jun 16, 2022
myler pushed a commit to myler/llvm-test-suite that referenced this pull request Mar 22, 2023
aelovikov-intel pushed a commit to aelovikov-intel/llvm that referenced this pull request Mar 27, 2023
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