oxiphysics-gpu 0.1.1

GPU acceleration backends for the OxiPhysics engine
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
name = "oxiphysics-gpu"
version = "0.1.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "GPU acceleration backends for the OxiPhysics engine"
documentation = "https://docs.rs/oxiphysics"
readme = "README.md"
keywords = [
    "gpu",
    "physics",
    "acceleration",
    "parallel",
    "simulation",
]
categories = [
    "science",
    "simulation",
]
license = "Apache-2.0"
repository = "https://github.com/cool-japan/oxiphysics"
resolver = "2"

[features]
cpu-only = []
cuda-backend = ["dep:cudarc"]
default = ["wgpu-backend"]
headless-ci = []
wgpu-backend = [
    "dep:wgpu",
    "dep:pollster",
    "dep:bytemuck",
]

[lib]
name = "oxiphysics_gpu"
path = "src/lib.rs"

[[test]]
name = "cuda_backend_tests"
path = "tests/cuda_backend_tests.rs"

[[test]]
name = "lbm_kernels"
path = "tests/lbm_kernels.rs"

[[test]]
name = "wgpu_kernels"
path = "tests/wgpu_kernels.rs"

[[test]]
name = "wgpu_sph_speedup"
path = "tests/wgpu_sph_speedup.rs"

[dependencies.bytemuck]
version = "1"
features = ["derive"]
optional = true

[dependencies.cudarc]
version = "0.19"
features = [
    "driver",
    "nvrtc",
    "dynamic-loading",
    "cuda-12080",
]
optional = true
default-features = false

[dependencies.oxiphysics-core]
version = "0.1.1"

[dependencies.pollster]
version = "0.4"
optional = true

[dependencies.rand]
version = "0.10"

[dependencies.rayon]
version = "1"

[dependencies.thiserror]
version = "2"

[dependencies.wgpu]
version = "29"
optional = true