Skip to content

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

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

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

Conversation

@bustercopley

Copy link
Copy Markdown
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-pr-bot Bot commented Mar 11, 2026

Copy link
Copy Markdown

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
Copy Markdown
Collaborator

/ok to test 7cd37f6

@ericniebler ericniebler merged commit b21a841 into NVIDIA:main Mar 12, 2026
60 of 62 checks passed
gamecentric pushed a commit to gamecentric/stdexec that referenced this pull request Mar 29, 2026
Only forward declare '_mm_pause' if it is used
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