Function validate_execution_context

Source
pub async fn validate_execution_context() -> Result<(), Error>
Expand description

Utility to validate execution context.

Remote Execution environments do not always have access to the nvidia_peermem module and/or set the PeerMappingOverride parameter due to security. This function can be used to validate that the execution context when running operations that need this functionality (ie. cudaHostRegisterIoMemory).

ยงReturns

  • Ok(()) if the execution context is valid
  • Err(anyhow::Error) if the execution context is invalid