CI / Build (macos-latest) (push) Failing after 29s
CI / Format Check (push) Failing after 12s
CI / Clippy Check (push) Failing after 1m21s
CI / Build (ubuntu-latest) (push) Failing after 1m22s
CI / Test (macos-latest) (push) Has been skipped
CI / Test (ubuntu-latest) (push) Has been skipped
CI / Python Bindings (maturin) (macos-latest) (push) Has been skipped
CI / Python Bindings (maturin) (ubuntu-latest) (push) Has been skipped
CI / WASM Build + Size Check (push) Has been skipped
CI / Distributed Training Tests (push) Has been skipped
Documentation / Build User Guide (push) Successful in 10s
CI / Build CPU-Only (Explicit) (push) Failing after 1m28s
CI / CI Success (push) Failing after 0s
Documentation / Build API Documentation (push) Failing after 43s
Performance Benchmarks / Run Benchmarks (push) Successful in 2m14s
rtx-backend's only build-graph CUDA pull was a [dev-dependencies] entry (rtx-backend-cuda with features=[cuda]) compiled unconditionally, so cargo test --workspace failed on macOS/non-CUDA hosts trying to build cudarc. Gate it to x86_64 Linux (where the CUDA toolkit lives); cargo build was unaffected. Also drop the no-op cuda from rtx-nlg default features (empty placeholder that misleadingly implied CUDA-by-default). Audit: 121/126 workspace crates already gate CUDA correctly (optional + non-default). Co-Authored-By: Claude Opus 4.8 <[email protected]>
46 lines
1.1 KiB
TOML
46 lines
1.1 KiB
TOML
[package]
|
|
name = "rtx-backend"
|
|
version = "1.0.0"
|
|
edition = "2024"
|
|
rust-version = "1.92"
|
|
authors = ["RustyTorch++ Team"]
|
|
license = "Apache-2.0"
|
|
description = "Backend trait abstraction for RustyTorch++ - Burn-inspired compile-time dispatch"
|
|
|
|
[dependencies]
|
|
# Core utilities
|
|
thiserror = "2"
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
|
|
# Numeric types
|
|
half = { version = "2.3", features = ["serde"] }
|
|
num-traits = "0.2"
|
|
|
|
[dev-dependencies]
|
|
rtx-backend-cpu = { path = "../rtx-backend-cpu" }
|
|
|
|
# CUDA backend tests require the CUDA toolkit; gate to x86_64 Linux so that
|
|
# `cargo test --workspace` works on macOS / non-CUDA hosts.
|
|
[target.'cfg(all(target_os = "linux", target_arch = "x86_64"))'.dev-dependencies]
|
|
rtx-backend-cuda = { path = "../rtx-backend-cuda", features = ["cuda"] }
|
|
|
|
# Metal backend (macOS only)
|
|
[target.'cfg(target_os = "macos")'.dev-dependencies]
|
|
rtx-backend-metal = { path = "../rtx-backend-metal" }
|
|
rtx-metal = { path = "../rtx-metal" }
|
|
|
|
[features]
|
|
default = []
|
|
std = []
|
|
|
|
# Feature flags for conditional test compilation
|
|
cuda = []
|
|
metal = []
|
|
|
|
[lib]
|
|
name = "rtx_backend"
|
|
path = "src/lib.rs"
|
|
|
|
[lints]
|
|
workspace = true
|