Skip to content

[SYCL] Enable libm for spirv64 in SYCL#22042

Draft
jinge90 wants to merge 50 commits into
intel:syclfrom
jinge90:enable_libc_spirv64
Draft

[SYCL] Enable libm for spirv64 in SYCL#22042
jinge90 wants to merge 50 commits into
intel:syclfrom
jinge90:enable_libc_spirv64

Conversation

@jinge90
Copy link
Copy Markdown
Contributor

@jinge90 jinge90 commented May 18, 2026

Experimental PR to enable LLVM libc math implementation in sycl toolchain to replace libdevice, try best to follow LLVM libc style to rely on '_builtin*' functions for some simple math functions and build generic implemation for SPIRV64 target for others, still in progress.

Signed-off-by: jinge90 <ge.jin@intel.com>
jinge90 added 9 commits May 14, 2026 10:20
Signed-off-by: jinge90 <ge.jin@intel.com>
Signed-off-by: jinge90 <ge.jin@intel.com>
Signed-off-by: jinge90 <ge.jin@intel.com>
Signed-off-by: jinge90 <ge.jin@intel.com>
Signed-off-by: jinge90 <ge.jin@intel.com>
Signed-off-by: jinge90 <ge.jin@intel.com>
Signed-off-by: jinge90 <ge.jin@intel.com>
Signed-off-by: jinge90 <ge.jin@intel.com>
@jinge90 jinge90 requested review from a team and bader as code owners May 18, 2026 08:41
@jinge90 jinge90 requested a review from cperkinsintel May 18, 2026 08:41
@jinge90 jinge90 marked this pull request as draft May 18, 2026 08:41
jinge90 added 2 commits May 18, 2026 16:54
Signed-off-by: jinge90 <ge.jin@intel.com>
Signed-off-by: jinge90 <ge.jin@intel.com>
@jinge90
Copy link
Copy Markdown
Contributor Author

jinge90 commented May 18, 2026

Hi, @intel/dpcpp-devops-reviewers
I am working on enabling LLVM libc/libm for SYCL and LLVM libc/libm building depends on 'yaml'. It seems that this module is available on Linux machine in pre-ci environment but missing on Windows machine in pre-ci environment. I got following error in 'Windows self build':
Traceback (most recent call last):
File "D:\github_work\llvm\llvm\src\libc\utils\hdrgen\main.py", line 11, in
from hdrgen.main import main
File "D:\github_work\llvm\llvm\src\libc\utils\hdrgen\hdrgen\main.py", line 17, in

from hdrgen.yaml_to_classes import load_yaml_file, fill_public_api

File "D:\github_work\llvm\llvm\src\libc\utils\hdrgen\hdrgen\yaml_to_classes.py", line 11, in

import yaml

ModuleNotFoundError: No module named 'yaml'

Is it possible to install 'ymal' on Windows machine in pre-ci environment?
Thanks very much.

@sarnex
Copy link
Copy Markdown
Contributor

sarnex commented May 18, 2026

I will try to get to it this week, I'll let you know here when I have updates, thanks.

jinge90 added 9 commits May 19, 2026 14:17
Signed-off-by: jinge90 <ge.jin@intel.com>
Signed-off-by: jinge90 <ge.jin@intel.com>
Signed-off-by: jinge90 <ge.jin@intel.com>
Signed-off-by: jinge90 <ge.jin@intel.com>
Signed-off-by: jinge90 <ge.jin@intel.com>
Signed-off-by: jinge90 <ge.jin@intel.com>
Signed-off-by: jinge90 <ge.jin@intel.com>
Signed-off-by: jinge90 <ge.jin@intel.com>
Signed-off-by: jinge90 <ge.jin@intel.com>
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.

2 participants