Thrust
Magic Enum C++
Our great sponsors
Thrust | Magic Enum C++ | |
---|---|---|
4 | 44 | |
4,839 | 4,390 | |
- | - | |
6.9 | 8.4 | |
3 months ago | 9 days ago | |
C++ | C++ | |
GNU General Public License v3.0 or later | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Thrust
-
AMD's CDNA 3 Compute Architecture
this is frankly starting to sound a lot like the ridiculous "blue bubbles" discourse.
AMD's products have generally failed to catch traction because their implementations are halfassed and buggy and incomplete (despite promising more features, these are often paper features or career-oriented development from now-departed developers). all of the same "developer B" stuff from openGL really applies to openCL as well.
http://richg42.blogspot.com/2014/05/the-truth-on-opengl-driv...
AMD has left a trail of abandoned code and disappointed developers in their wake. These two repos are the same thing for AMD's ecosystem and NVIDIA's ecosystem, how do you think the support story compares?
https://github.com/HSA-Libraries/Bolt
https://github.com/NVIDIA/thrust
in the last few years they have (once again) dumped everything and started over, ROCm supported essentially no consumer cards and rotated support rapidly even in the CDNA world. It offers no binary compatibility support story, it has to be compiled for specific chips within a generation, not even just "RDNA3" but "Navi 31 specifically". Etc etc. And nobody with consumer cards could access it until like, six months ago, and that still is only on windows, consumer cards are not even supported on linux (!).
https://geohot.github.io/blog/jekyll/update/2023/06/07/a-div...
This is on top of the actual problems that still remain, as geohot found out. Installing ROCm is a several-hour process that will involve debugging the platform just to get it to install, and then you will probably find that the actual code demos segfault when you run them.
AMD's development processes are not really open, and actual development is silo'd inside the company with quarterly code dumps outside. The current code is not guaranteed to run on the actual driver itself, they do not test it even in the supported configurations.
it hasn't got traction because it's a low-quality product and nobody can even access it and run it anyway.
-
Parallel Computations in C++: Where Do I Begin?
For a higher level GPU interface, Thrust provides "standard library"-like functions that run in parallel on the GPU (Nvidia only)
-
What are some cool modern libraries you enjoy using?
For GPGPU, I like thrust. C++-idiomatic way of writing CUDA code, passing between host and device, etc.
-
A vision of a multi-threaded Emacs
Users should work with higher level primitives like tasks, parallel loops, asynchronous functions etc. Think TBB, Thrust, Taskflow, lparallel for CL, etc.
Magic Enum C++
-
What C++ library do you wish existed but hasn’t been created yet?
I'm not sure this is quite what you're asking for, but this library has been super helpful to me in the past : https://github.com/Neargye/magic_enum
- Usable Magic Enums for C++
-
Fully Permissive License C++ Logger For Embedded System
Also, a shoutout to Magic Enum: https://github.com/Neargye/magic_enum
- Favorite Ways of Stringifying Enums
-
enum_name (yet another enum to/from string conversion utility >=C++11)
What does this have to offer over magic_enum?
-
quill v2.7.0 released - Asynchronous Low Latency C++ Logging Library
But it's a hack, and I prefer not to use hacks in production, because of their significant limitations:
-
Enums print numbers instead of words
You can either write a to string(view) function for your enum or use https://github.com/Neargye/magic_enum
-
Enums with methods
Why reinvent the wheel? magic_enum
-
Error: Boost bimap can't convert const CompatibleKey to Key&
Also if you want to convert enum members to string representation I suggest you just use magic_enum instead, much smaller dependency.
-
Macro to write enum and converter from and to string
Magic Enum provides that.
What are some alternatives?
CUB - THIS REPOSITORY HAS MOVED TO github.com/nvidia/cub, WHICH IS AUTOMATICALLY MIRRORED HERE.
Nameof C++ - Nameof operator for modern C++, simply obtain the name of a variable, type, function, macro, and enum
ArrayFire - ArrayFire: a general purpose GPU library.
Protobuf - Protocol Buffers - Google's data interchange format
Boost.Compute - A C++ GPU Computing Library for OpenCL
cereal - A C++11 library for serialization
HPX - The C++ Standard Library for Parallelism and Concurrency
Boost.Serialization - Boost.org serialization module
moodycamel - A fast multi-producer, multi-consumer lock-free concurrent queue for C++11
FlatBuffers - FlatBuffers: Memory Efficient Serialization Library
Taskflow - A General-purpose Parallel and Heterogeneous Task Programming System
pfr - std::tuple like methods for user defined types without any macro or boilerplate code