Struct Target

Source
pub struct Target {
Show 21 fields pub name: String, pub build_lists: Vec<String>, pub eb_optarch: Option<String>, pub max_parallel: Option<u32>, pub cuda_compute_capabilities: Option<String>, pub cpu_target: Option<String>, pub accel_target: Option<String>, pub site_prefix: Option<String>, pub software_root: Option<String>, pub modules_root: Option<String>, pub staged: Option<bool>, pub ledger_config: Option<String>, pub default: bool, pub phases: Option<PhaseArgs>, pub route: Option<Route>, pub select: Option<Select>, pub hardware: Option<Hardware>, pub cpu_hardware: Option<Hardware>, pub fetch_profile: Option<Table>, pub package_env: BTreeMap<String, BTreeMap<String, String>>, pub build_types: BTreeMap<String, BuildTypeOverride>,
}
Expand description

One node type.

Fields§

§name: String

Target name; unique across the file.

§build_lists: Vec<String>

Names of build list files that belong to this target; checked against --lists-dir.

§eb_optarch: Option<String>

EASYBUILD_OPTARCH.

§max_parallel: Option<u32>

EASYBUILD_MAX_PARALLEL.

§cuda_compute_capabilities: Option<String>

EASYBUILD_CUDA_COMPUTE_CAPABILITIES.

§cpu_target: Option<String>

CPU software subdirectory in EESSI form (x86_64/amd/zen4, aarch64/neoverse_v1), exported through modules.eessi.cpu_override_var.

§accel_target: Option<String>

Accelerator subdirectory in EESSI form (accel/nvidia/cc90, accel/amd/gfx90a), exported through modules.eessi.accel_override_var; empty means none.

§site_prefix: Option<String>

Install prefix of the target; EASYBUILD_INSTALLPATH and EESSI_SITE_SOFTWARE_PREFIX. Falls back to filesystems.install_root. With modules.eessi.site_install, EESSI-extend replaces EASYBUILD_INSTALLPATH when it loads; explain shows its path as install_note.

§software_root: Option<String>

Live software root of the target; passed to eb-staged-rebuild --software. Required for staged rebuilds with modules.eessi.site_install: the software directory under the EESSI-extend install path.

§modules_root: Option<String>

Live modules root of the target; passed to eb-staged-rebuild --modules and searched for installed modules at <modules_root>/all/<Name>/<version>[.lua]. Required for staged rebuilds with modules.eessi.site_install: the modules directory under the EESSI-extend install path.

§staged: Option<bool>

Overrides rebuild.staged for this target.

§ledger_config: Option<String>

Overrides rebuild.ledger_config for this target. A ledger configuration names one target, so two targets that take staged rebuilds cannot share one.

§default: bool

Marks the default target of the site; informational.

§phases: Option<PhaseArgs>

Overrides of [phase_defaults] for this target.

§route: Option<Route>

CPU phase wrapper.

§select: Option<Select>

Per-line target selection; without it every line is planned for every target.

§hardware: Option<Hardware>

Hardware identity of the target’s build nodes; exported only when cpu_hardware is set.

§cpu_hardware: Option<Hardware>

Hardware identity of the nodes that build CPU-role units. When set, the source prefetch and build commands of each line export a class as EB_PIPELINE_HW_VENDOR_ID, EB_PIPELINE_HW_CPU_FAMILY and EB_PIPELINE_HW_MODEL: cpu_hardware for a line of a CPU-role unit, hardware for the rest. No other command exports them.

§fetch_profile: Option<Table>

Free-form table passed to source prefetch commands as EB_PIPELINE_FETCH_PROFILE, serialised as JSON with sorted keys.

§package_env: BTreeMap<String, BTreeMap<String, String>>

Environment per package name for this target, [targets.package_env.<Name>]; per key it wins over modules.package_env.

§build_types: BTreeMap<String, BuildTypeOverride>

Per build type overrides, [targets.build_types.<name>].

Implementations§

Source§

impl Target

Source

pub const FIELDS: &'static [FieldDoc]

The documentation of every key of this table, in declaration order.

Trait Implementations§

Source§

impl Clone for Target

Source§

fn clone(&self) -> Target

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Target

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Target

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for Target

Source§

fn eq(&self, other: &Target) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for Target

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for Target

Auto Trait Implementations§

§

impl Freeze for Target

§

impl RefUnwindSafe for Target

§

impl Send for Target

§

impl Sync for Target

§

impl Unpin for Target

§

impl UnwindSafe for Target

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,