Skip to content

Fix build errors caused by optix-sys #231

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lucifer1004
Copy link

@lucifer1004 lucifer1004 commented Jun 29, 2025

Fixes #225

@lucifer1004
Copy link
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

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
1 participant