Skip to content

Only forward declare '_mm_pause' if it is used#1923

Merged
ericniebler merged 1 commit intoNVIDIA:mainfrom
bustercopley:mm_pause_fix
Mar 12, 2026
Merged

Only forward declare '_mm_pause' if it is used#1923
ericniebler merged 1 commit intoNVIDIA:mainfrom
bustercopley:mm_pause_fix

Conversation

@bustercopley
Copy link
Contributor

The forward declaration of extern void _mm_pause() leads to a compilation failure on GCC on Windows. The error message says that the forward declaration conflicts with the declaration in <xmmintrin.h> because only the latter is extern "C".

The function is not called on GCC because of a preprocessor conditional. Guard the forward declaration with the same conditional.

@copy-pr-bot
Copy link

copy-pr-bot bot commented Mar 11, 2026

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@ericniebler
Copy link
Collaborator

/ok to test 7cd37f6

@ericniebler ericniebler merged commit b21a841 into NVIDIA:main Mar 12, 2026
60 of 62 checks passed
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.

2 participants