rocmrc 0.1.0

Minimal safe ROCm bindings (HIP, hipRTC), modeled after cudarc
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 = "rocmrc"
version = "0.1.0"
authors = ["Reis McMillan <reis@mcmlln.dev>"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Minimal safe ROCm bindings (HIP, hipRTC), modeled after cudarc"
homepage = "https://github.com/Reis-McMillan/rocmrc"
documentation = "https://docs.rs/rocmrc"
readme = "README.md"
keywords = [
    "rocm",
    "hip",
    "gpu",
    "rocblas",
    "hipblaslt",
]
categories = [
    "external-ffi-bindings",
    "hardware-support",
    "science",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/Reis-McMillan/rocmrc"

[features]
default = []
dynamic-loading = ["dep:libloading"]
hipblaslt = []
rocblas = []
rocm-06002 = []
rocm-06015 = []
rocm-06024 = []
rocm-06033 = []
rocm-06043 = []
rocm-07002 = []
rocm-07011 = []
rocm-07020 = []
rocm-07021 = []
rocm-07022 = []
rocm-07023 = []

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

[[example]]
name = "matmul_lt"
path = "examples/matmul_lt.rs"
required-features = ["hipblaslt"]

[[example]]
name = "sgemm"
path = "examples/sgemm.rs"
required-features = ["rocblas"]

[[example]]
name = "vec_add"
path = "examples/vec_add.rs"

[dependencies.half]
version = "2"

[dependencies.libloading]
version = "0.8"
optional = true

[dependencies.thiserror]
version = "1.0"

[dev-dependencies.bytemuck]
version = "1.16"