Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PTEN] Add pten::Place data structure. #38844

Merged
merged 4 commits into from
Jan 11, 2022
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions paddle/pten/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
# float16.h/complex.h/bfloat16.h into pten
include_directories(${PADDLE_SOURCE_DIR}/paddle/fluid/platform)

# paddle experimental common components
add_subdirectory(common)

# pten (low level) api headers: include
# pten (high level) api
add_subdirectory(api)
Expand Down
4 changes: 2 additions & 2 deletions paddle/pten/api/lib/utils/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
cc_library(pten_api_utils SRCS allocator.cc storage.cc tensor_utils.cc place_utils.cc DEPS
tensor_base convert_utils dense_tensor lod_tensor selected_rows place var_type_traits pten_common)
cc_library(pten_api_utils SRCS allocator.cc storage.cc tensor_utils.cc DEPS
tensor_base convert_utils dense_tensor lod_tensor selected_rows place var_type_traits)
62 changes: 0 additions & 62 deletions paddle/pten/api/lib/utils/place_utils.cc

This file was deleted.

28 changes: 0 additions & 28 deletions paddle/pten/api/lib/utils/place_utils.h

This file was deleted.

1 change: 0 additions & 1 deletion paddle/pten/common/CMakeLists.txt

This file was deleted.

65 changes: 0 additions & 65 deletions paddle/pten/common/device.cc

This file was deleted.

70 changes: 0 additions & 70 deletions paddle/pten/common/device.h

This file was deleted.

26 changes: 0 additions & 26 deletions paddle/pten/common/place.cc

This file was deleted.

67 changes: 0 additions & 67 deletions paddle/pten/common/place.h

This file was deleted.

1 change: 1 addition & 0 deletions paddle/pten/core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ else()
cc_library(convert_utils SRCS convert_utils.cc DEPS data_type place)
endif()

cc_library(pten_place SRCS place.cc)
cc_library(kernel_factory SRCS kernel_factory.cc DEPS enforce convert_utils)
cc_library(kernel_context SRCS kernel_context.cc DEPS enforce pten_context)
cc_library(tensor_base SRCS tensor_base.cc allocator.cc storage.cc DEPS enforce)
Expand Down
Loading