TGViewer
C++ - Reddit C++ - Reddit @r_cpp · 229 subscribers
Post #24538 22
[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
GitHub GitHub - parallax-compiler/parallax-runtime: Universal GPU runtime for C++ parallel algorithms Universal GPU runtime for C++ parallel algorithms. Contribute to parallax-compiler/parallax-runtime development by creating an account on GitHub.
More from @r_cpp
  1. Oct 9, 2026std::variant, operator== and pattern matching I was thinking, wouldn't adding equality com…
  2. Oct 8, 2026Profiles for simplicity and guarantees - Bjarne Stroustrup - CppCon 2026 https://youtu.be/…
  3. Oct 8, 2026How to Fix autoconf-style Configuration Probing https://build2.org/blog/fix-autoconf.xhtml…
  4. Oct 8, 2026owl – a header-only C++23 HTTP framework where route patterns and handler extractors are c…
  5. Oct 8, 2026Removed by Reddit Removed by Reddit on account of violating the [content policy. ] https:/…
  6. Oct 8, 2026Is there a way to search across all P and N papers throughout standardization history? It…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →