Struct openblas_build::Configure
source · pub struct Configure {
pub no_static: bool,
pub no_shared: bool,
pub no_cblas: bool,
pub no_lapack: bool,
pub no_lapacke: bool,
pub use_thread: bool,
pub use_openmp: bool,
pub dynamic_arch: bool,
pub interface: Interface,
pub target: Option<Target>,
}
Expand description
make option generator
Fields§
§no_static: bool
§no_cblas: bool
§no_lapack: bool
§no_lapacke: bool
§use_thread: bool
§use_openmp: bool
§dynamic_arch: bool
§interface: Interface
§target: Option<Target>
Implementations§
source§impl Configure
impl Configure
sourcepub fn inspect(&self, out_dir: impl AsRef<Path>) -> Result<Deliverables, Error>
pub fn inspect(&self, out_dir: impl AsRef<Path>) -> Result<Deliverables, Error>
Inspect existing build deliverables, and validate them.
§Error
- No build deliverables exist
- Build deliverables are not valid
- e.g.
self.no_lapack == false
, but the existing library does not contains LAPACK symbols.
- e.g.
sourcepub fn build(
self,
openblas_root: impl AsRef<Path>,
out_dir: impl AsRef<Path>
) -> Result<Deliverables, Error>
pub fn build( self, openblas_root: impl AsRef<Path>, out_dir: impl AsRef<Path> ) -> Result<Deliverables, Error>
Build OpenBLAS
Libraries are created directly under out_dir
e.g. out_dir/libopenblas.a
§Error
- Build deliverables are invalid same as [inspect].
This means that the system environment is not appropriate to execute
make
, e.g. LAPACK is required but there is no Fortran compiler.
Trait Implementations§
source§impl PartialEq for Configure
impl PartialEq for Configure
impl Eq for Configure
impl StructuralPartialEq for Configure
Auto Trait Implementations§
impl RefUnwindSafe for Configure
impl Send for Configure
impl Sync for Configure
impl Unpin for Configure
impl UnwindSafe for Configure
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more