Presentation is loading. Please wait.

Presentation is loading. Please wait.

FIGURE 11.1 Mapping between OpenCL and CUDA data parallelism model concepts. KIRK CH:11 “Programming Massively Parallel Processors: A Hands-on Approach.

Similar presentations


Presentation on theme: "FIGURE 11.1 Mapping between OpenCL and CUDA data parallelism model concepts. KIRK CH:11 “Programming Massively Parallel Processors: A Hands-on Approach."— Presentation transcript:

1 FIGURE 11.1 Mapping between OpenCL and CUDA data parallelism model concepts. KIRK CH:11 “Programming Massively Parallel Processors: A Hands-on Approach. DOI: 10.1016/B978-0-12-381472-2.00009-X © 2010 David B. Kirk/NVIDIA Corporation and Wen-mei Hwu. Published by Elsevier Inc. All rights of reproduction in any form reserved.”

2 FIGURE 11.2 Overview of the OpenCL parallel execution model. KIRK CH:11 “Programming Massively Parallel Processors: A Hands-on Approach. DOI: 10.1016/B978-0-12-381472-2.00009-X © 2010 David B. Kirk/NVIDIA Corporation and Wen-mei Hwu. Published by Elsevier Inc. All rights of reproduction in any form reserved.”

3 FIGURE 11.3 Mapping of OpenCL dimensions and indices to CUDA dimensions and indices. KIRK CH:11 “Programming Massively Parallel Processors: A Hands-on Approach. DOI: 10.1016/B978-0-12-381472-2.00009-X © 2010 David B. Kirk/NVIDIA Corporation and Wen-mei Hwu. Published by Elsevier Inc. All rights of reproduction in any form reserved.”

4 FIGURE 11.4 Conceptual OpenCL device architecture; the host is not shown. KIRK CH:11 “Programming Massively Parallel Processors: A Hands-on Approach. DOI: 10.1016/B978-0-12-381472-2.00009-X © 2010 David B. Kirk/NVIDIA Corporation and Wen-mei Hwu. Published by Elsevier Inc. All rights of reproduction in any form reserved.”

5 FIGURE 11.5 Mapping of OpenCL memory types to CUDA memory types. KIRK CH:11 “Programming Massively Parallel Processors: A Hands-on Approach. DOI: 10.1016/B978-0-12-381472-2.00009-X © 2010 David B. Kirk/NVIDIA Corporation and Wen-mei Hwu. Published by Elsevier Inc. All rights of reproduction in any form reserved.”

6 FIGURE 11.6 A simple OpenCL kernel example. KIRK CH:11 “Programming Massively Parallel Processors: A Hands-on Approach. DOI: 10.1016/B978-0-12-381472-2.00009-X © 2010 David B. Kirk/NVIDIA Corporation and Wen-mei Hwu. Published by Elsevier Inc. All rights of reproduction in any form reserved.”

7 FIGURE 11.7 OpenCL context required to manage devices. KIRK CH:11 “Programming Massively Parallel Processors: A Hands-on Approach. DOI: 10.1016/B978-0-12-381472-2.00009-X © 2010 David B. Kirk/NVIDIA Corporation and Wen-mei Hwu. Published by Elsevier Inc. All rights of reproduction in any form reserved.”

8 FIGURE 11.8 Creating an OpenCL context and command queue. KIRK CH:11 “Programming Massively Parallel Processors: A Hands-on Approach. DOI: 10.1016/B978-0-12-381472-2.00009-X © 2010 David B. Kirk/NVIDIA Corporation and Wen-mei Hwu. Published by Elsevier Inc. All rights of reproduction in any form reserved.”

9 FIGURE 11.9 DCS Kernel Version 3 NDRange configuration. KIRK CH:11 “Programming Massively Parallel Processors: A Hands-on Approach. DOI: 10.1016/B978-0-12-381472-2.00009-X © 2010 David B. Kirk/NVIDIA Corporation and Wen-mei Hwu. Published by Elsevier Inc. All rights of reproduction in any form reserved.”

10 FIGURE 11.10 Mapping DCS NDRange to OpenCL device. KIRK CH:11 “Programming Massively Parallel Processors: A Hands-on Approach. DOI: 10.1016/B978-0-12-381472-2.00009-X © 2010 David B. Kirk/NVIDIA Corporation and Wen-mei Hwu. Published by Elsevier Inc. All rights of reproduction in any form reserved.”

11 FIGURE 11.11 Data access indexing in OpenCL and CUDA. KIRK CH:11 “Programming Massively Parallel Processors: A Hands-on Approach. DOI: 10.1016/B978-0-12-381472-2.00009-X © 2010 David B. Kirk/NVIDIA Corporation and Wen-mei Hwu. Published by Elsevier Inc. All rights of reproduction in any form reserved.”

12 FIGURE 11.12 Inner loop of the OpenCL DCS kernel. KIRK CH:11 “Programming Massively Parallel Processors: A Hands-on Approach. DOI: 10.1016/B978-0-12-381472-2.00009-X © 2010 David B. Kirk/NVIDIA Corporation and Wen-mei Hwu. Published by Elsevier Inc. All rights of reproduction in any form reserved.”

13 FIGURE 11.13 Building an OpenCL kernel. KIRK CH:11 “Programming Massively Parallel Processors: A Hands-on Approach. DOI: 10.1016/B978-0-12-381472-2.00009-X © 2010 David B. Kirk/NVIDIA Corporation and Wen-mei Hwu. Published by Elsevier Inc. All rights of reproduction in any form reserved.”

14 FIGURE 11.14 OpenCL host code for kernel launch and. KIRK CH:11 “Programming Massively Parallel Processors: A Hands-on Approach. DOI: 10.1016/B978-0-12-381472-2.00009-X © 2010 David B. Kirk/NVIDIA Corporation and Wen-mei Hwu. Published by Elsevier Inc. All rights of reproduction in any form reserved.”


Download ppt "FIGURE 11.1 Mapping between OpenCL and CUDA data parallelism model concepts. KIRK CH:11 “Programming Massively Parallel Processors: A Hands-on Approach."

Similar presentations


Ads by Google