About using the [[nodiscard]]
attribute for your functions.
Category: Programming
Fast inverse square root
A fast algorithm to calculate the inverse of a square root stolen from Quake III.
Notes on templates in C++
Some notes about templates.
New MATLAB interfacing class for motorized stage DRV250
Interfacing class to control stage from MATLAB.
Continue reading “New MATLAB interfacing class for motorized stage DRV250”
Simple MATLAB implementations of SAFT
Various implementations of a simple reconstruction procedure for acoustic resolution optoacoustic microscopy based on the virtual detector concept. Including a small literature review.
Memory access patterns to shared memory in CUDA
CUDA has a small amount of memory available for its threads called shared memory. As the name already suggests is that this memory is available to all threads within a block simultaneously. We want to use this property to make threads read memory from global memory to shared memory in a block, use the memory together, and afterwards write the result back into global memory to avoid multiple accesses to global memory. Nevertheless, there are some rules one need to respect for high performance.
Continue reading “Memory access patterns to shared memory in CUDA”