Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
add LD_LIBRARY_PATH into cmake tvm op
Browse files Browse the repository at this point in the history
  • Loading branch information
yzhliu committed Sep 4, 2019
1 parent 5f3ea79 commit 1a5ae86
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,7 @@ if(USE_TVM_OP)
add_custom_command(TARGET mxnet POST_BUILD
COMMAND ${CMAKE_COMMAND} -E env
PYTHONPATH="${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/tvm/python:${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/tvm/topi/python:${CMAKE_CURRENT_SOURCE_DIR}/contrib"
LD_LIBRARY_PATH="${CMAKE_CURRENT_BINARY_DIR}/3rdparty/tvm:/usr/local/cuda/lib64:/usr/local/cuda/targets/x86_64-linux/lib/stubs:/usr/lib/x86_64-linux-gnu:/usr/local/cuda-10.1/compat"
LD_LIBRARY_PATH=${CMAKE_CURRENT_BINARY_DIR}:${CMAKE_CURRENT_BINARY_DIR}/3rdparty/tvm:$ENV{LD_LIBRARY_PATH}
${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/contrib/tvmop/compile.py -o${CMAKE_CURRENT_BINARY_DIR}/libtvmop.so
)
endif()
Expand Down
5 changes: 3 additions & 2 deletions ci/docker/runtime_functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -715,6 +715,7 @@ build_ubuntu_gpu_cmake_mkldnn() {
set -ex
cd /work/build
build_ccache_wrappers
export LD_LIBRARY_PATH=/usr/local/cuda/compat:$LD_LIBRARY_PATH
cmake \
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
-DCMAKE_C_COMPILER_LAUNCHER=ccache \
Expand Down Expand Up @@ -742,10 +743,10 @@ build_ubuntu_gpu_cmake() {
cd /work/build
build_ccache_wrappers
echo "ls cuda path"
ls /usr/local/cuda/lib64
ls /usr/local/cuda/targets/x86_64-linux/lib/stubs
ls -l /usr/lib/x86_64-linux-gnu/
ls -l /usr/local/cuda
find /usr/ -name libcuda.so.1
export LD_LIBRARY_PATH=/usr/local/cuda/compat:$LD_LIBRARY_PATH
cmake \
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
-DCMAKE_C_COMPILER_LAUNCHER=ccache \
Expand Down

0 comments on commit 1a5ae86

Please sign in to comment.