[Project] Parallax - Universal GPU Acceleration for C++ Parallel Algorithms
Hey r/cpp!
I'm excited to share **Parallax**, an open-source project that brings automatic GPU acceleration to C++ standard parallel algorithms.
# The Idea
Use `std::execution::par` in your code, link with Parallax, and your parallel algorithms run on the GPU. No code changes, no vendor lock-in, works on any GPU with Vulkan support (AMD, NVIDIA, Intel, mobile).
# Example
std::vector<float> data(1'000'000);
std::for_each(std::execution::par, data.begin(), data.end(),
[](float& x) { x *= 2.0f; });
With Parallax, this runs on the GPU automatically. 30-40x speedup on typical workloads.
# Why Vulkan?
* **Universal**: Works on all major GPU vendors
* **Modern**: Actively developed, not deprecated like OpenCL
* **Fast**: Direct compute access, no translation overhead
* **Open**: No vendor lock-in like CUDA/HIP
# Current Status
This is an early MVP (v0.1.0-dev):
* ✅ Vulkan backend (all platforms)
* ✅ Unified memory management
* ✅ macOS (MoltenVK), Linux, Windows
* 🔨 Compiler integration (in progress)
* 🔨 Full algorithm coverage (coming soon)
# Architecture
Built on:
* Vulkan 1.2+ for compute
* C ABI for stability
* LLVM/Clang for future compiler integration
* Lessons learned from vkStdpar
# Looking for Contributors
We need help with:
* LLVM/Clang plugin development
* Algorithm implementations
* Testing on different GPUs
* Documentation
# Links
* GitHub: [https://github.com/parallax-compiler/parallax-runtime](https://github.com/parallax-compiler/parallax-runtime)
* Docs: [https://github.com/parallax-compiler/parallax-docs](https://github.com/parallax-compiler/parallax-docs)
* License: Apache 2.0
Would love to hear your thoughts and feedback!
https://redd.it/1psfb7p
@r_cpp
Post #24538
22