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

Enable AOT for LNL #1448

Merged
merged 1 commit into from
Mar 10, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions cmake/BuildFlags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,10 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID STREQUAL "MSVC"
set(SYCL_OFFLINE_COMPILER_CG_OPTIONS "${SYCL_OFFLINE_COMPILER_CG_OPTIONS} -cl-fp32-correctly-rounded-divide-sqrt")
set(SYCL_OFFLINE_COMPILER_CG_OPTIONS "-options '${SYCL_OFFLINE_COMPILER_CG_OPTIONS}'")

# LNL and BMG share the same compatibility name, which is BMG. BMG is defined as the base platform.
# Code for base platform can execute on all platforms with same compatible name.
if(WIN32)
set(AOT_TARGETS "bmg,dg2,arl-h,mtl-h")
set(AOT_TARGETS "mtl,mtl-h,bmg,dg2,arl-h,lnl-m")
else()
set(AOT_TARGETS "pvc,bmg,dg2,arl-h,mtl-h")
set(AOT_TARGETS "pvc,bmg,dg2,arl-h,mtl-h,lnl-m")
endif()
if(DEFINED ENV{TORCH_XPU_ARCH_LIST})
set(AOT_TARGETS "$ENV{TORCH_XPU_ARCH_LIST}")
Expand Down
Loading