How to square a set of two numbers?
In this lesson, we're going to take an input array of 64 floating point numbers, numbered 0 to 63, and we're going to square each number in the array. So the output will be 0, 1, 4, 9, and so on. We're going to do this in three steps.
- We're going to start by looking at how we'd run this code on the CPU.
- Then we'll talk about how we'd run this on the GPU without looking at code,
- Instead just discussing what our code would do. Then we'll dive into what the code actually looks like.