e2fab622b5
GPU-accelerated Equihash 192,7 miner in Rust with three solver backends: - CPU: Wagner's algorithm, AVX2 packed slots (xenoncat-style) - OpenCL: full on-GPU solve (kernels/equihash.cl); runs on NVIDIA and AMD - CUDA: driver-API replay of miniZ's extracted fatbin (src/miniz/) Also includes a default-off pearlhash backend (src/pearl/, native CPU core + NVRTC int8-GEMM GPU kernels) and a WIP Ethash CUDA backend (src/ethash/). Reverse-engineering scratch (alpha-miner, pearl-dump/) and the active runtime config (mine.toml) are gitignored; mine.example.toml is the template. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
9 lines
417 B
Rust
9 lines
417 B
Rust
// Link against the system CUDA driver (libcuda.so -> libcuda.so.1).
|
|
// Falls back to the CUDA toolkit stub if the driver symlink isn't in /usr/lib.
|
|
fn main() {
|
|
println!("cargo:rustc-link-search=native=/usr/lib");
|
|
println!("cargo:rustc-link-search=native=/usr/lib64");
|
|
println!("cargo:rustc-link-search=native=/opt/cuda/targets/x86_64-linux/lib/stubs");
|
|
println!("cargo:rustc-link-lib=dylib=cuda");
|
|
}
|