跳转到文档内容
版本:v1.3.0

HAMi-core design

Introduction

HAMi-core is a hook library for CUDA environment, it is the in-container gpu resource controller, it has been adopted by HAMi, volcano

HAMi-core 架构图,显示 GPU 资源控制器设计

Features

HAMi-core has the following features:

  1. Virtualize device memory

    nvidia-smi 输出示例,显示 HAMi-core 虚拟化后的 GPU 内存

  2. Limit device utilization by self-implemented time shard

  3. Real-time device utilization monitor

Design

HAMi-core operates by Hijacking the API-call between CUDA-Runtime(libcudart.so) and CUDA-Driver(libcuda.so), as the figure below:

HAMi-core 位置图,显示 CUDA Runtime 和 Driver 之间的 API 调用拦截

CNCFHAMi 是 CNCF Sandbox 项目