cubecl-cpu 0.11.0

CPU runtime for CubeCL
# 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 = "cubecl-cpu"
version = "0.11.0"
authors = ["marcantoinem <marc-antoine.m@outlook.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "CPU runtime for CubeCL"
readme = "README.md"
keywords = ["cpu"]
categories = ["science"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/tracel-ai/cubecl/tree/main/crates/cubecl-cpu"
resolver = "2"

[features]
default = [
    "std",
    "cubecl-server/default",
    "cubecl-common/default",
    "cubecl-core/default",
    "cubecl-llvm/default",
]
persistence = ["cubecl-server/persistence"]
pliron-dump = ["cubecl-llvm/pliron-dump"]
std = [
    "cubecl-server/std",
    "cubecl-common/std",
    "cubecl-core/std",
    "cubecl-llvm/std",
]
tracing = [
    "cubecl-server/tracing",
    "cubecl-common/tracing",
    "cubecl-core/tracing",
    "cubecl-llvm/tracing",
]

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

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

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

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

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

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

[dependencies.bytemuck]
version = "1.16.1"

[dependencies.crossbeam-utils]
version = "0.8.21"

[dependencies.cubecl-common]
version = "0.11.0"
features = ["std"]
default-features = false

[dependencies.cubecl-core]
version = "0.11.0"
features = ["std"]
default-features = false

[dependencies.cubecl-environment]
version = "0.11.0"
default-features = false

[dependencies.cubecl-llvm]
version = "0.11.0"
default-features = false

[dependencies.cubecl-server]
version = "0.11.0"
features = [
    "std",
    "storage-bytes",
]
default-features = false

[dependencies.cubecl-std]
version = "0.11.0"
default-features = false

[dependencies.derive-new]
version = "0.7.0"
default-features = false

[dependencies.log]
version = "^0.4.22"
default-features = false

[dependencies.pliron]
version = "0.19"
features = ["std"]
default-features = false

[dependencies.spin]
version = "0.12.2"
features = [
    "mutex",
    "spin_mutex",
    "lazylock",
    "mutex",
    "spin_mutex",
]

[dependencies.sysinfo]
version = "0.39"

[dev-dependencies.cubecl-core]
version = "0.11.0"
features = ["export_tests"]

[dev-dependencies.cubecl-std]
version = "0.11.0"
features = ["export_tests"]

[dev-dependencies.half]
version = "2.5"
features = [
    "alloc",
    "num-traits",
    "serde",
]
default-features = false

[dev-dependencies.paste]
version = "1"

[dev-dependencies.test-log]
version = "^0.2"
features = ["trace"]
default-features = false

[target.'cfg(any(target_os = "android", target_os = "linux", target_os = "macos", target_os = "freebsd"))'.dependencies.libc]
version = "^0.2.186"

[target.'cfg(target_os = "windows")'.dependencies.bytemuck]
version = "1.16.1"

[target.'cfg(target_os = "windows")'.dependencies.winapi]
version = "^0.3.9"
features = [
    "processthreadsapi",
    "processtopologyapi",
    "sysinfoapi",
    "winbase",
]

[lints.clippy]
doc_markdown = "warn"
redundant_field_names = "allow"

[lints.rust]
warnings = "warn"

[lints.rustdoc]
broken_intra_doc_links = "warn"
invalid_html_tags = "warn"