Skip to content

Commit 77adbbc

Browse files
committed
Install clang, cuda-crt and cuda-cudart-dev
Try and fix `fatal error: 'stddef.h' file not found`; 'cuda_runtime.h' file not found and so on. Revert back to symlinking nvtiff header and shared object files into $CONDA_PREFIX/targets/x86_64-linux/lib/, while also setting RUSTFLAGS, xref weiji14/cog3pio@186fed2
1 parent 832ed7b commit 77adbbc

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.readthedocs.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@ build:
99
post_install:
1010
# https://github.com/weiji14/cog3pio/pull/71
1111
- export CONDA_PREFIX="$CONDA_ENVS_PATH/$CONDA_DEFAULT_ENV";
12-
BINDGEN_EXTRA_CLANG_ARGS="-I $CONDA_PREFIX/include"
12+
ln -s $CONDA_PREFIX/include/nvtiff.h $CONDA_PREFIX/targets/x86_64-linux/include/nvtiff.h;
13+
ln -s $CONDA_PREFIX/include/nvtiff_version.h $CONDA_PREFIX/targets/x86_64-linux/include/nvtiff_version.h;
14+
ln -s $CONDA_PREFIX/lib/libnvtiff.so $CONDA_PREFIX/targets/x86_64-linux/lib/libnvtiff.so;
15+
RUSTFLAGS="-L$CONDA_PREFIX/targets/x86_64-linux/lib"
16+
BINDGEN_EXTRA_CLANG_ARGS="-I $CONDA_PREFIX/targets/x86_64-linux/include"
1317
MATURIN_PEP517_ARGS="--features cuda,pyo3"
1418
mamba run --prefix "$CONDA_PREFIX" pip install -v "cog3pio[cuda] @ git+https://github.com/weiji14/cog3pio.git@ce268b0ccb58ff0c7e329cdf38f2326a4fac22e9"
1519
- pip list

ci/doc.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: cupy-xarray-doc
22
channels:
33
- conda-forge
44
dependencies:
5+
- clang
6+
- cuda-crt
7+
- cuda-cudart-dev
58
- cupy-core
69
- pip
710
- python=3.13

0 commit comments

Comments
 (0)