Revert "Move at::{Refcounted,}MapAllocator to c10 (#109881)"

This reverts commit 0341deb1c720d8c908ed40e853eaacfc8ac37181.

Reverted https://github.com/pytorch/pytorch/pull/109881 on behalf of https://github.com/albanD due to It does break buck build ([comment](https://github.com/pytorch/pytorch/pull/109881#issuecomment-1756195823))
This commit is contained in:
PyTorch MergeBot
2023-10-10 20:39:11 +00:00
parent 495f77be7a
commit 02a02a23ee
17 changed files with 798 additions and 1154 deletions

View File

@ -63,6 +63,10 @@ if(INTERN_BUILD_ATEN_OPS)
endif()
endif(MSVC)
if(NOT MSVC AND NOT "${CMAKE_C_COMPILER_ID}" MATCHES "Clang")
set_source_files_properties(${CMAKE_CURRENT_LIST_DIR}/../aten/src/ATen/MapAllocator.cpp PROPERTIES COMPILE_FLAGS "-fno-openmp")
endif()
file(GLOB_RECURSE all_python "${CMAKE_CURRENT_LIST_DIR}/../torchgen/*.py")
set(GEN_ROCM_FLAG)