Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
EricLBuehler committed Oct 23, 2024
1 parent 137815d commit 44e6312
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions mistralrs-quant/build.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
use std::{fs::read_to_string, process::Command};

#[cfg(feature = "cuda")]
const CUDA_NVCC_FLAGS: Option<&'static str> = option_env!("CUDA_NVCC_FLAGS");
#[cfg(feature = "cuda")]
const MARLIN_FFI_PATH: &str = "src/gptq/marlin_ffi.rs";

fn main() {
#[cfg(feature = "cuda")]
{
use std::{path::PathBuf, vec};
use std::{fs::read_to_string, path::PathBuf, process::Command, vec};
const MARLIN_FFI_PATH: &str = "src/gptq/marlin_ffi.rs";
const CUDA_NVCC_FLAGS: Option<&'static str> = option_env!("CUDA_NVCC_FLAGS");

println!("cargo:rerun-if-changed=build.rs");

let compute_cap = {
Expand Down

0 comments on commit 44e6312

Please sign in to comment.