mirror of
https://github.com/mw00/project-maya.git
synced 2026-12-03 21:08:26 +07:00
[GH-ISSUE #544] HIP build on Windows fails with VS 2026 Build Tools (MSVC STL 14.51) #220
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
mw00/project-maya#220
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @wonder-sound on GitHub (Oct 27, 2026).
Original GitHub issue: https://github.com/mw00/project-maya/issues/544
HIP build on Windows fails with VS 2026 Build Tools (MSVC STL 14.51): "device function 'isgreater' cannot overload host device function"
Summary
START-MAYA.bat --backend hip --gpu 0 --setupon a Ryzen AI Max+ 395 / Radeon 8060S (gfx1151) machine fails CMake's HIP compiler test when the only Visual Studio is VS 2026 Build Tools (MSVC toolset 14.51.36231). ROCm 7.2's HIP math headers declareisgreater,isless,isunorderedetc. as__device__-only, while the newer MSVC STL<cmath>declares them host+device (_CLANG_BUILTIN2) under clang, which HIP rejects as an illegal overload. Even the trivialtestHIPCompiler.hipcannot compile.Environment
C:\Program Files\AMD\ROCm\7.2)--checkand setup checks all passed before the buildError (from maya-setup.log)
Notes / suggested handling
build-hipand re-run setup. (Just confirm it now works.)_MSC_VER >= 195xon the HIP path and warn with "install VS 2022 Build Tools", or add the necessary header shim (e.g. suppress/extend the__DEVICE__forward declares when the STL already declares host+device builtins), or validate the ROCm SDK wheels path against VS 2026.Full
maya-setup.logandmaya-report.txtattached.maya-setup.log
maya-report.txt
@mw00 commented on GitHub (Oct 27, 2026):
Thank you for the exact error and the workaround. v1.1.34's setup says this up front. When the only Visual Studio is 2026 it warns that ROCm 7.2's compiler can stop on the newer C++ library's math headers, and a failed HIP build now names the fix: install the VS 2022 Build Tools beside it, delete
build-hip, and run the setup again. The setup already prefers 2022. Making ROCm 7.2's headers and VS 2026's library work together is for a later ROCm or a header fix. Keeping this open until one of them lands.Released in v1.1.34: https://github.com/mw00/project-maya/releases/tag/v1.1.34