Parrot โ€“ fused array operations using CUDA/Thrust
github.comยท21hยท
Discuss: Hacker News
Flag this post

Parrot

Parrot is a C++ library for fused array operations using CUDA/Thrust. It provides efficient GPU-accelerated operations with lazy evaluation semantics, allowing for chaining of operations without unnecessary intermediate materializations.

โœจ Features

  • Fused Operations - Operations are fused when possible
  • GPU Acceleration - Built on CUDA/Thrust for high performance
  • Chainable API - Clean, expressive syntax for complex operations
  • Header-Only - Simple integration with #include "parrot.hpp"

ยน Lazy-ish means that any operation that can be lazily evaluated is lazily evaluated.

๐Ÿš€ Quick Start

#include "parrot.hpp"

int main() {
// Create arrays
auto A = parrot::array({3, 4, 0, 8, 2});
auto B = parrot::array({6, 7, 2, 1, 8});
a...

Similar Posts

Loading similar posts...