→COSINE TRANSFORMATION (A Discrete Cosine Transform for Real Data)
Here is the [https://people.sc.fsu.edu/~jburkardt/cpp_src/cosine_transform/cosine_transform.html source code] used.
The graph for the above code looks like:
To increase the efficiency of the program we transformed the '''cosine_transform_data''' function into a kernel name '''cosTransformKernel''' which offload the compute intense calculation of the program to the GPU.
vs host is the one with the second code
=== Assignment 3 ===