1b9ba2b233
Too many changes to list, but broadly: * Remove Intel GPU support from the compiler * Add AMD GPU support to the compiler * Remove Intel GPU host code * Add AMD GPU host code * More device instructions. From 40 to 68 * More host functions. From 48 to 184 * Add proof of concept implementation of OptiX framework * Add minimal support of cuDNN, cuBLAS, cuSPARSE, cuFFT, NCCL, NVML * Improve ZLUDA launcher for Windows
20 lines
652 B
Rust
20 lines
652 B
Rust
use std::env::VarError;
|
|
use std::{env, path::PathBuf};
|
|
|
|
fn main() -> Result<(), VarError> {
|
|
println!("cargo:rustc-link-lib=dylib=atiadlxx");
|
|
if cfg!(windows) {
|
|
let env = env::var("CARGO_CFG_TARGET_ENV")?;
|
|
if env == "msvc" {
|
|
let mut path = PathBuf::from(env::var("CARGO_MANIFEST_DIR")?);
|
|
path.push("lib");
|
|
println!("cargo:rustc-link-search=native={}", path.display());
|
|
} else {
|
|
println!("cargo:rustc-link-search=native=C:\\Windows\\System32");
|
|
};
|
|
} else {
|
|
println!("cargo:rustc-link-search=native=/opt/rocm/lib/");
|
|
}
|
|
Ok(())
|
|
}
|