|
Mila 0.13.48
Deep Neural Network Library
|
Class representing a Vulkan compute device instance. More...


Public Member Functions | |
| VulkanDevice (int device_index) | |
| Constructs a VulkanDevice with specified device index. | |
| constexpr int | getDeviceId () const override |
| Gets the Vulkan device index. | |
| size_t | getDeviceMemorySize () const noexcept |
| Returns an approximate available device memory in bytes. | |
| std::string | getDeviceName () const override |
| Gets the name of this Vulkan device. | |
| constexpr DeviceType | getDeviceType () const override |
| Gets the type of this compute device. | |
| size_t | getMaxWorkGroupSize () const noexcept |
| Returns an approximate maximum workgroup size. | |
| void * | getNativeHandle () const noexcept |
| Returns an opaque native handle placeholder. | |
| bool | isDiscreteGpu () const noexcept |
| Queries whether device is likely discrete. | |
Static Private Member Functions | |
| static int | validateDeviceIndex (int idx) |
Private Attributes | |
| int | device_index_ |
| std::string | device_name_ |
Class representing a Vulkan compute device instance.
This class is a minimal, type-safe representation of a Vulkan device that can be used by higher-level device registration and execution context code before full Vulkan runtime integration is implemented.
|
inlineexplicit |
Constructs a VulkanDevice with specified device index.
| device_index | The Vulkan device index to initialize (0-based). |
| std::invalid_argument | If device_index is negative. |

|
inlineconstexproverride |
Gets the Vulkan device index.
|
inlinenoexcept |
Returns an approximate available device memory in bytes.
Placeholder: returns 0 until integrated with Vulkan memory queries.
|
inlineoverride |
Gets the name of this Vulkan device.
|
inlineconstexproverride |
Gets the type of this compute device.
|
inlinenoexcept |
Returns an approximate maximum workgroup size.
Placeholder value; real value should come from physical device limits.
|
inlinenoexcept |
Returns an opaque native handle placeholder.
In a full implementation this would return a pointer to the underlying VkPhysicalDevice or a small wrapper. Returns nullptr until Vulkan integration is added.
|
inlinenoexcept |
Queries whether device is likely discrete.
Placeholder: returns false until real discovery is implemented.
|
inlinestaticnodiscardprivate |

|
private |
|
private |