pub struct Compiler { /* private fields */ }Expand description
Wrapper around the Futhark compiler
Implementations§
Source§impl Compiler
impl Compiler
Sourcepub fn new(backend: Backend, src: impl AsRef<Path>) -> Compiler
pub fn new(backend: Backend, src: impl AsRef<Path>) -> Compiler
Create a new Compiler instance with the selected backend and Futhark source file
Sourcepub fn with_executable_name(self, name: impl AsRef<str>) -> Self
pub fn with_executable_name(self, name: impl AsRef<str>) -> Self
By default the executable name is set to futhark, this function can be
used to set a different name or path
Sourcepub fn with_extra_args(self, args: Vec<String>) -> Self
pub fn with_extra_args(self, args: Vec<String>) -> Self
Supply additional arguments to be passed to the futhark executable
Sourcepub fn with_output_dir(self, dir: impl AsRef<Path>) -> Self
pub fn with_output_dir(self, dir: impl AsRef<Path>) -> Self
Set the output directory where the C files and manifest will be created
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Compiler
impl RefUnwindSafe for Compiler
impl Send for Compiler
impl Sync for Compiler
impl Unpin for Compiler
impl UnwindSafe for Compiler
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