OpenCL Simple Test

This site contains two simple OpenCL programs: Transmisson and Endianness. Both programs could be built on multiple platforms, such as iOS (clang), Mac OS X (clang) and Windows (MSVC) etc.

There is also a Makefile for iOS to build. And the Darwin ARMv7 binaries are already built here named Transmisson and Endianness.

##Transmisson This demo simply transmits data between internal RAM and GPU RAM and calculates the time it costs. It is a four-step progress:

  • Internal RAM to Internal RAM
  • Internal RAM to GPU RAM
  • GPU RAM to GPU RAM
  • GPU RAM to Internal RAM

The data size of the demo is 8 mega bytes.

##Endianness This demo converts the endianness of unsigned 64-bit integers.

The number of integers are 32768.

##iOS Makefile Usage You have to specify your SDK path before using it. The default SDK is Xcode 5.0 with iOS 7.0 SDK.

#Declaration This site is distributed under BSD license.

Linus Yang



OpenCL Simple Test

该网站包含两个简单的OpenCL程序: Transmisson Endianness 。 这两个程序可以构建在多个平台上,例如 iOS(clang),Mac OS X(clang)和Windows(MSVC)等。

还有一个用于iOS构建的Makefile。 而达尔文ARMv7二进制文件已经在这里命名为 Transmisson Endianness

## Transmisson 该演示仅在内部RAM和GPU RAM之间传输数据,并计算其花费的时间。这是一个四步的进展:

  • 内部RAM到内部RAM
  • 内部RAM到GPU RAM
  • GPU内存到GPU RAM
  • GPU RAM到内部RAM

演示的数据大小为8兆字节。

连贯性 该演示转换无符号64位整数的字节顺序。

整数的数目是32768。

## iOS Makefile的用法 您必须在使用SDK路径之前指定它。默认SDK是具有iOS 7.0 SDK的 Xcode 5.0

#宣告 本网站根据BSD许可证分发。

Linus Yang




相关问题推荐