Currently supports ~330k particles on my nvidia RTX 4070 Laptop GPU. Uses the naive n^2
pair-pair interaction algorithm.
I recommend setting these to numbers that match well with your GPU's number of multiprocessors and number of threads / multiprocessor.
BLOCK_SIZE
: Number of threads per blockGRID_SIZE
: Number of blocks
N
: number of pointsGRAVITY
: gravitational constantSOFTENING
: softening used for distance calculationDELTA_T
: timestep