monolish  0.14.0
MONOlithic LIner equation Solvers for Highly-parallel architecture
system_util.cpp
Go to the documentation of this file.
1 #include "../../../include/monolish_blas.hpp"
2 #include "../../internal/monolish_internal.hpp"
3 
4 namespace monolish {
5 
7 #if MONOLISH_USE_AVX
8  return true;
9 #else
10  return false;
11 #endif
12 }
13 
15 #if MONOLISH_USE_AVX2
16  return true;
17 #else
18  return false;
19 #endif
20 }
21 
23 #if MONOLISH_USE_AVX512
24  return true;
25 #else
26  return false;
27 #endif
28 }
29 
31 #if MONOLISH_USE_GPU
32  return true;
33 #else
34  return false;
35 #endif
36 }
37 
39 #if MONOLISH_USE_MKL
40  return true;
41 #else
42  return false;
43 #endif
44 }
45 
47 #if MONOLISH_USE_LAPACK
48  return true;
49 #else
50  return false;
51 #endif
52 }
53 
55 #if MONOLISH_USE_MKL
56  return false;
57 #else
58  return true;
59 #endif
60 }
61 
62 } // namespace monolish
monolish::util::build_with_avx
bool build_with_avx()
get build option (true: with avx, false: without avx)
Definition: system_util.cpp:6
monolish::util::build_with_gpu
bool build_with_gpu()
get build option (true: enable gpu, false: disable gpu)
Definition: system_util.cpp:30
monolish::util::build_with_cblas
bool build_with_cblas()
get build option (true: with cblas, false: without cblas (=with intel mkl))
Definition: system_util.cpp:54
monolish::util::build_with_lapack
bool build_with_lapack()
get build option (true: with lapack, false: without lapack (=with intel mkl))
Definition: system_util.cpp:46
monolish
Definition: monolish_matrix_blas.hpp:9
monolish::util::build_with_avx2
bool build_with_avx2()
get build option (true: with avx2, false: without avx2)
Definition: system_util.cpp:14
monolish::util::build_with_avx512
bool build_with_avx512()
get build option (true: with avx512, false: without avx512)
Definition: system_util.cpp:22
monolish::util::build_with_mkl
bool build_with_mkl()
get build option (true: with intel mkl, false: without intel mkl)
Definition: system_util.cpp:38