在好例子网,分享、交流、成长!
您当前所在位置:首页Others 开发实例一般编程问题 → OpenCL in Action.pdf

OpenCL in Action.pdf

一般编程问题

下载此实例
  • 开发语言:Others
  • 实例大小:13.14M
  • 下载次数:4
  • 浏览次数:445
  • 发布时间:2020-06-04
  • 实例类别:一般编程问题
  • 发 布 人:robot666
  • 文件格式:.pdf
  • 所需积分:2
 

实例介绍

【实例简介】
仅供在校童鞋交流学习使用,建议支持正版图书 高清无水印矢量电子书,英文版,中文名《OpenCL实战》
Opencl in action HOW TO ACCELERATE GRAPHICS AND COMPUTATION MATTHEW SCARPINO MANNING SHELTER ISLAND For online information and ordering of this and other Manning books, please visit www.manning.com.Thepublisheroffersdiscountsonthisbookwhenorderedinquantity For more information, please contact Special Sales Department Manning publications co 20 Baldwin Road PO BOX 261 Shelter island. ny11964 Email:orders@manning.com @2012 by Manning Publications Co. All rights reserved No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by means electronic, mechanical, photocopying, or otherwise, without prior written permission of the publisher Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in the book, and manning Publications was aware of a trademark claim, the designations have been printed in initial caps or all caps o Recognizing the importance of preserving what has been written, it is Mannings policy to have the books we publish printed on acid-free paper, and we exert our best efforts to that end Recognizing also our responsibility to conserve the resources of our planet, Manning books are printed on paper that is at least 15 percent recycled and processed without the use of elemental chlorine Manning publications co Development editor: Maria Townsley 20 Baldwin Road Copyeditor: Andy carroll PO BOX 261 Proofreader: Maureen Spencer Shelter island. ny11964 Typesetter: Gordan salinovic Cover designer: Marija Tudor ISBN9781617290176 Printed in the united states of america 12345678910-MAL-161514131211 brief contents PART 1 FOUNDATIONS OF OPENCL PROGRAMMING Introducing OpenCl 3 Host programming: fundamental data structures 16 8 Host programming: data transfer and partitioning 48 4 Kernel programming: data types and device memory 68 Kernel programming: operators and functions 94 Image processing 123 7 Events, profiling, and synchronization 140 8 Development with C++ 167 9 Development with Java and Python 196 10 General coding principles 221 PART 2 CODING PRACTICAL ALGORITHMS IN OPENCL 235 Reduction and sorting 297 Matrices and or decomposition 258 13 Sparse matrices 278 14 Signal processing and the fast Fourier transform 295 BRIEF CONTENTS Part 3 ACCELERATING OPENGL WITH OPENCL ...............9.319 15 Combining Open CL and OpenGL 321 Textures and renderbuffers 340 contents preface xu acknowledgments xvii about this book xix PART 1 FOUNDATIONS OF OPENCL PROGRAMMING 1 Introducing OpenCL 3 1.I The dawn of OpenCL 4 1. 2 Why Open CL? 5 Portability 6. Standardized vector processing 6. Parallel programming 1.3 Analogy: OpenCl processing and a game of cards 8 1. 4 A first look at an OpenCl application 10 1. 5 The Open CL standard and extensions 18 1.6 Frameworks and software development kits(SDKs) 14 1.7 Summary 14 CONTENTS 2 Host programming: fundamental data structures 16 2. 1 Primitive data types 17 2.2 Accessing platforms 18 Creating platform structures 18.Obtaining platform in formation 19. Code example: testing platform extensions 20 2.3 Accessing installed devices 22 Creating device structures 22. Obtaining device information 23. Code example: testing device extensions 24 2.4 Managing devices with contexts 25 Creating contexts 26. Obtaining context in formation 28 Contexts and the reference count 28 Code example: checking a context's reference count 29 2.5 Storing device code in ams 30 Creating programs30· Building programs3l· Obtaining program information 33. Code example: building a program from multiple source files 35 2.6 Packaging functions in kernels 36 Creating kernels 36. Obtaining kernel information 37 Code example: obtaining kernel information 38 2.7 Collecting kernels in a command queue 39 Creating command queues 40. Enqueuing kernel execution commands 40 2.8 Summary 41 3 Host programming: data transfer and partitioning 43 3.1 Setting kernel arguments 44 3.2 Buffer objects 45 Allocating buffer objects 45. Creating subbuffer objects 47 8.3 Image objects 48 Creating image objects 48. Obtaining information about image objects 51 3.4 Obtaining information about buffer objects 52 3.5 Memory object transfer commands 54 Read/write data transfer 54- Mapping memory objects 58 Copying data between memory objects 59 CONTENTS 8.6 Data partitioning 62 Loops and work-items 63. Work sizes and offsets 64. A simple one-dimensional example 65. Work-groups and compute units 65 3.7 Summary 67 Kernel programming: data types and device memory 68 4.1 Introducing kernel coding 69 4.2 Scalar data types 70 Accessing the double data type 71. Byte order 72 4. 8 Floating-point computing 73 The float data type 73. The double data type 74. The half data type 75- Checking IEEE-754 compliance 76 4.4 Vector data types 77 Preferred vector widths 79. Initializing vectors 80. Reading and modifying vector components 80. Endianness and memory access 84 4.5 The Open Cl device model 85 Device model analogy part 1: math students in school 85. Device model analogy part 2: work-items in a device 87- Address spaces in code 88. Memory alignment 90 4.6 Local and private kernel arguments 90 Local arguments 91 Private arguments 91 4.7 Summary 93 Kernel programming: operators and functions 94 5.1 Operators 95 5.2 Work-item and work-group functions 97 Dimensions and work-items 98- Work-groups 99= An example application 100 5.3 Data transfer operations 101 Loading and storing data of the same type 101. Loading vectors from a scalar array 101. Storing vectors to a scalar array 102 5.4 Floating-point functions 103 Arithmeticandroundingfunctions103.comp rigonometric functions 106. Miscellaneous floating poin functions 105: Exponential and logarithmic functions 100 functions 108 【实例截图】
【核心代码】

标签:

实例下载地址

OpenCL in Action.pdf

不能下载?内容有错? 点击这里报错 + 投诉 + 提问

好例子网口号:伸出你的我的手 — 分享

网友评论

发表评论

(您的评论需要经过审核才能显示)

查看所有0条评论>>

小贴士

感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。

  • 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
  • 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
  • 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
  • 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。

关于好例子网

本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明

;
报警