- New crate vetta-infer-hip: HIP FFI/DMA backend (unsafe isolated here per AGENTS.md). Kernel build is feature-gated (`hip`, default OFF) so `cargo test --workspace` stays host-independent (97/97, no toolchain). build.rs invokes hipcc --offload-arch=gfx1150, archives libvetta_kernels.a, links amdhip64 from ROCM_PATH/lib. - kernels/hip/vetta_kernels.hip: device query, minimal device-buffer lifecycle (alloc/free/h2d/d2h, RAII DeviceBuf), and the first microkernel k_rms_norm_f32 (one block/row, shared-mem reduction). C ABI extended in vetta_kernels.h. - Safe wrappers: query_device, DeviceBuf, rms_norm_f32. Verified LIVE on Sogliola (cargo test -p vetta-infer-hip --features hip -- --ignored): device = AMD Radeon 890M Graphics gfx1150 CU=8 UMA=true; rms_norm parity vs CPU oracle max_rel_err ~1.3e-6 across rows 1/4/3/2 and d 2304/128/1024 (tolerance 1e-4). First GPU compute verified end-to-end: hipcc -> static lib -> FFI -> launch -> parity. This opens the GPU execution half (executor + remaining kernels toward the first served token).
27 lines
522 B
TOML
27 lines
522 B
TOML
[workspace]
|
|
resolver = "3"
|
|
members = [
|
|
"crates/vetta-infer-abi",
|
|
"crates/vetta-infer-hip",
|
|
"crates/vetta-infer-kn",
|
|
"crates/vetta-infer-ld",
|
|
"crates/vetta-infer-cc",
|
|
"crates/vetta-infer-rt",
|
|
"crates/vetta-infer-lab",
|
|
"crates/vetta-infer-sp",
|
|
"crates/vetta-infer-nt",
|
|
"crates/vetta-infer-tm",
|
|
"crates/vetta-infer-gw",
|
|
]
|
|
|
|
[workspace.package]
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
license = "MIT"
|
|
authors = ["Federico"]
|
|
|
|
[profile.release]
|
|
opt-level = 3
|
|
lto = "thin"
|
|
codegen-units = 1
|