Skip to content

mYmNeo/nv-resource-controller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nv-resource-controller

Since NVIDIA has released its GPU kernel modules. Sharing GPU between different containers has a easier way than before. The project is still base on GaiaGPU: Sharing GPUs in Container Clouds

Build

mkdir -p build
cd build && cmake ..
make

How to use it

  1. set LD_PRELOAD environemnt

export LD_PRELOAD=libcuda_hook.so

1.1 for gpu memory limitation:

export CUDA_MEM_LIMIT=<device index>=<memory limitation>

1.2 for sm utilization limitation:

export CUDA_CORE_LIMIT=<device index>=<core limitation>

If you have sm utilization limit enabled, you must start a server_monitor to control the utilization ./server_monitor <device idx> <cgroup id> <core limit>

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published