mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Revert "Parallelize sort (#149505)"
This reverts commit 842d51500be144d53f4d046d31169e8f46c063f6.
Reverted https://github.com/pytorch/pytorch/pull/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](842d51500b
) ([comment](https://github.com/pytorch/pytorch/pull/149505#issuecomment-2759082390))
This commit is contained in:
@ -417,11 +417,8 @@ if(INTERN_BUILD_ATEN_OPS)
|
||||
endif(MSVC)
|
||||
|
||||
# Only parallelize the SortingKernel for now to avoid side effects
|
||||
if(${NAME} STREQUAL "native/cpu/SortingKernel.cpp" AND NOT MSVC AND USE_OPENMP)
|
||||
set(EXTRA_FLAGS "${EXTRA_FLAGS} -D_GLIBCXX_PARALLEL")
|
||||
if(USE_PRECOMPILED_HEADERS)
|
||||
set_source_files_properties(${NEW_IMPL} PROPERTIES SKIP_PRECOMPILE_HEADERS ON)
|
||||
endif()
|
||||
if(${NAME} STREQUAL "native/cpu/SortingKernel.cpp" AND NOT MSVC AND USE_OMP)
|
||||
string(APPEND EXTRA_FLAGS " -D_GLIBCXX_PARALLEL")
|
||||
endif()
|
||||
|
||||
# Disable certain warnings for GCC-9.X
|
||||
|
Reference in New Issue
Block a user