complete ai kerne frame code

This commit is contained in:
Liu Zhicong
2023-08-20 22:53:35 -07:00
parent 6b39379d7c
commit 814f5cf481
21 changed files with 725 additions and 20 deletions
+29
View File
@@ -0,0 +1,29 @@
from compute_node import compute_node
from abc import ABC, abstractmethod
# How to dispatch different computing tasks (some tasks may contain a large amount of state for correct execution)
# to suitable computing nodes, achieving a balance of speed, cost, and power consumption,
# is the CORE GOAL of the entire computing task schedule system (aios_kernel).
class compute_task(ABC):
@abstractmethod
def display(self) -> str:
pass
class compute_kernel:
def __init__(self) -> None:
pass
def run(self,task:compute_task) -> None:
# check there is compute node can support this task
# add task to working_queue
pass
def start(self):
pass
def add_compute_node(self,node:compute_node):
pass
def disable_compute_node(self,):
pass