[package]
edition = "2024"
name = "gpu-kernel"
version = "0.1.0"
authors = ["Flakebi <flakebi@t-online.de>"]
build = false
include = [
"/src",
"README.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Compile and run Rust on GPUs easily"
readme = "README.md"
keywords = [
"amdgpu",
"gpu",
]
categories = ["hardware-support"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/Flakebi/amdgpu-rs/tree/main/gpu-kernel"
[features]
amd = [
"dep:hip-runtime-sys",
"dep:amdgpu-device-libs",
"gpu-kernel-proc-macros/amd",
]
amd-allocator = ["amd"]
default = [
"amd",
"amd-allocator",
]
[lib]
name = "gpu_kernel"
path = "src/lib.rs"
[dependencies.gpu-kernel-proc-macros]
version = "0.1"
[target.'cfg(not(any(target_arch = "amdgpu", target_arch = "nvptx64")))'.dependencies.hip-runtime-sys]
version = "0.1"
optional = true
[target.'cfg(target_arch = "amdgpu")'.dependencies.amdgpu-device-libs]
version = "0.2"
optional = true