less_slow.cpp
Playing around "Less Slow" coding practices in C++ 20, C, CUDA, PTX, & Assembly, from numerics & SIMD to coroutines, ranges, exception handling, networking and user-space IO
- 1.9k
- C++
- Apache-2.0
- 11 d ago
Playing around "Less Slow" coding practices in C++ 20, C, CUDA, PTX, & Assembly, from numerics & SIMD to coroutines, ranges, exception handling, networking and user-space IO
🚀🚀🚀 This repository lists some awesome public CUDA, cuda-python, cuBLAS, cuDNN, CUTLASS, TensorRT, TensorRT-LLM, Triton, TVM, MLIR, PTX and High Performance Computing (HPC) projects.
Open source compiler for your whole ML repo (support python, CUDA C/C++) into sass and cuda binary (which are closed sourced by Nvidia); 3-40% faster than Openai Triton for Neural Network (primarily LLM) based training/inferencing
Binary Ninja plugin for reverse engineering PTX -- the virtual instruction set architecture of CUDA-based GPUs.
A simple profiler to count Nvidia PTX assembly instructions of OpenCL/SYCL/CUDA kernels for roofline model analysis.
zCUDA: 🔗 CUDA Binding Layer | ⚡ CUDA Kernel DSL. Write CUDA kernels in pure Zig. Or keep your C++ kernels. Ship them all to GPU.
TRITON-SLED: machine-semantics toolkit with C11, Python, bounded interpreters and Triton/PTX source generation. MPL-2.0 copyleft. Contact: a.parr@belespritdaccord.uk
Run selected PyTorch CUDA 13 operations on older NVIDIA GPUs, starting with Maxwell sm_52. Independent and evidence-first; not NVIDIA's CUDA Compatibility package.
LayerNorm kernel implemented across three abstraction layers: CUDA C++, hand-written PTX (SM-120 Blackwell), and Ascend C (CANN 8.x). Demonstrates cross-architecture memory-bandwidth optimization.
kzx: no_std kernel compression for GPU kernel artifacts (PTX, cubin, blueprints). Context mixing, zero dependencies, wasm32. By Metrale.
Sovereign EDA: Malbolge ternary machine, hardware ALU, formal semantics, Lean formalization, and GPU kernels
Custom PTX INT4 GEMM kernel with Tensor Cores (WMMA) and end-to-end Qwen2 integration on NVIDIA Turing (SM75). Register-level dequantization, mma.sync.aligned intrinsics, and automatic M-padding wrapper. Delivers 14.7% VRAM reduction on Qwen2-0.5B with coherent generation quality.
PTX matrix multiplication library for NVIDIA GPUs, exposing a single C `matmul` function that runs FP16 tensor-core GEMM through the NVIDIA Driver API without CUDA C, nvcc, or cuBLAS.
Creating an MLIR dialect that fuses Addition + ReLU, lowers to NVVM and LLVM IR and generates PTX to run the kernel on CUDA GPU