|
|
In summary: the GPU will outperform the CPU if the program performs a lots of computations that use the same operation
Example: the GPU is great to execute these types of code:
for (int i = 0; i < 10000000; i++ ) C[i] = A[i] + B[i]; |
|
Explanation:
|
Explanation:
|