灵符lingfu

ling-lang

↓ 0 downloads

Ling - The Omniglot Systems Language

Keywords systems, polyglot, ai, crypto, game
lingfu install ling-lang
LicenseApache-2.0 OR MIT
AuthorsLing Lin, Sanny Lin
READMECode / FilesVersionsDependency GraphDependentsSecurityBuildsSettings

Code / Files (995)

crates/ling-gpu/Cargo.toml
[package]
name = "ling-gpu"
version = "2030.0.10"
edition = "2021"
authors = ["Ling Lin <taellinglin@gmail.com>"]
description = "GPU compute backend for Ling (CUDA via cudarc, with a portable CPU fallback)"
license = "Apache-2.0 OR MIT"
readme = "README.md"
repository = "https://github.com/taellinglin/ling"

[features]
default = []
# Enable the CUDA backend (NVIDIA only). Requires the CUDA toolkit/driver at
# runtime; kernels are compiled on the fly with NVRTC. Off by default so the
# regular build is pure-Rust and runs everywhere.
cuda = ["dep:cudarc"]

[dependencies]
# Data-parallel CPU fallback: rayon spreads the N-body / projection loops across
# every core so the no-GPU path (and small workloads) still saturate the machine.
rayon = "1.10"
# Optional: pulled in only with `--features cuda`. `dynamic-loading` means we
# bind the CUDA driver at runtime, so the crate still *compiles* on machines
# without a toolkit (detection simply returns None → CPU fallback).
# `cuda-12060` pins the API surface; with `dynamic-linking` the real driver
# (e.g. 12.8) is loaded at runtime, so a newer toolkit works against the 12.6 API.
# Bump this when cudarc adds your exact CUDA version.
cudarc = { version = "0.12", optional = true, default-features = false, features = ["driver", "nvrtc", "dynamic-linking", "cuda-12060"] }

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

← Back to index