File tree Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ before-all = [
3232[tool .cibuildwheel .linux .environment ]
3333cuda = " 12.4"
3434temp = " /tmp/cuda-temp"
35+ TENSOR_ARRAY_INSTALL_PATH = " /tmp/tensor-array-temp"
3536CUDA_PATH = " /usr/local/cuda-${cuda}"
3637PATH = " ${PATH}:${CUDA_PATH}/bin"
3738LD_LIBRARY_PATH = " ${LD_LIBRARY_PATH}:${CUDA_PATH}/lib:${CUDA_PATH}/lib64"
Original file line number Diff line number Diff line change 6262cd build
6363# Configure the build with CMake
6464echo " Configuring the build with CMake..."
65- cmake .. -DCMAKE_CUDA_HOST_COMPILER=" /usr/bin/gcc"
65+ cmake .. -DCMAKE_CUDA_HOST_COMPILER=" /usr/bin/gcc" -DCMAKE_INSTALL_PREFIX= ${TENSOR_ARRAY_INSTALL_PATH}
6666cmake --build .
6767cmake --install .
6868
Original file line number Diff line number Diff line change 77from setuptools import setup , find_packages
88from pybind11 .setup_helpers import Pybind11Extension , build_ext
99
10- __version__ = "0.0.7 "
10+ __version__ = "0.0.8 "
1111
1212def main ():
1313 cwd = os .path .dirname (os .path .abspath (__file__ ))
1414 with open (os .path .join (cwd , "README.md" ), encoding = "utf-8" ) as f :
1515 long_description = f .read ()
1616
17+ tensor_array_lib_path = os .environ ['TENSOR_ARRAY_INSTALL_PATH' ]
18+
1719 ext_modules = [
1820 Pybind11Extension (
1921 "tensor_array._ext" ,
2022 sources = glob .glob (os .path .join ("cpp" , "*.cc" )),
21- include_dirs = ["/usr/local /include" ],
22- library_dirs = ["/usr/local/ lib" , "/usr/local/ lib64" ],
23- # libraries=["tensorarray_core", "tensorarray_layers"],
23+ include_dirs = [tensor_array_lib_path + " /include" ],
24+ library_dirs = [tensor_array_lib_path + "/ lib/tensor-array " , tensor_array_lib_path + "/ lib64/tensor-array " ],
25+ libraries = ["tensorarray_core" , "tensorarray_layers" ],
2426 define_macros = [("VERSION_INFO" , __version__ )],
2527 ),
2628 ]
You can’t perform that action at this time.
0 commit comments