Skip to content

[Caffe2] Add db directory for hipifying #111

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

Merged
merged 2 commits into from
Aug 9, 2018
Merged
Show file tree
Hide file tree
Changes from all 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
8 changes: 6 additions & 2 deletions caffe2/db/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@ set(Caffe2_DB_COMMON_CPU_SRC
set(Caffe2_DB_COMMON_GPU_SRC
"${CMAKE_CURRENT_SOURCE_DIR}/create_db_op_gpu.cc"
)

set(Caffe2_DB_COMMON_HIP_SRC
"${CMAKE_CURRENT_SOURCE_DIR}/hip/create_db_op_hip.cc"
)
# Common files that are always going to be included.
list(APPEND Caffe2_CPU_SRCS ${Caffe2_DB_COMMON_CPU_SRC})
list(APPEND Caffe2_GPU_SRCS ${Caffe2_DB_COMMON_GPU_SRC})

list(APPEND Caffe2_HIP_SRCS ${Caffe2_DB_COMMON_HIP_SRC})
# DB specific files
if (USE_LMDB)
list(APPEND Caffe2_CPU_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/lmdb.cc")
Expand All @@ -25,3 +27,5 @@ endif()

set(Caffe2_CPU_SRCS ${Caffe2_CPU_SRCS} PARENT_SCOPE)
set(Caffe2_GPU_SRCS ${Caffe2_GPU_SRCS} PARENT_SCOPE)
set(Caffe2_HIP_SRCS ${Caffe2_HIP_SRCS} PARENT_SCOPE)

1 change: 1 addition & 0 deletions tools/amd_build/build_caffe2_amd.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"caffe2/queue/*",
"caffe2/**/*_test*",
"caffe2/core/THCCachingAllocator*",
"caffe2/db/*",
]

ignores = [
Expand Down