Skip to content

Commit

Permalink
[MTL-P][Windows] Fix MTL-P Image Size 2.1.40 (#4407)
Browse files Browse the repository at this point in the history
* Fix MTL-P Image Size 2.1.40

* add TODO to remove
  • Loading branch information
ratnampa authored Jul 10, 2024
1 parent a56504d commit d7ebba7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cmake/gpu/SYCL.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,13 @@ if(USE_AOT_DEVLIST)
set(IPEX_OFFLINE_OPTIONS "-device ${USE_AOT_DEVLIST} ${IPEX_OFFLINE_OPTIONS}")
endif()

#TODO: Remove once fixed in OCLOC
if(USE_AOT_DEVLIST AND WINDOWS)
if(${USE_AOT_DEVLIST} STREQUAL "mtl-p")
set(IPEX_OFFLINE_OPTIONS "-exclude_ir ${IPEX_OFFLINE_OPTIONS}")
endif()
endif()

# WARNING: No more offline options after this line
if(NOT WINDOWS)
set(IPEX_OFFLINE_OPTIONS -Xs ${IPEX_OFFLINE_OPTIONS})
Expand Down

0 comments on commit d7ebba7

Please sign in to comment.