Project-HAMi / HAMi-core

HAMi-core compiles libvgpu.so, which ensures hard limit on GPU in container
72 stars 37 forks source link

image usage #21

Open A-transformer opened 2 weeks ago

A-transformer commented 2 weeks ago

"After building the Docker image, we copy the build package into the target image. Does this mean that only our contain build package image will support the following features? on export CUDA_DEVICE_MEMORY_LIMIT=1g export CUDA_DEVICE_SM_LIMIT=50

archlitchi commented 6 days ago

actually, the output of build is 'libvgpu.so', you can mount that '.so' into any container with LD_PRELOAD set, and it will support things like

export CUDA_DEVICE_MEMORY_LIMIT=1g
export CUDA_DEVICE_SM_LIMIT=50