r/cpp • • Feb 22 '26

Libraries and tools for a lightweight task manager for GPU in a simulated environment.

TLDR: I am trying to create what I could refer to as a lightweight task manager for GPU cloud systems but in a simulated environment.

I need to be able to create and decide scheduling policies for the workloads I will assign to the system. I also need to be able to monitor GPU processes as well as VRAM usage for each of the given workloads, and the software needs to be able to act as admission control so I can prevent Out-of-memory errors by throttling workloads which are intensive.

Essentially, I am trying to make something that simulates NVIDIA MIG and uses NVIDIA SMI or any other process to monitor these in a simulated environment. ( I do not possess a graphics card with NVIDIA MIG capabilities, but it has NVIDIA SMI )

So far the resources I have to put something like this together is

  • CUDA
  • I need a library for simulation of the GPU at code level.
  • Need something like tensor flow but with C++
  • Need a lightweight GUI library that isn't QT.

Considering this is a lightweight application and only meant to demonstrate the elements that go into consideration when making GPU-accelerated systems are there any librarie,s articles or books that would be helpful in making this feasible?

Also considering I am not so experienced in C++ is this a feasible project or is it better to stick with python? I am fully open to learning what is needed but I am on a time constraint of about 3 months give or take.

P.S I have gone through the theoretical aspect and about 30+ articles and papers on the theory issues and problems. I just need practical pointers to libraries, tools and code that would help in the actual building.

5 Upvotes

3 comments sorted by

0

u/[deleted] Feb 25 '26

[deleted] — view deleted comment

1

u/_Vlyn_ Feb 28 '26

Thank you very much, can't believe I missed this.
I basically decided to go with python just so I can get the full functionality up and running.
I am currently going with :

nvidia-ml-py for GPU monitoring ( I think nvidia-smi uses NVML under the hood so I have the same functionality here )

SimPy for scheduling simulation ( I realy done know how else to implement the logical partitioning and VRAM slices so pointers would be appreciated as well )

Dear ImGUI ( Just to display a dashboard and the data, While using a webpage might be easier for me to make I think a system GUI meets the requirements tbh )

PyTorch ( To create and execute the workloads )

I hope this stack works and would be open to corrections or pointers.

1

u/[deleted] Feb 23 '26

[removed] — view removed comment

1

u/_Vlyn_ Feb 23 '26

Yeah moc-ing it would be fine no doubt, question is what libraries would I use to tie these functionalities together? Especially with the fact that I want to keep things lightweight.