GPU accelerated C++ code that calculates pi using a Monte Carlo method.