Skip to content

Fix build errors caused by optix-sys#231

Merged
LegNeato merged 2 commits intoRust-GPU:mainfrom
lucifer1004:fix-build
Jul 1, 2025
Merged

Fix build errors caused by optix-sys#231
LegNeato merged 2 commits intoRust-GPU:mainfrom
lucifer1004:fix-build

Conversation

@lucifer1004
Copy link
Copy Markdown
Contributor

@lucifer1004 lucifer1004 commented Jun 29, 2025

Fixes #225

@lucifer1004
Copy link
Copy Markdown
Contributor Author

Attached is my building environment.

pixi.toml

[project]
authors = ["Zihua Wu <13583761+lucifer1004@users.noreply.github.com>"]
channels = ["conda-forge"]
name = "rust-cuda-workspace"
platforms = ["linux-64"]
version = "0.1.0"

[tasks]

[dependencies]
cuda-toolkit = "12.8.*"
openssl = ">=3.5.0,<4"
xorg-libx11 = ">=1.8.12,<2"
xorg-xproto = ">=7.0.31,<8"
xorg-libxcursor = ">=1.2.3,<2"
xorg-libxrandr = ">=1.5.4,<2"
xorg-randrproto = ">=1.5.0,<2"
xorg-libxrender = ">=0.9.12,<0.10"
xorg-renderproto = ">=0.11.1,<0.12"
xorg-xorgproto = ">=2024.1,<2025"
xorg-libxinerama = ">=1.1.5,<2"
cudnn = ">=9.10.1.4,<10"
sysroot_linux-64 = ">=2.28,<3"
zlib = ">=1.3.1,<2"

Justfile

set unstable

[script]
llvm:
    curl -sSf -L -O http://security.ubuntu.com/ubuntu/pool/universe/libf/libffi7/libffi7_3.3-5ubuntu1_amd64.deb && \
    curl -sSf -L -O http://mirrors.kernel.org/ubuntu/pool/universe/l/llvm-toolchain-7/llvm-7_7.0.1-12_amd64.deb && \
    curl -sSf -L -O http://mirrors.kernel.org/ubuntu/pool/universe/l/llvm-toolchain-7/llvm-7-dev_7.0.1-12_amd64.deb && \
    curl -sSf -L -O http://mirrors.kernel.org/ubuntu/pool/universe/l/llvm-toolchain-7/libllvm7_7.0.1-12_amd64.deb && \
    curl -sSf -L -O http://mirrors.kernel.org/ubuntu/pool/universe/l/llvm-toolchain-7/llvm-7-runtime_7.0.1-12_amd64.deb && \
    sudo apt-get install -y ./*.deb && \
    rm -rf ./*.deb

update:
    cd Rust-CUDA && git pull

clean:
    cd Rust-CUDA && cargo clean

[script]
build:
    export OPTIX_ROOT=`pwd`/OptiX
    export LLVM_CONFIG=/usr/bin/llvm-config-7
    export OPENSSL_DIR=`pwd`/.pixi/envs/default/
    export CUDNN_INCLUDE_DIR=`pwd`/.pixi/envs/default/include
    export LD_LIBRARY_PATH=`pwd`/.pixi/envs/default/nvvm/lib64
    cd Rust-CUDA && pixi run cargo build

@LegNeato LegNeato merged commit f3328b5 into Rust-GPU:main Jul 1, 2025
7 checks passed
@LegNeato
Copy link
Copy Markdown
Contributor

LegNeato commented Jul 1, 2025

Thank you! 🍻

LegNeato added a commit to LegNeato/Rust-CUDA that referenced this pull request Jul 12, 2025
Co-authored-by: Christian Legnitto <christian@legnitto.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

optix-sys build seems broken

2 participants