Skip to content

Shuang's Crypto Notes

Learning new things!

Category: GPU

A piece of GPU code

__global__

In the main code, the function is called like:

vec_add<<<blocks, threads(d_a, d_b, d_c, n);

This function runs on the GPU, executes many threads at the same time. Each thread runs the same code, but with difference IDs. This is SIMT: singe instruction, multiple threads.

1️⃣ What is a
…
Author shuangcrypto.comPosted on December 30, 2025December 30, 2025Categories GPULeave a comment on A piece of GPU code

GPU 101

CUDA = NVIDIA-only, low-level, maximum control

wgpu = portable, safe-ish, modern GPU abstraction used by Rust

What is wgpu?

wgpu is a Rust library that exposes modern GPU features in a portable way.

Under the hood, it runs on:

  • Vulkan (Linux, Windows)
  • Metal (macOS)
  • DirectX 12 (Windows)
  • WebGPU
…
Author shuangcrypto.comPosted on December 19, 2025December 19, 2025Categories GPULeave a comment on GPU 101
 Hi, I am Shuang, a ZK/Cryptography engineer at Powdr. These are my somewhat messy learning notes about cryptography, security in general, and my hobbies. The "finer" notes list is here
  • Architecture
  • blockchain projects
  • Coding
  • coding general
  • Compiler
  • Compiler
  • Cryptographic principles
  • Data Structure
  • DevOps
  • Drafts but I wanna publish
  • ECC
  • Fundamental Protocols
  • GPU
  • Hash functions
  • Mathematical Background
  • optimization
  • Parallel computing
  • Plonky3
  • powdr
  • powdr-openVM
  • Prover Projects
  • Rust
  • stwo
  • Tools
  • Uncategorized
  • Zero Knowledge Proof
  • zk based on Multilinear polynomials
  • zk libraries
  • zkVM and zkEVM

Recent Posts

  • Data Structure –Map
  • Queue related data structure
  • Think as an architect
  • A piece of parallel computing code
  • Parallel Computing in Rust and C++ part 1

List of all posts

  • Publications
  • My CV
  • GitHub
  • LinkedIn
  • X

Hobbies

Handcrafts
  • Jewelry crafts
    • my online shop
  • Wood crafts
  • Sewing
  • Knitting
Sports
  • Rock climbing & bouldering
  • Running
Cooking
  • Recipes
Photography
  • portfolio

Useful links

  • Latex in Wordpress
  • Knowledge links
  • powdr command
  • what you want to know about powdr
  • Coding Tools & Tips
  • Shortcuts
  • Git

Shuang's Crypto Notes Proudly powered by WordPress