Skip to content

Guard optional CPU pragmas - #6247

Open
q10 wants to merge 1 commit into
pytorch:mainfrom
q10:export-D117024953
Open

Guard optional CPU pragmas#6247
q10 wants to merge 1 commit into
pytorch:mainfrom
q10:export-D117024953

Conversation

@q10

@q10 q10 commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Summary:
NOTE: No linked task. Please associate a task with this diff.

Make CPU warning behavior portable when optional compiler features are disabled.

Guard OpenMP directives in the mirrored Utils.cc sources and generated quantized CPU template, while removing invalid CUDA-style unroll pragmas from the jagged CPU helper. OpenMP-enabled behavior and the serial fallback remain unchanged.

Reviewed By: gchalump

Differential Revision: D117024953

Summary:
NOTE: No linked task. Please associate a task with this diff.

Make CPU warning behavior portable when optional compiler features are disabled.

Guard OpenMP directives in the mirrored `Utils.cc` sources and generated quantized CPU template, while removing invalid CUDA-style unroll pragmas from the jagged CPU helper. OpenMP-enabled behavior and the serial fallback remain unchanged.

Reviewed By: gchalump

Differential Revision: D117024953
@meta-cla meta-cla Bot added the cla signed label Sep 1, 2026
@meta-codesync

meta-codesync Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

@q10 has exported this pull request. If you are a Meta employee, you can view the originating Diff in D117024953.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant