Visible to Intel only — GUID: GUID-2B688A12-5372-481F-9E41-2832D6BBA96E
Legal Information
Getting Help and Support
Introducing the Intel® SDK for OpenCL™ Applications
What's New in This Release
Which Version of the Intel® SDK for OpenCL™ Applications Should I Use?
Intel® Code Builder for OpenCL™ API Plug-in for Microsoft Visual Studio*
Intel® Code Builder for OpenCL™ API Plug-in for Eclipse*
Debugging OpenCL™ Kernels on GPU
Intel® SDK for OpenCL™ Applications Standalone Version
OpenCL™ 2.1 Development Environment
Intel® FPGA Emulation Platform for OpenCL™ Getting Started Guide
Troubleshooting Intel® SDK for OpenCL™ Applications Issues
Configuring Microsoft Visual Studio* IDE
Converting an Existing Project into an OpenCL™ Project
OpenCL™ New Project Wizard
Building an OpenCL™ Project
Using OpenCL™ Build Properties
Selecting a Target OpenCL™ Device
Generating and Viewing Assembly Code
Generating and Viewing LLVM Code
Generating Intermediate Program Binaries with Intel® Code Builder for OpenCL™ API Plug-in
Configuring OpenCL™ Build Options
Visible to Intel only — GUID: GUID-2B688A12-5372-481F-9E41-2832D6BBA96E
Creating Buffer Variables
To create a new buffer variable:
- Open the variable management pane. Go to Tools > Intel Code Builder for OpenCL API > OpenCL Kernel Development > Windows > Variable Management
Click the Add button in the Code Builder Variable Management pane to open and select Buffer. The Buffer Variable dialog box opens.
Fill out the dialog box entries:
Field | Options |
---|---|
Name | Enter a meaningful name or leave the default. |
IO Mode | Use the drop-down to select Input, Output, or InOut. |
Number of Elements | Enter the number of elements or leave the default value of 1. |
Memory flags to use | Use the drop-down to select a memory flag, or leave the default CL_MEM_USE_HOST_PTR |
Use as SVM | Check to use the buffer as an SVM on systems that support SVM. |
Initialization options | For Input, or InOut IO Mode, you need to set an initialization option. To select an input .csv or binary file as the initialization option, click the browse (...) button.
|
NOTE:
Output buffers do not need a value assigned to them. If a value is assigned, it is ignored.