Skip to content

Commit

Permalink
use CPU inference lib instead of GPU inference lib
Browse files Browse the repository at this point in the history
  • Loading branch information
HydrogenSulfate committed Dec 31, 2024
1 parent 8800bb0 commit 269e96e
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions source/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,15 @@ if(ENABLE_PADDLE)
# message( FATAL_ERROR "Make sure PADDLE_INFERENCE_DIR is set when
# ENABLE_PADDLE=ON")
message(STATUS "PADDLE_INFERENCE_DIR is not defined. Downloading...")
set(DOWNLOAD_URL
"https://paddle-qa.bj.bcebos.com/paddle-pipeline/GITHUB_Docker_Compile_Test_Cuda118_cudnn860_Trt8531_D1/latest/paddle_inference.tgz"
)
if(USE_CUDA_TOOLKIT)
set(DOWNLOAD_URL
"https://paddle-qa.bj.bcebos.com/paddle-pipeline/GITHUB_Docker_Compile_Test_Cuda118_cudnn860_Trt8531_D1/latest/paddle_inference.tgz"
)
else()
set(DOWNLOAD_URL
"https://paddle-qa.bj.bcebos.com/paddle-pipeline/GITHUB_Docker_Compile_Test_Cpu_Mkl_Avx_D1/latest/paddle_inference.tgz"
)
endif()
set(TGZ_FILE "${CMAKE_BINARY_DIR}/paddle_inference.tgz")
set(EXTRACTED_DIR "${CMAKE_BINARY_DIR}/paddle_inference_install_dir")
file(DOWNLOAD ${DOWNLOAD_URL} ${TGZ_FILE})
Expand Down

0 comments on commit 269e96e

Please sign in to comment.