Output on an AMD platform

Now let's compile and test the same code on the all-new Vega 20 architecture-based AMD Radeon VII GPU! This new system also has ROCm installed, as illustrated previously in Chapter 4, Fundamentals of GPU Programming. We get the following output:

GPU Device used for computation: Vega 20Multiplication on GPU computed in: 31.587000 millisecondsMax error: 0

The same code gets executed on the Radeon VII (reported as Vega 20) in 31.587000 milliseconds. The configurations for both systems are as shown here:

Hardware Configuration 1

Hardware Configuration 2

Intel Core i7 4770K processor at 3.5 Ghz

AMD Ryzen 7 2700X processor at 3.7 Ghz

NVIDIA Titan X 12 GB DDR5 GPU (Maxwell architecture)

AMD Radeon VII ...

Get Hands-On GPU Computing with Python now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.