8000 Revert "Parallelize sort (#149505)" · pytorch/pytorch@a9d08ed · GitHub
[go: up one dir, main page]

Skip to content

Commit a9d08ed

Browse files
Revert "Parallelize sort (#149505)"
This reverts commit 842d515. Reverted #149505 on behalf of https://github.com/ZainRizvi due to Reverting since this is breaking inductor builds on trunk. More details [GH job link](https://github.com/pytorch/pytorch/actions/runs/14000726218/job/39207447863) [HUD commit link](https://hud.pytorch.org/pytorch/pytorch/commit/842d51500be144d53f4d046d31169e8f46c063f6) ([comment](#149505 (comment)))
1 parent 01cb351 commit a9d08ed

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

cmake/Codegen.cmake

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -417,11 +417,8 @@ if(INTERN_BUILD_ATEN_OPS)
417417
endif(MSVC)
418418

419419
# Only parallelize the SortingKernel for now to avoid side effects
420-
if(${NAME} STREQUAL "native/cpu/SortingKernel.cpp" AND NOT MSVC AND USE_OPENMP)
421-
set(EXTRA_FLAGS "${EXTRA_FLAGS} -D_GLIBCXX_PARALLEL")
422-
if(USE_PRECOMPILED_HEADERS)
423-
set_source_files_properties(${NEW_IMPL} PROPERTIES SKIP_PRECOMPILE_HEADERS ON)
424-
endif()
420+
if(${NAME} STREQUAL "native/cpu/SortingKernel.cpp" AND NOT MSVC AND USE_OMP)
421+
string(APPEND EXTRA_FLAGS " -D_GLIBCXX_PARALLEL")
425422
endif()
426423

427424
# Disable certain warnings for GCC-9.X

0 commit comments

Comments
 (0)
0