Skip to content

Commit de8f6ca

Browse files
committed
enable aot for lnl
1 parent 8d58bd6 commit de8f6ca

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

cmake/BuildFlags.cmake

+2-4
Original file line numberDiff line numberDiff line change
@@ -122,12 +122,10 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID STREQUAL "MSVC"
122122
set(SYCL_OFFLINE_COMPILER_CG_OPTIONS "${SYCL_OFFLINE_COMPILER_CG_OPTIONS} -cl-fp32-correctly-rounded-divide-sqrt")
123123
set(SYCL_OFFLINE_COMPILER_CG_OPTIONS "-options '${SYCL_OFFLINE_COMPILER_CG_OPTIONS}'")
124124

125-
# LNL and BMG share the same compatibility name, which is BMG. BMG is defined as the base platform.
126-
# Code for base platform can execute on all platforms with same compatible name.
127125
if(WIN32)
128-
set(AOT_TARGETS "bmg,dg2,arl-h,mtl-h")
126+
set(AOT_TARGETS "mtl,mtl-h,bmg,dg2,arl-h,lnl-m")
129127
else()
130-
set(AOT_TARGETS "pvc,bmg,dg2,arl-h,mtl-h")
128+
set(AOT_TARGETS "pvc,bmg,dg2,arl-h,mtl-h,lnl-m")
131129
endif()
132130
if(DEFINED ENV{TORCH_XPU_ARCH_LIST})
133131
set(AOT_TARGETS "$ENV{TORCH_XPU_ARCH_LIST}")

0 commit comments

Comments
 (0)