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 = [
32
32
[tool .cibuildwheel .linux .environment ]
33
33
cuda = " 12.4"
34
34
temp = " /tmp/cuda-temp"
35
+ TENSOR_ARRAY_INSTALL_PATH = " /tmp/tensor-array-temp"
35
36
CUDA_PATH = " /usr/local/cuda-${cuda}"
36
37
PATH = " ${PATH}:${CUDA_PATH}/bin"
37
38
LD_LIBRARY_PATH = " ${LD_LIBRARY_PATH}:${CUDA_PATH}/lib:${CUDA_PATH}/lib64"
Original file line number Diff line number Diff line change 62
62
cd build
63
63
# Configure the build with CMake
64
64
echo " 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}
66
66
cmake --build .
67
67
cmake --install .
68
68
Original file line number Diff line number Diff line change 7
7
from setuptools import setup , find_packages
8
8
from pybind11 .setup_helpers import Pybind11Extension , build_ext
9
9
10
- __version__ = "0.0.7 "
10
+ __version__ = "0.0.8 "
11
11
12
12
def main ():
13
13
cwd = os .path .dirname (os .path .abspath (__file__ ))
14
14
with open (os .path .join (cwd , "README.md" ), encoding = "utf-8" ) as f :
15
15
long_description = f .read ()
16
16
17
+ tensor_array_lib_path = os .environ ['TENSOR_ARRAY_INSTALL_PATH' ]
18
+
17
19
ext_modules = [
18
20
Pybind11Extension (
19
21
"tensor_array._ext" ,
20
22
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" ],
24
26
define_macros = [("VERSION_INFO" , __version__ )],
25
27
),
26
28
]
You can’t perform that action at this time.
0 commit comments