Mila 0.13.48
Deep Neural Network Library
Loading...
Searching...
No Matches
ExecutionContext.ixx File Reference

Templated execution context framework for compute operations and stream management. More...

#include <cassert>
#include <string>
#include <stdexcept>
import Compute.DeviceId;
import Compute.ExecutionContext:Cpu;
import Compute.DeviceType;
import Compute.IExecutionContext;
import Compute.ExecutionContextTemplate;

Namespaces

namespace  Mila
 Mila main API namespace.
namespace  Mila::Dnn
namespace  Mila::Dnn::Compute

Functions

template<DeviceType TDeviceType>
const ExecutionContext< TDeviceType > * Mila::Dnn::Compute::cast_context_ (const IExecutionContext *ctx) noexcept
template<DeviceType TDeviceType>
ExecutionContext< TDeviceType > * Mila::Dnn::Compute::cast_context_ (IExecutionContext *ctx) noexcept
template<DeviceType TDeviceType>
ExecutionContext< TDeviceType > * Mila::Dnn::Compute::validateExecutionContext_ (IExecutionContext *context, const std::string &op_name)

Detailed Description

Templated execution context framework for compute operations and stream management.

ExecutionContext provides the interface for managing execution streams, synchronization, and compute library handles across different hardware platforms. The template parameter provides compile-time device type safety and eliminates runtime dispatch overhead.