Skip to content

cmake: fix VORTEXM4 guard for DYNAMIC_ARCH - #6117

Open
topolarity wants to merge 1 commit into
OpenMathLib:developfrom
topolarity:ct/fix-cmake-vortex
Open

topolarity wants to merge 1 commit into
OpenMathLib:developfrom
topolarity:ct/fix-cmake-vortex

Conversation

@topolarity

Copy link
Copy Markdown

Quick bugfix to #5423 / 55a10c7 . That change intended to make these kernels Darwin-only but landed in the wrong if branch. It checked for Clang under the GCC branch of the CMake file.

This was working accidentally because the kernel was built but never linked / used.

55a10c7 ("Make VortexM4 available in DYNAMIC_ARCH on MacOS only")
meant to restrict VORTEXM4 to clang on Darwin, matching 5133aac for
the Makefile build and 6f225da for dynamic_arm64.c.  But it put the
check in the GNU branch, where the compiler can never match "Clang",
and left the clang branch adding VORTEXM4 on every non-Windows system.
Move the Darwin check to the clang branch, replacing its non-Windows one.

On other systems dynamic_arm64.c aliases gotoblas_VORTEXM4 to
NEOVERSEN1, so the VORTEXM4 kernels there were built but never used.
Darwin itself is unaffected: the Darwin/iOS block below resets
DYNAMIC_CORE and adds VORTEXM4 on its own.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@topolarity

Copy link
Copy Markdown
Author

Should fix CI on #6088

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant