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
16 lines
476 B
Rust
16 lines
476 B
Rust
use std::env;
|
|
|
|
fn main() {
|
|
println!("cargo:rerun-if-changed=src/lib.cpp");
|
|
println!("cargo:rerun-if-changed=src/lib.rs");
|
|
let llvm_cxxflags = env::var("DEP_LLVM_15_CXXFLAGS").unwrap();
|
|
let mut cc = cc::Build::new();
|
|
for flag in llvm_cxxflags.split_ascii_whitespace() {
|
|
cc.flag(flag);
|
|
}
|
|
cc.shared_flag(true)
|
|
.file("src/lib.cpp")
|
|
.compile("llvm_zluda_cpp");
|
|
// rustc-link-lib and rustc-link-search are already set by cc
|
|
}
|