Skip to content
This repository has been archived by the owner on Dec 18, 2020. It is now read-only.

Commit

Permalink
Override Intel CPU check
Browse files Browse the repository at this point in the history
  • Loading branch information
danieldk committed Sep 20, 2020
1 parent dc59a22 commit 2ada33d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions sticker2-utils/src/util.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
use std::io::BufRead;
use std::os::raw::c_int;

use anyhow::Result;

Expand All @@ -14,3 +15,9 @@ pub fn count_conllu_sentences(buf_read: impl BufRead) -> Result<usize> {

Ok(n_sents)
}

#[allow(dead_code)]
#[no_mangle]
extern "C" fn mkl_serv_intel_cpu_true() -> c_int {
1
}

0 comments on commit 2ada33d

Please sign in to comment.