//! Moved out of the parent module by STRA-338: impl AsyncApi, impl MappedApi, fn page_size. #[allow(unused_imports)] use super::*; #[cfg(not(all( feature = "cuda-driver", any(target_os = "linux", target_os = "windows"), target_pointer_width = "64" )))] impl AsyncApi { pub(crate) fn load() -> Result { Err(Error::UnsupportedPlatform) } pub(crate) fn create_stream(&self) -> Result { Err(Error::UnsupportedPlatform) } pub(crate) fn create_event(&self) -> Result { Err(Error::UnsupportedPlatform) } pub(crate) fn register(&self, _: &mut [u8]) -> Result<()> { Err(Error::UnsupportedPlatform) } pub(crate) fn unregister(&self, _: &mut [u8]) -> Result<()> { Err(Error::UnsupportedPlatform) } pub(crate) fn copy(&self, _: u64, _: &[u8], stream: Stream) -> Result<()> { let _ = stream.0; Err(Error::UnsupportedPlatform) } pub(crate) fn synchronize_stream(&self, _: Stream) -> Result<()> { Err(Error::UnsupportedPlatform) } pub(crate) fn zero(&self, _: u64, _: usize) -> Result<()> { Err(Error::UnsupportedPlatform) } pub(crate) fn record(&self, event: Event, stream: Stream) -> Result<()> { let _ = (event.0, stream.0); Err(Error::UnsupportedPlatform) } pub(crate) fn query(&self, event: Event) -> Result { let _ = event.0; Err(Error::UnsupportedPlatform) } pub(crate) fn wait(&self, event: Event) -> Result<()> { let _ = event.0; Err(Error::UnsupportedPlatform) } pub(crate) fn destroy_event(&self, event: Event) -> Result<()> { let _ = event.0; Err(Error::UnsupportedPlatform) } pub(crate) fn destroy_stream(&self, stream: Stream) -> Result<()> { let _ = stream.0; Err(Error::UnsupportedPlatform) } pub(crate) fn can_batch(&self) -> bool { false } pub(crate) fn copy_batch(&self, _: &mut crate::refill_batch_copy::BatchCall, _: Stream) -> Result<()> { Err(Error::UnsupportedPlatform) } pub(crate) fn wait_event(&self, _: Stream, _: Event) -> Result<()> { Err(Error::UnsupportedPlatform) } } #[cfg(not(all( feature = "cuda-driver", any(target_os = "linux", target_os = "windows"), target_pointer_width = "64" )))] impl MappedApi { pub(crate) fn load() -> Result { Err(Error::UnsupportedPlatform) } pub(crate) fn register_bank(&self, _: &[u8]) -> Result<()> { Err(Error::UnsupportedPlatform) } pub(crate) fn bank_alias(&self, _: &[u8]) -> Result { Err(Error::UnsupportedPlatform) } pub(crate) fn unregister_bank(&self, _: &[u8]) -> Result<()> { Err(Error::UnsupportedPlatform) } pub(crate) fn register_read_only(&self, _: usize, _: usize) -> Result<()> { Err(Error::UnsupportedPlatform) } pub(crate) fn unregister_at(&self, _: usize) -> Result<()> { Err(Error::UnsupportedPlatform) } pub(crate) fn register_staging(&self, _: usize, _: usize) -> Result<()> { Err(Error::UnsupportedPlatform) } pub(crate) fn copy_kernel(&self, _: &mut MappedCopyArguments, _: Stream) -> Result<()> { Err(Error::UnsupportedPlatform) } pub(crate) fn stream(&self) -> Result { Err(Error::UnsupportedPlatform) } pub(crate) fn event(&self) -> Result { Err(Error::UnsupportedPlatform) } pub(crate) fn record(&self, _: Event, _: Stream) -> Result<()> { Err(Error::UnsupportedPlatform) } pub(crate) fn query(&self, _: Event) -> Result { Err(Error::UnsupportedPlatform) } pub(crate) fn wait(&self, _: Event) -> Result<()> { Err(Error::UnsupportedPlatform) } pub(crate) fn destroy_event(&self, _: Event) -> Result<()> { Err(Error::UnsupportedPlatform) } pub(crate) fn destroy_stream(&self, _: Stream) -> Result<()> { Err(Error::UnsupportedPlatform) } pub(crate) fn close(&mut self) -> Result<()> { Err(Error::UnsupportedPlatform) } } #[cfg(not(all( feature = "cuda-driver", any(target_os = "linux", target_os = "windows"), target_pointer_width = "64" )))] pub(crate) fn page_size() -> Result { Err(Error::UnsupportedPlatform) }