--- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1104,7 +1104,7 @@ if(NOT MSVC) else() # Define export functions for AOTI. add_compile_definitions(EXPORT_AOTI_FUNCTIONS) - + add_compile_definitions(_USE_MATH_DEFINES) # skip unwanted includes from windows.h add_compile_definitions(WIN32_LEAN_AND_MEAN) # Windows SDK broke compatibility since version 25131, but introduced this --- a/aten/src/ATen/native/vulkan/api/Allocator.h +++ b/aten/src/ATen/native/vulkan/api/Allocator.h @@ -50,7 +50,11 @@ #pragma clang diagnostic ignored "-Winconsistent-missing-destructor-override" #endif /* __clang__ */ -#include +#if __has_include() +#include +#else +#include +#endif #ifdef __clang__ #pragma clang diagnostic pop --- a/aten/src/ATen/native/vulkan/api/QueryPool.cpp +++ b/aten/src/ATen/native/vulkan/api/QueryPool.cpp @@ -9,6 +9,7 @@ #include #include #include +#include namespace at { namespace native {