mirror of
https://github.com/sgjzfzzf/triton-tvm-ffi.git
synced 2026-07-01 08:51:56 +08:00
support GetDeviceProperties
Signed-off-by: Jinjie Liu <jjliu@baai.ac.cn>
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import Type
|
||||
from typing import Mapping, Type
|
||||
from triton.backends.nvidia.driver import CudaDriver
|
||||
from .utils import get_device_properties
|
||||
|
||||
|
||||
class TVMFFIUtils(object):
|
||||
@@ -19,8 +20,8 @@ class TVMFFIUtils(object):
|
||||
def load_binary(self, *args, **kwargs):
|
||||
return self._utils.load_binary(*args, **kwargs)
|
||||
|
||||
def get_device_properties(self, *args, **kwargs):
|
||||
return self._utils.get_device_properties(*args, **kwargs)
|
||||
def get_device_properties(self, device_id: int) -> Mapping[str, int]:
|
||||
return get_device_properties(device_id)
|
||||
|
||||
def cuOccupancyMaxActiveClusters(self, *args, **kwargs):
|
||||
return self._utils.cuOccupancyMaxActiveClusters(*args, **kwargs)
|
||||
|
||||
Reference in New Issue
Block a user