May 2019
Intermediate to advanced
452 pages
12h 16m
English
Now that we have readily available code ported from CUDA, let's understand how HIP works. To get the executable output, we will use the C++11 standard when compiling the program with hipcc, as follows:
$ hipcc -std=c++11 gpu_multiply_ported_to_hip.cpp -o gpu_multiply_ported_to_hip
Now, we execute the program using the following command:
$ ./gpu_multiply_ported_to_hip
Read now
Unlock full access