From 88ffbdfe96882a324fb02377b73b9561229e0c93 Mon Sep 17 00:00:00 2001 From: tvukovic-amd Date: Wed, 15 Oct 2025 12:31:34 +0200 Subject: [PATCH] Enable AOTriton compile on Windows --- cmake/External/aotriton.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmake/External/aotriton.cmake b/cmake/External/aotriton.cmake index f09f77bedb80..b19f25609cad 100644 --- a/cmake/External/aotriton.cmake +++ b/cmake/External/aotriton.cmake @@ -244,7 +244,8 @@ if(NOT __AOTRITON_INCLUDED) else() set(__AOTRITON_SYSTEM_ROCM "${HIP_VERSION_MAJOR}.${HIP_VERSION_MINOR}") list(FIND __AOTRITON_ROCM_LIST "rocm${__AOTRITON_SYSTEM_ROCM}" __AOTRITON_RUNTIME_INDEX) - if(${__AOTRITON_RUNTIME_INDEX} LESS 0) + # Always build aotriton runtime from source on Windows due to lack of pre-built binaries + if(${__AOTRITON_RUNTIME_INDEX} LESS 0 OR WIN32) message(STATUS "Cannot find AOTriton runtime for ROCM ${__AOTRITON_SYSTEM_ROCM}. \ Build runtime from source") aotriton_build_from_source(ON aotriton_runtime)