r/cpp • • Feb 22 '26

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

5 Upvotes

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.


r/cpp • • Feb 21 '26

Implementing your own asynchronous runtime for C++ coroutines

42 Upvotes

Hi all! Last time I wrote a blog post about writing your own C++ coroutines. Now, I wanted to highlight how to write your own C++ asynchronous runtime for your coroutines.

https://rhidian-server.com/how-to-create-your-own-asynchronous-runtime-in-c/

Thanks for reading, and let me know if you have any comments!


r/cpp • • Feb 21 '26

C++26: std::is_within_lifetime

Thumbnail sandordargo.com
95 Upvotes

r/cpp • • Feb 20 '26

BitFields API: Type-Safe Bit Packing for Lock-Free Data Structures

Thumbnail rocksdb.org
21 Upvotes

r/cpp • • Feb 20 '26

Parallel C++ for Scientific Applications: Tasks & Concurrency (2nd Part)

Thumbnail youtube.com
8 Upvotes

In this week’s lecture of Parallel C++ for Scientific Applications, Dr. Hartmut Kaiser continues the discussion on task-based parallelism in C++, specifically focusing on the nuances of asynchronous parallelism. The lecture addresses specific scalability issues inherent in fork-join parallelism and presents unique methods to mitigate them effectively.
A core discussion introduces extensions to standard futures implemented in HPX, a C++ Standard Library for Concurrency and Parallelism. Finally, the lecture demonstrates how these advanced tools can extend standard C++ capabilities, offering practical solutions for building more scalable and responsive high-performance applications.
If you want to keep up with more news from the Stellar group and watch the lectures of Parallel C++ for Scientific Applications and these tutorials a week earlier please follow our page on LinkedIn https://www.linkedin.com/company/ste-ar-group/
Also, you can find our GitHub page below:
https://github.com/STEllAR-GROUP/hpx


r/cpp • • Feb 19 '26

Problems with a weak tryLock operation in C and C++ standards

Thumbnail forums.swift.org
24 Upvotes

r/cpp • • Feb 19 '26

MSVC Build Tools 14.51 Preview released

Thumbnail devblogs.microsoft.com
84 Upvotes

r/cpp • • Feb 19 '26

Learn C++ by Example • Frances Buontempo & Matt Godbolt

Thumbnail youtu.be
28 Upvotes