diff --git a/core/cube/cube-builder/CMakeLists.txt b/core/cube/cube-builder/CMakeLists.txt index c7a22b7c45198d84f5f380ec2ea515e21eb1e601..00278939b78235ba5f5b3042d347ad905ac3c8fe 100644 --- a/core/cube/cube-builder/CMakeLists.txt +++ b/core/cube/cube-builder/CMakeLists.txt @@ -22,7 +22,7 @@ include_directories(SYSTEM ${CMAKE_CURRENT_BINARY_DIR}/../) add_executable(cube-builder src/main.cpp include/cube-builder/util.h src/util.cpp src/builder_job.cpp include/cube-builder/builder_job.h include/cube-builder/define.h src/seqfile_reader.cpp include/cube-builder/seqfile_reader.h include/cube-builder/raw_reader.h include/cube-builder/vtext.h src/crovl_builder_increment.cpp include/cube-builder/crovl_builder_increment.h src/curl_simple.cpp include/cube-builder/curl_simple.h) -add_dependencies(cube-builder jsoncpp boost) +add_dependencies(cube-builder jsoncpp boost brpc) set(DYNAMIC_LIB gflags diff --git a/core/predictor/tools/CMakeLists.txt b/core/predictor/tools/CMakeLists.txt index 05c7d244a6d3b4bfae0d47e7a12bcd44f9754b93..c15ada04307c0fb546dc2cb7864d542fe8f2994f 100644 --- a/core/predictor/tools/CMakeLists.txt +++ b/core/predictor/tools/CMakeLists.txt @@ -6,7 +6,7 @@ target_link_libraries(seq_generator protobuf -lpthread) set(seq_reader_src ${CMAKE_CURRENT_LIST_DIR}/seq_reader.cpp ${CMAKE_CURRENT_LIST_DIR}/../../cube/cube-builder/src/seqfile_reader.cpp) add_executable(seq_reader ${seq_reader_src}) - +add_dependencies(seq_reader brpc) install(TARGETS seq_reader RUNTIME DESTINATION ${PADDLE_SERVING_INSTALL_DIR}/bin ARCHIVE DESTINATION ${PADDLE_SERVING_INSTALL_DIR}/lib diff --git a/doc/COMPILE.md b/doc/COMPILE.md index 1dbe5ecd614ddc03bec26e57d0cc3b92c139b549..ea7f53b2ed1704777b611a58c3a8d971d48eb312 100644 --- a/doc/COMPILE.md +++ b/doc/COMPILE.md @@ -81,12 +81,13 @@ export PATH=$PATH:$GOPATH/bin ## Get go packages ```shell -go env -w GO111MODULE=auto +go env -w GO111MODULE=on go env -w GOPROXY=https://goproxy.cn,direct go get -u github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway@v1.15.2 go get -u github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger@v1.15.2 go get -u github.com/golang/protobuf/protoc-gen-go@v1.4.3 go get -u google.golang.org/grpc@v1.33.0 +go env -w GO111MODULE=auto ``` diff --git a/doc/COMPILE_CN.md b/doc/COMPILE_CN.md index 197c41a6d327a39f730354585fbbe3ab635de88f..89178cee78746013915fc416b212b5a49f6762c2 100644 --- a/doc/COMPILE_CN.md +++ b/doc/COMPILE_CN.md @@ -80,12 +80,13 @@ export PATH=$PATH:$GOPATH/bin ## 获取 Go packages ```shell -go env -w GO111MODULE=auto +go env -w GO111MODULE=on go env -w GOPROXY=https://goproxy.cn,direct go get -u github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway@v1.15.2 go get -u github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger@v1.15.2 go get -u github.com/golang/protobuf/protoc-gen-go@v1.4.3 go get -u google.golang.org/grpc@v1.33.0 +go env -w GO111MODULE=auto ``` diff --git a/python/examples/criteo_ctr_with_cube/cube_prepare.sh b/python/examples/criteo_ctr_with_cube/cube_prepare.sh new file mode 100755 index 0000000000000000000000000000000000000000..773baba4d91b02b244e766cd8ebf899cc740dbbc --- /dev/null +++ b/python/examples/criteo_ctr_with_cube/cube_prepare.sh @@ -0,0 +1,20 @@ +# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# pylint: disable=doc-string-missing +#! /bin/bash + +mkdir -p cube_model +mkdir -p cube/data +./cube/cube-builder -dict_name=test_dict -job_mode=base -last_version=0 -cur_version=0 -depend_version=0 -input_path=./cube_model -output_path=${PWD}/cube/data -shard_num=1 -only_build=false +cd cube && ./cube