Download AMD Accelerated Parallel Processing OpenCL User Guide
Transcript
AMD ACCELERATED P ARALLEL P ROCESSING amd_bitalign . . . . . . . . . . . . . . . . . . . . . . . . 8 amd_bytealign . . . . . . . . . . . . . . . . . . . . . . 8 amd_lerp. . . . . . . . . . . . . . . . . . . . . . . . . . . 8 amd_pack . . . . . . . . . . . . . . . . . . . . . . . . . . 7 amd_sad . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 amd_sad4 . . . . . . . . . . . . . . . . . . . . . . . . . . 8 amd_sadhi . . . . . . . . . . . . . . . . . . . . . . . . . 9 amd_unpack0 . . . . . . . . . . . . . . . . . . . . . . . 7 amd_unpack1 . . . . . . . . . . . . . . . . . . . . . . . 7 amd_unpack2 . . . . . . . . . . . . . . . . . . . . . . . 7 amd_unpack3 . . . . . . . . . . . . . . . . . . . . . . . 7 built-in functions for OpenCL language cl_amd_media_ops . . . . . . . . . . . . . . 7, 9 OpenCL C programs cl_amd_printf . . . . . . . . . . . . . . . . . . . . 12 variadic arguments . . . . . . . . . . . . . . . . . . 12 writing output to the stdout stream . . . . . 12 burst write . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 C C front-end compiler . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 C kernels predefined macros . . . . . . . . . . . . . . . . . . 13 C program sample OpenCL . . . . . . . . . . . . . . . . . . . . . . . . . . 10 C programming OpenCL . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 C++ API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 C++ bindings OpenCL programming . . . . . . . . . . . . . . . 14 C++ extension unsupported features . . . . . . . . . . . . . . . . . 2 C++ files compiling. . . . . . . . . . . . . . . . . . . . . . . . . . . 3 C++ kermel language . . . . . . . . . . . . . . . . . iii, 1 C++ kernels building . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 C++ templates . . . . . . . . . . . . . . . . . . . . . . . . 5 cache L1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 L2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 texture system . . . . . . . . . . . . . . . . . . . . . 10 call error OpenCL . . . . . . . . . . . . . . . . . . . . . . . . . . 16 calling convention Linux . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 Windows . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 character extensions. . . . . . . . . . . . . . . . . . . . 1 searching for substrings . . . . . . . . . . . . . . . 2 character sequence format string . . . . . . . . . . . . . . . . . . . . . . . 12 CL context associate with GL context . . . . . . . . . . . . . 1 CL kernel function breakpoint . . . . . . . . . . . . . . . . . . . . . . . . . . 3 CL options change during runtime . . . . . . . . . . . . . . . . 5 cl_amd_device_attribute_query extension querying AMD-specific device attributes . . 5 cl_amd_event_callback extension registering event callbacks for states . . . . 6 cl_amd_fp64 extension. . . . . . . . . . . . . . . . . . 4 cl_amd_media_ops extension adding built-in functions to OpenCL language 7, 9 cl_amd_printf extension . . . . . . . . . . . . . . . . 12 cl_ext extensions . . . . . . . . . . . . . . . . . . . . . . 4 cl_khr_fp64 supported function . . . . . . . . . . . . . . . . . . 15 classes passing between host and device . . . . . . . 3 clBuildProgram debugging OpenCL program . . . . . . . . . . . 2 clCreateKernel C++extension . . . . . . . . . . . . . . . . . . . . . . . 2 clEnqueue commands . . . . . . . . . . . . . . . . . . 5 clEnqueueNDRangeKernel setting breakpoint in the host code . . . . . . 3 clGetPlatformIDs() function available OpenCL implementations . . . . . . 1 clGetPlatformInfo() function available OpenCL implementations . . . . . . 1 querying supported extensions for OpenCL platform . . . . . . . . . . . . . . . . . . . . . . . . . 1 C-like language OpenCL . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 code basic programming steps . . . . . . . . . . . . . 10 ICD-compliant version . . . . . . . . . . . . . . 1, 2 parallel min() function. . . . . . . . . . . . . . . . 19 pre-ICD snippet . . . . . . . . . . . . . . . . . . . 1, 2 running on Linux . . . . . . . . . . . . . . . . . . . . . . . . . 7 on Windows . . . . . . . . . . . . . . . . . . . . . . 6 runtime steps . . . . . . . . . . . . . . . . . . . . . . 19 code requirements Installable Client Driver (ICD) . . . . . . . . . . 1 CodeXL GPU Debugger . . . . . . . . . . . . . . . . . 1 command processor transfer from system to GPU . . . . . . . . . . . 9 command processors concurrent processing of command queues 7 command queue . . . . . . . . . . . . . . . . . . . . . . . 4 associated with single device . . . . . . . . . . 4 Index-3 Copyright © 2013 Advanced Micro Devices, Inc. All rights reserved.