Skip to content

Commit

Permalink
remove unused ppc-scheduler
Browse files Browse the repository at this point in the history
  • Loading branch information
cyjseagull committed Oct 25, 2024
1 parent e9c5477 commit 2789e99
Show file tree
Hide file tree
Showing 76 changed files with 51 additions and 3,483 deletions.
28 changes: 18 additions & 10 deletions .github/workflows/cpp_full_node_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@ on:
push:
paths-ignore:
- "docs/**"
- "python/**"
- "Changelog.md"
- "README.md"
pull_request:
paths-ignore:
- "docs/**"
- "python/**"
- "Changelog.md"
- "README.md"
release:
Expand Down Expand Up @@ -70,16 +72,16 @@ jobs:
bash -x cpp/tools/install_depends.sh -o macos
mkdir -p cpp/build && cd cpp/build && cmake -DTESTS=ON -DCOVERAGE=ON -DCMAKE_TOOLCHAIN_FILE=${{ env.VCPKG_ROOT }}/scripts/buildsystems/vcpkg.cmake ../
make -j3
- name: Test
if: runner.os != 'Windows'
run: |
cd cpp/build && CTEST_OUTPUT_ON_FAILURE=TRUE ctest
- name: Publish Error
if: always()
uses: actions/upload-artifact@v4
with:
name: config-x64-osx-dbg-err.log
path: /Users/runner/work/WeDPR-Component/WeDPR-Component/vcpkg/buildtrees/libhdfs3/config-x64-osx-dbg-err.log
name: config-x64-linux-dbg-err.log
path: /home/runner/work/WeDPR-Component/WeDPR-Component/vcpkg/buildtrees/libhdfs3/config-x64-linux-dbg-err.log
#- name: Test
# if: runner.os != 'Windows'
# run: |
# cd cpp/build && CTEST_OUTPUT_ON_FAILURE=TRUE ctest

build_centos:
name: build_centos full node
Expand Down Expand Up @@ -140,10 +142,16 @@ jobs:
cd cpp/build
cmake3 -DCMAKE_BUILD_TYPE=Release -DTESTS=ON -DCMAKE_TOOLCHAIN_FILE=/usr/local/share/vcpkg/scripts/buildsystems/vcpkg.cmake ../
cmake3 --build . --parallel 3
- name: Test
run: |
export OMP_NUM_THREADS=1
cd build && CTEST_OUTPUT_ON_FAILURE=TRUE make test
- name: Publish Error
if: always()
uses: actions/upload-artifact@v4
with:
name: vcpkg-manifest-install.log
path: /__w/WeDPR-Component/WeDPR-Component/cpp/build/vcpkg-manifest-install.log
#- name: Test
# run: |
# export OMP_NUM_THREADS=1
# cd build && CTEST_OUTPUT_ON_FAILURE=TRUE make test
- uses: actions/upload-artifact@v4
with:
name: ppc-air-node-centos-x64
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/cpp_sdk_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@ on:
push:
paths-ignore:
- "docs/**"
- "python/**"
- "Changelog.md"
- "README.md"
pull_request:
paths-ignore:
- "docs/**"
- "python/**"
- "Changelog.md"
- "README.md"
release:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/cpp_toolkit_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@ on:
push:
paths-ignore:
- "docs/**"
- "python/**"
- "Changelog.md"
- "README.md"
pull_request:
paths-ignore:
- "docs/**"
- "python/**"
- "Changelog.md"
- "README.md"
release:
Expand Down
25 changes: 24 additions & 1 deletion cpp/cmake/grpc.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,29 @@ if(NOT GRPC_CPP_PLUGIN AND TARGET gRPC::grpc_cpp_plugin)
endif()
endif()


