November 2018
Intermediate to advanced
310 pages
7h 54m
English
Now, we will finally get to see how to use the CUDA Math API to write some test cases for our class by way of the math_function parameter. These will be fairly straightforward if you have any experience with the C/C++ standard math library. Again, these functions are overloaded so that we don't have to change the names of anything when we switch between single and double precision.
We've already seen one example, namely y = sin(x). Let's try something a little more ambitious:

We will integrate this function from a=11.733 to b=18.472, and then check the output of our Monte Carlo integrator against the known value of ...
Read now
Unlock full access