opencl-language.zip

  • PUDN用户
    了解作者
  • Visual C++
    开发工具
  • 19KB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • 1 积分
    下载积分
  • 2
    下载次数
  • 2015-02-05 16:14
    上传日期
这是最近流行的opencl语言编写的hello world例程,运行成功
opencl-language.zip
内容介绍
Hello World OpenCL Design Example README file ============================================= ============================================= This readme file for the Hello World OpenCL Design Example contains information about the design example package. For more examples, please visit the page: http://www.altera.com/support/examples/opencl/opencl.html This file contains the following information: - Example Description - Software and Board Requirements - Usage Instructions - Package Contents and Directory Structure - Release History - Disclaimer & Licenses - Contacting Altera(R) Example Description =================== This example is a simple "hello world" kernel. It demonstrates: 1. An OpenCL accelerator kernel running on the FPGA that prints a message on the host system using a device-side printf. The thread which prints this message is controllable using a kernel argument set by the host program. 2. OpenCL queries of various platform and device parameters from within the host program. Software and Board Requirements =============================== This design example is for use with the following versions of the Altera Complete Design Suite and Quartus(R) II software and Altera SDK for OpenCL software: - 14.0 or later For host program compilation, the requirements are: - Linux: GNU Make and gcc - Windows: Microsoft Visual Studio 2010 The supported operating systems for this release: - All operating systems supported by the Altera SDK for OpenCL Usage Instructions ================== Linux: 1. make 2. ./bin/hello_world Windows: 1. Build the project in Visual Studio 2010. 2. Run (Ctrl+F5). AOCX selection -------------- The host program will use an AOCX file in the bin directory. If hello_world.aocx exists, then that will be used. Otherwise, the host program will examine the device name to extract the board name (which was passed as the --board argument to aoc) and check for a hello_world_<board>_140.aocx file. Package Contents and Directory Structure ======================================== /hello_world /device Contains OpenCL kernel source files (.cl) /host /src Contains host source (.cpp) files /bin Contains host binary and OpenCL binaries (.aocx) Generating Kernel ================= To compile the kernel, run: aoc device/hello_world.cl -o bin/hello_world.aocx --board <board> where <board> matches the board you have in your system. If you are unsure of the board name, use the following command to list available boards: aoc --list-boards This compilation command can also be used to target the emulator by adding the -march=emulator flag. If the board already has a AOCX file (see AOCX selection section above), be sure to either replace or relocate that AOCX file. Release History =============== SDK Version Example Version Comments ------------------------------------------------------------------------------- 14.0 1.2 Update documentation for 14.0 release. 13.1 1.1 On Linux, fix possible compilation issues in AOCL_Utils by including <unistd.h>. 13.1 1.0 First release of example Disclaimer & Licenses ===================== Copyright (C) 2013-2014 Altera Corporation, San Jose, California, USA. All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. This agreement shall be governed in all respects by the laws of the State of California and by the laws of the United States of America. Contacting Altera ================= Although we have made every effort to ensure that this design example works correctly, there might be problems that we have not encountered. If you have a question or problem that is not answered by the information provided in this readme file or the example's documentation, please contact Altera(R) support. http://www.altera.com/mysupport/
评论
    相关推荐
    • helloworld.rar
      一段完整可用的opencl hello world程序,可作为入门例程使用
    • helloWorld.rar
      这是用OpenCL编写的的helloWorld程序.
    • OpenCL编程入门.rar
      OpenCL的文章网络上有很多,从入门到各种精通都有。本文的目的,是用尽量简洁的叙述,建立对OpenCL相对全面的概念。本文适合刚开始接触异构计算和OpenCL的编程人员,或想要了解OpenCL的人
    • opencl.zip
      opencl.dll cho ai thieu
    • opencl-performance-test
      基于 Jeff Heaton ( ) 和“Hello-World-OpenCL” 这个例子使用了 Gradle。 没有必要安装 Gradle,只需使用包装器。 要使用包装器,只需使用“gradlew”命令。 要运行此应用程序,只需发出命令:gradlew run 支持...
    • ARM Mali OpenCL SDK
      ARM官方OpenCL SDK软件包 对学习OpenCL编程模型有帮助,快速上手使用...Hello World | Template | Memory Buffers | Image Objects | 64-bit Integers and Atomics | Sobel Filter | FIR Filter | Mandelbrot | SGEMM
    • simplecl:用于 Clojure 的易于使用的 OpenCL 包装器
      th.ng/simplecl 用于 JOCL/OpenCL 的 Clojure 包装器和高级处理管道操作 SimpleCL 打算在 Clojure 和 OpenCL 计算内核之间启用某种声明性的互操作方法。 它为基本 OpenCL 数据结构(上...一个简单的“Hello world”样
    • Test_HelloWorld.rar
      GPU helloworld test based on OpenCL
    • qpopper2.53.tar.Z
      pop3 server