if(NOT GRPC_CPP_REFLECTION AND TARGET gRPC::grpc++_reflection)
get_target_property(GRPC_CPP_REFLECTION gRPC::grpc++_reflection
IMPORTED_LOCATION_RELEASE)
if(NOT EXISTS "${GRPC_CPP_REFLECTION}")
get_target_property(GRPC_CPP_REFLECTION gRPC::grpc++_reflection
IMPORTED_LOCATION_RELWITHDEBINFO)
endif()
if(NOT EXISTS "${GRPC_CPP_REFLECTION}")
get_target_property(GRPC_CPP_REFLECTION gRPC::grpc++_reflection
IMPORTED_LOCATION_MINSIZEREL)
endif()
if(NOT EXISTS "${GRPC_CPP_REFLECTION}")
get_target_property(GRPC_CPP_REFLECTION gRPC::grpc++_reflection
IMPORTED_LOCATION_DEBUG)
endif()
if(NOT EXISTS "${GRPC_CPP_REFLECTION}")
get_target_property(GRPC_CPP_REFLECTION gRPC::grpc++_reflection
IMPORTED_LOCATION_NOCONFIG)
endif()
endif()

set(PROTOC_BINARY ${Protobuf_PROTOC_EXECUTABLE})
message("# PROTOC_BINARY: ${Protobuf_PROTOC_EXECUTABLE}")
message("# GRPC_CPP_PLUGIN: ${GRPC_CPP_PLUGIN}")
message("# GRPC_CPP_PLUGIN: ${GRPC_CPP_PLUGIN}")
message("# GRPC_CPP_REFLECTION: ${GRPC_CPP_REFLECTION}")
2 changes: 1 addition & 1 deletion cpp/wedpr-computing/ppc-pir/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ target_include_directories(${TEST_BINARY_NAME} PRIVATE .)

# target_link_libraries(${TEST_BINARY_NAME} ${PIR_TARGET} ${RPC_TARGET} ${CRYPTO_TARGET} ${BOOST_UNIT_TEST})
target_link_libraries(${TEST_BINARY_NAME} PUBLIC ${IO_TARGET} ${FRONT_TARGET} ${BCOS_UTILITIES_TARGET} ${TARS_PROTOCOL_TARGET} ${PIR_TARGET} ${RPC_TARGET} ${CRYPTO_TARGET} ${PROTOCOL_TARGET} ${BOOST_UNIT_TEST})
add_test(NAME test-psi WORKING_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY} COMMAND ${TEST_BINARY_NAME})
add_test(NAME test-pir WORKING_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY} COMMAND ${TEST_BINARY_NAME})
3 changes: 3 additions & 0 deletions cpp/wedpr-computing/ppc-pir/tests/data/AysPreDataset.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
id,x1
1,test
2,test2
2 changes: 1 addition & 1 deletion cpp/wedpr-protocol/grpc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ foreach(proto_file ${MESSAGES_PROTOS})
endforeach()

add_library(${SERVICE_PB_TARGET} ${GRPC_MESSAGES_SRCS})
target_link_libraries(${SERVICE_PB_TARGET} PUBLIC ${PB_PROTOCOL_TARGET} gRPC::grpc++_unsecure gRPC::grpc++_reflection)
target_link_libraries(${SERVICE_PB_TARGET} PUBLIC ${PB_PROTOCOL_TARGET} gRPC::grpc++_unsecure ${GRPC_CPP_REFLECTION})

add_subdirectory(client)
add_subdirectory(server)
Empty file removed python/ppc_scheduler/__init__.py
Empty file.
Empty file.
3 changes: 0 additions & 3 deletions python/ppc_scheduler/common/global_context.py

This file was deleted.

15 changes: 0 additions & 15 deletions python/ppc_scheduler/common/global_job_manager.py

This file was deleted.

72 changes: 0 additions & 72 deletions python/ppc_scheduler/common/initializer.py

This file was deleted.

78 changes: 0 additions & 78 deletions python/ppc_scheduler/common/log_utils.py

This file was deleted.

13 changes: 0 additions & 13 deletions python/ppc_scheduler/conf/application-sample.yml

This file was deleted.

40 changes: 0 additions & 40 deletions python/ppc_scheduler/conf/logging.conf

This file was deleted.

Empty file.
Loading

0 comments on commit 2789e99

Please sign in to comment.