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

OpenCL 1.2

一般编程问题

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

实例介绍

【实例简介】
OpenCL 1.2 标准文档 Open Compute Library
5.3.1 Creating Image Objects 5.3.1. 1 Image Format descriptor 5.3.1.2 Image descripte 3.2 Querying List of Supported Image Formats 96 5.3.2.1 Minimum List of Supported Image Formats 98 5.3.3 Reading, Writing and Copying Image Objects 98 534 Filling Image Objects…… 105 5.3.5 Copying between Image and Buffer Objects……… 107 5.3.6 Mapping Image Objects.. 112 5.3.7 Image Object Queries 115 54 Querying, Unmapping, Migrating, Retaining and releasing memory objects……………………,118 5.4.1 Retaining and releasing Memory Objects 5.4.2 Unmapping Mapped Memory Objects 120 5.4.3 Accessing mapped regions of a memory object l22 54.4 Migrating Memory Objects………………, 123 5.4.5 Memory Object Queries 中中· 125 5.5 Sampler Objects…......….……128 5.5.1 Creating Sampler Objects…......…… 128 5.5.2 Sampler Object Queries 130 56 Program objects… 132 5.6.1 Creating Program Objects 132 5.6.2 Building Program Executables ….………137 5.6.3 Separate Compilation and linking of programs 139 564 Compiler Options……… 145 5.6.4.1P 5.6.4.2 Math Intrinsics Options 145 5.6.4.3 Optimization Options 146 5.6.4.4 Options to Request or Suppress Warnings 147 5.6.4.5 Options Controlling the OpenCL C version .147 5.6.4 ng Kernel argume 5.6.5 Linker Options... 148 5.6.5.1 Library Linking Options 148 5.6.5.2 Program Linking Options 5.6.6 Unloading the OpenCl Compiler....... 149 5.6.7 Program Object Queries..... 150 5.7 Kernel Objects 157 5.7.1 Creating Kernel Objects 157 5.7.2 Setting Kernel Arguments ... .160 5.7.3 Kernel Object Quer 5.8 Executing Kernels........... 169 5.9 Event objects.,..,,,,,,.,,.,.,.,.,,.,,,…,…,…,,………177 5.10 Markers, Barriers and waiting for events………………,………………,186 5.11 Out-of-order Execution of Kernels and memory object Commands........ 189 512 Profiling Operations on Memory objects and kernels…,.,,,…,,…,,…,190 5.13 Flush and finish s Last revision date: 11/14/11 Page 3 6. THE OPENCL C PROGRAMMING LANGUAGE.. 195 6,1 Supported Data Types.……,,…,…,…,,…,…,…,…,…,,,,,,195 6. 1.1 Built-in Scalar Data Ty 195 6. 1.1. 1 The half data typ 197 6.1.2 Built-in Vector Data Types 198 6.1.3 Other Built-in Data Types 99 6.1.4 Reserved Data Types 200 6. 1. 5 Alignment of Types 0 6.1.6 Vector Literals 201 6.1.7 Vector Components 202 6.1.8 Aliasing rules…… 206 6.1.9 Keywords ···························· 206 6.2 Conversions and Type casting 6. 2. 1 Implicit Conversions.... 207 6.22 Explicit casts… 207 6.2.3 Explicit Conversions 6.2.3.1 Data Types 6.2.3.2 Rounding Modes 20)9 6.2.3.3 Out-of-Range Behavior and Saturated Conversions 210 6.2.3.4 Explicit Conversion examples 210 624 Reinterpreting Data As Another Type.…… 2l1 6.2. 4 1 Reinterpreting Types Using Unions 2l1 6.2.4.2 Reinterpreting Types Using as typee and as typen 212 6.2.5 Pointer casting…… 6.2.6 Usual Arithmetic Conⅴ ersions∴ 63 Operators………….…….…….….….….…….….……l5 6.4 Vector Operations.....................................221 6.5 Address Space qualifiers 6.5.1 global (or global) 自自 223 6.5.2 local (or local) 223 6.5.3 constant (or constant) 224 6.5.4 private(or private 225 6.6 Access Qualifiers........... 226 6.7 Function Qualifiers 6.7.1 27 6.7.2 Optional Attribute Qualifiers 68 Storage- Class Specifiers....….….230 6.9 Restrictions 。。。音。。鲁非·。·。。非。。自。非自。。。。自自非非。非。非自D自自。自。··非 231 6,10 Preprocessor Directives and macros…… 。番。;。。自。。鲁。自音看。音。。非。自自自非音非音D。自。自。●非非音 234 6.11 Attribute Qualifiers.............. D。D。。。垂。非。。鲁 236 6.1.1 Specifying Attributes of Types…… 237 6.11.2 Specifying Attributes of Functions........... 239 6.11.3 Specifying Attributes of Variables 6.11.4 Specifying Attributes of Blocks and Control-Flow-Statements 241 Last revision date: 11/14/11 P age 6. 11.5 Extending Attribute Qualifiers 6.12 Built-in functions 1242 6.12.1 Work-Item Functions 42 6.12.2 Math functions 244 6. 12.2. 1 Floating-point macros and pragmas 6. 12.3 Integer functions 256 6.12. 4 Common Functions 6. 12.5 Geometric Functions 262 6.12.6 Relational functions ···········““··· 264 6. 12.7 Veclor Data Load and Store functions 267 6. 12.8 Synchronization Functions .274 6.12.9 Explicit Memory Fence Functions……………… 6. 12.10 Async Copies from Global to Local Memory, Local to Global Memory, and Prefetch 6.12.1 Atomic functions 6.12.12 MiscellaneousⅤ ector functions… 282 6.12.13 printf...... 284 6. 12.13.1 printf output synchronization.. 284 6. 12.13.2 printf format string 6. 12.13.3 Differences between OpenCl C and C99 printf 290 6.12.14 Image read and write functions ∴292 6. 12. 14.1 Samplers 0 6. 12. 14.2 Built-in Image Read Functions 6.12.14. 3 Built-in Image Sampler-less Read Functions ::·: 6.12.14. 4 Built-in Image Write Functions 6. 12. 14.5 Built-in Image Query Functions 7. OPENCL NUMERICAL COMPLIANCE 315 7.1 Rounding modes 315 72INF, nan and denormalized numbers……315 73 Floating- Point Exceptions………… 316 7. 4 Relative Error as uLPs 316 7.5 Edge Case Behavior. ●看音。 鲁。。。。 321 7.5.1 Additional requirements beyond C99 TC2 321 7.5.2 Changes to c99 TC2 Behavior .324 7.5.3 Edge Case behavior in Flush To Zero Mode .325 8. IMAGE ADDRESSING AND FILTERING m.4. 326 8.1 Image coordinates∴…"………,………,…,"…,…,1…,,,…,…,…….326 8.2 Addressing and filter modes 在曲自a击a ∴326 8.3 Conversion rules. 8.3.1 Conversion rules for normalized integer channel data types 8.3.1.1 Converting normalized integer channel data types to floating-point value... 333 333 8.3.1.2 Converting floating-point values to normalized integer channel data types 8.3.2 Conversion rules for half precision floating- point channel data type………… …36 8.3.3 Conversion rules for floating-point channel data type .36 Last revision date: 11/14/11 P age 8.3. 4 Conversion rules for signed and unsigned 8-bit, 16-bit and 32-bit integer channel data types..... 337 8.4 Selecting an Image from an Image Array 338 9. OPTIONAL EXTENSIONS 339 10. OPENCL EMBEDDED PROFILE.m.sm.m.m.m...340 11. REFERENCES APPENDIX A ···············●···········●···· 356 A1 Shared Opencl objects………… 356 A2 Multiple host Threads 357 APPENdIXB- PORTABILITY 358 APPENDIX O一 APPLICATION DATA TYPES…363 C.1 Shared Application Scalar Data Types............................................363 C 2 Supported Application Vector Data ·。。自非非。。自。··。·。DD·。··。看 363 C.3 Alignment of Application Data Types………………,.………364 C 4 Vector literals 364 C.5 Vector Components.............….….………364 C.5.1 Named vector components notation. 365 C.5.2High/ Low vector component notation…… 365 C.5.3 Native vector type notation……………… 366 C.6 Implicit Conversions……,,,,,,,,,,,,…,,,,,,366 C.7 Explicit Casts..........….….….……………366 C8 Other operators and C9 Application 省非着。。非。非D。春。看 367 APPENdIX- OPENCL C++ WRAPPER API 369 APPENDIXE- CL MEM COPY OVERLAP 370 APPENDIX F- CHANGES 373 Last revision date: 11/14/11 P age b F1 Summary of changes from Open CL 1.0 373 F 2 Summary of changes from Opencl 375 INDEX-APIS。037 Last revision date: 11/14/11 Page 7 Copyright(c)2008-2011 The Khronos Group Inc. All Rights Reserved This specification is protected by copyright laws and contains material proprietary to the Khronos Group, Inc. It or any components may not be reproduced, republished, distributed, transmitted, displayed, broadcast or otherwise exploited in any manner without the express prior written permission of Khronos Group You may use this specification for implementing the functionality therein, without altering or removing any trademark, copyright or other notice from the specification, but the receipt or possession of this specification does not convey any rights to reproduce, disclose, or distribute its contents, or to manufacture, use, or sell anything that it may describe, in whole or in part Khronos group grants express permission to any current Promoter, Contributor or Adopter member of Khronos to copy and redistribute UNMODIFIED versions of this spccification in any fashion, provided that NO Charge is made for the specification and the latest available update of the specification for any version of the api is used whenever possible. Such distributed specification may be re-formatted AS LONG AS the contents of the specification are not changed in any way. The specification may be incorporated into a product that is sold as long as such product includes significant independent work developed by the seller. A link to the current version of this specification on the Khronos Group web-site should be included whenever possible with specification distributions Khronos Group makes no, and expressly disclaims any, representations or warranties, express or implied, regarding this specification, including, without limitation, any implied warranties of merchantability or fitness for a particular purpose or non-infringement of any intellectual property. Khronos Group makes no, and expressly disclaims any, warranties, express or implied, regarding the correctness, accuracy, completeness, timeliness, and reliability of the specification Under no circumstances will the Khronos Group or any of its Promoters, Contributors or Members or their respective partners, officers, directors, employees, agents or representatives be liable for any damages, whether direct, indirect, special or consequential damages for lost revenues, lost profits, or otherwise, arising from or in connection with these materials Khronos, StreamInput, WebGL, COLLaDA, OpenKoDE, Open VG, Open WF, OpenSL ES OpcnmaX, opcnMAX AL, OpenMAX IL and OpenmaX DL arc trademarks and wcbcl is a certification mark of the Khronos Group Inc. OpenCL is a trademark of Apple Inc and OpengL and Openml are registered trademarks and the Opengl es and Open gl sc logos are trademarks of Silicon Graphics International uscd under license by Khronos. All other product names, trademarks, and/or company names are used solely for identification and belong to their respective owners Last revision date: 11/14/11 P age 8 Acknowledgements The OpenCl specification is the result of the contributions of many people, representing a cross section of the desktop, hand-held, and embedded computer industry. Following is a partial list of the contributors, including the company that they represented at the time of their contribution David neto altera Benedict Gaster, AMD Bill licea Kane amd Ed Buckingham, AMd Jan Civlin, AMD Laurent morichetti, amD Mark Fowler amd Michael houston amd Michael mantor, AMD Norm rubin amd Ofer rosenberg, aMD Victor odintsov, AMD Aaftab Munshi, apple Anna Tikhonova, apple Abe Stephens, Apple Bob Beretta, Apple Geoff Stahl, Apple Ian Ollmann, Apple Inam Rahman, apple James Shearer, apple Jeremy Sandmel, Apple John Stauffer, Apple Kathleen Danielson, Appl Michael Larson, Apple MonPing Wang, Apple Nate Begeman, Apple Tanya Lattner, Apple Travis brown apple Anton Lokhmotov arm Daⅴ e shreiner,ARM Hedley Francis, ARM Robert elliott arm Scott movers, arm Tom Olson, arm Alastair Donaldson, Codeplay Andrew Richards, Codeplay Stephen frve, electronic arts Eric Schenk, electronic arts Last revision date: 11/14/11 Page 9 Brian Murray, Freescale Brian horton ibm Brian watt, ibm Dan brokenshire, ibm Gordon fossum ibm Greg bellows Ibm Joaquin madruga, IBM Mark nutter, ibm Joe Molleson, Imagination Technologies Jon Parr, Imagination Technologies Robert Quill, imagination technologies James McCarthy, Imagination Technologies Aaron Lefohn intel Adam lake, intel Andrew brownsword, intel Andrew lauritzen intel Craig Kolb, Intel Geoff Berry Intel John Kessenich Intel Josh Fryman, Intel Hong Jiang, Intel Larry Seiler, Intel Matt pharr intel Michael mcCool, Intel Murali sundaresan intel Paul lalonde, intel Stefanus du toit, intel Stephen Junkins, Intel Tim Foley intel Timothy mattson Intel Yariv Aridor, Intel Bill bush Kestrel Institute Lindsay errington, Kestrel Institute Jon Leech, Khronos Benjamin Bergen, Los Alamos National Laboratory Marcus Daniels, Los Alamos National laboratory Michael Bourges sevenier, Motorola rki leskela, nokia Jari Nikara, Nokia Amit rao, NVidia Ashish Srivastava, NViDia Bastiaan aarts, nvidia Chris Cameron, Nvidia Christopher lamb nvidia Last revision date: 11/14/11 age 【实例截图】
【核心代码】

标签:

实例下载地址

OpenCL 1.2

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

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

网友评论

发表评论

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

查看所有0条评论>>

小贴士

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

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

关于好例子网

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

;
报警