Enum futhark_bindgen::Backend
source · pub enum Backend {
C,
CUDA,
OpenCL,
Multicore,
ISPC,
HIP,
}
Expand description
Backend
is used to select a backend when running the futhark
executable
Variants§
C
Sequential C backend: futhark c
Requires a C compiler
CUDA
CUDA backend: futhark cuda
Requires the CUDA runtime and a C compiler
OpenCL
OpenCL backend: futhark opencl
Requires OpenCL and a C compiler
Multicore
Multicore C backend: futhark multicore
Requires a C compiler
ISPC
ISPC backend: futhark ispc
Requires the ispc
compiler in your $PATH
and a C compiler
HIP
HIP backend: futhark hip
Requires a C compiler
Implementations§
source§impl Backend
impl Backend
sourcepub fn from_name(name: &str) -> Option<Backend>
pub fn from_name(name: &str) -> Option<Backend>
Return the backend specified by the given name if valid
sourcepub fn from_env() -> Option<Backend>
pub fn from_env() -> Option<Backend>
Get the backend from the FUTHARK_BACKEND
environment variable
sourcepub fn required_c_libs(&self) -> &'static [&'static str]
pub fn required_c_libs(&self) -> &'static [&'static str]
Returns the C libraries that need to be linked for a backend
Trait Implementations§
source§impl<'de> Deserialize<'de> for Backend
impl<'de> Deserialize<'de> for Backend
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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 Backend
impl PartialEq for Backend
impl Copy for Backend
impl Eq for Backend
impl StructuralPartialEq for Backend
Auto Trait Implementations§
impl RefUnwindSafe for Backend
impl Send for Backend
impl Sync for Backend
impl Unpin for Backend
impl UnwindSafe for Backend
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