-
Notifications
You must be signed in to change notification settings - Fork 130
[SYCL][libdevice] Test libdevice jit-link mode. #1055
Conversation
Signed-off-by: jinge90 <[email protected]>
Signed-off-by: jinge90 <[email protected]>
Signed-off-by: jinge90 <[email protected]>
Hi, @againull 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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
- convert it to a library function call
- 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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, @againull
Ping~
There was a problem hiding this comment.
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!
Signed-off-by: jinge90 <[email protected]>
…e#1055) Signed-off-by: jinge90 <[email protected]>
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.