RSSAmplifier

Blog

indii.org / blog

Lawrence Murray: software, research, photography.

indii.orgRSS feed ↗10 posts

Latest posts

A static for loop in C++

You have `if constexpr`, but you want `for constexpr`

Improving C++ Code Coverage with Gcov, Gcovr and Doxide

Doxide can now produce line data on function templates, even when not instantiated, to mix with execution data for more accurate test coverage reports. This is especially useful when testing header-only libraries.

Limit clock speed and memory speed on an Nvidia GPU

How to limit clock speed and memory speed for more consistent results when benchmarking and profiling CUDA kernels.

Matrix Multiplication On GPU: Part 3, Coding for Speed

Tips and tricks to help the compiler optimize

Matrix Multiplication On GPU: Part 2, Tiling

Breaking down large matrix multiplications into tiles

Matrix Multiplication on GPU: Faster than Nvidia, Sometimes

It works on my laptop

Gradients of Softmax and Logsumexp

Essential functions for categorical distributions and attention mechanisms in machine learning

C++: Pattern Matching Template Types

How to check if a template type matches a pattern? Something like `is_like_v>`.

C++: Overloading the Spaceship Operator, A Recipe

How to overload the three-way comparison (spaceship) `operator`, and a reminder to overload `operator==` as well.

C++: Check if a type is an instantiation of a given class template

How to implement an `is_instance_of` type trait.