OpenCL_sample

所属分类:图形图象
开发工具:C/C++
文件大小:12478KB
下载次数:7
上传日期:2018-03-20 11:16:05
上 传 者cnan
说明:  丰富的android平台opencl sample code,帮助初学者
(for beginner,opencl sample code on android paltform)

文件列表:
OpenCL_sample (0, 2015-01-19)
OpenCL_sample\AdrenoOpenCLLauncher (0, 2015-01-19)
OpenCL_sample\AdrenoOpenCLLauncher\AndroidManifest.xml (794, 2014-03-11)
OpenCL_sample\AdrenoOpenCLLauncher\ic_launcher-web.png (37099, 2014-03-11)
OpenCL_sample\AdrenoOpenCLLauncher\res (0, 2015-01-19)
OpenCL_sample\AdrenoOpenCLLauncher\res\drawable-hdpi (0, 2015-01-19)
OpenCL_sample\AdrenoOpenCLLauncher\res\drawable-hdpi\ic_action_search.png (3120, 2014-03-11)
OpenCL_sample\AdrenoOpenCLLauncher\res\drawable-hdpi\ic_launcher.png (3014, 2014-03-11)
OpenCL_sample\AdrenoOpenCLLauncher\res\drawable-ldpi (0, 2015-01-19)
OpenCL_sample\AdrenoOpenCLLauncher\res\drawable-ldpi\ic_launcher.png (1504, 2014-03-11)
OpenCL_sample\AdrenoOpenCLLauncher\res\drawable-mdpi (0, 2015-01-19)
OpenCL_sample\AdrenoOpenCLLauncher\res\drawable-mdpi\ic_action_search.png (3030, 2014-03-11)
OpenCL_sample\AdrenoOpenCLLauncher\res\drawable-mdpi\ic_launcher.png (1969, 2014-03-11)
OpenCL_sample\AdrenoOpenCLLauncher\res\drawable-xhdpi (0, 2015-01-19)
OpenCL_sample\AdrenoOpenCLLauncher\res\drawable-xhdpi\ic_action_search.png (3199, 2014-03-11)
OpenCL_sample\AdrenoOpenCLLauncher\res\drawable-xhdpi\ic_launcher.png (4006, 2014-03-11)
OpenCL_sample\AdrenoOpenCLLauncher\res\layout (0, 2015-01-19)
OpenCL_sample\AdrenoOpenCLLauncher\res\layout\activity_launcher.xml (484, 2014-03-11)
OpenCL_sample\AdrenoOpenCLLauncher\res\menu (0, 2015-01-19)
OpenCL_sample\AdrenoOpenCLLauncher\res\menu\activity_launcher.xml (240, 2014-03-11)
OpenCL_sample\AdrenoOpenCLLauncher\res\values (0, 2015-01-19)
OpenCL_sample\AdrenoOpenCLLauncher\res\values-v11 (0, 2015-01-19)
OpenCL_sample\AdrenoOpenCLLauncher\res\values-v11\styles.xml (90, 2014-03-11)
OpenCL_sample\AdrenoOpenCLLauncher\res\values-v14 (0, 2015-01-19)
OpenCL_sample\AdrenoOpenCLLauncher\res\values-v14\styles.xml (104, 2014-03-11)
OpenCL_sample\AdrenoOpenCLLauncher\res\values\strings.xml (273, 2014-03-11)
OpenCL_sample\AdrenoOpenCLLauncher\res\values\styles.xml (85, 2014-03-11)
OpenCL_sample\AdrenoOpenCLLauncher\src (0, 2015-01-19)
OpenCL_sample\AdrenoOpenCLLauncher\src\com (0, 2015-01-19)
OpenCL_sample\AdrenoOpenCLLauncher\src\com\qualcomm (0, 2015-01-19)
OpenCL_sample\AdrenoOpenCLLauncher\src\com\qualcomm\adrenoopencllauncher (0, 2015-01-19)
OpenCL_sample\AdrenoOpenCLLauncher\src\com\qualcomm\adrenoopencllauncher\LauncherActivity.java (2978, 2014-03-11)
OpenCL_sample\Android_common.mk (3360, 2014-05-23)
OpenCL_sample\BandwidthTest (0, 2015-01-19)
OpenCL_sample\BandwidthTest\Android (0, 2015-01-19)
OpenCL_sample\BandwidthTest\Android\AndroidManifest.xml (2044, 2014-03-11)
OpenCL_sample\BandwidthTest\Android\ant.properties (40, 2014-03-11)
OpenCL_sample\BandwidthTest\Android\jni (0, 2015-01-19)
OpenCL_sample\BandwidthTest\Android\jni\Android.mk (195, 2014-03-11)
... ...

Qualcomm Adreno SDK - OpenCL Samples -------------------------------------- The OpenCL samples build system is developed for a Linux or OS X environment, but it is possible to build them on Windows with cygwin or on the Windows command line. Prerequisites: * Latest Android SDK and Android NDK * Apache Ant (http://ant.apache.org/bindownload.cgi) * An Android device connected to your machine (type 'adb devices' to check this) * For Windows users, Cygwin is required if you wish to use the included build shell script Instructions ------------ 1. Setup environment variables (for example, in .bashrc) for Anroid NDK and ant. On Cygwin the following could be added to .bashrc (substituting for the Android SDK, NDK, and ant the paths where these were installed on your system): export ANDROID_SDK=/cygdrive/c/Android/android-sdk export ANDROID_NDK=/cygdrive/c/Android/android-ndk-r8b export PATH=$PATH:$ANDROID_SDK/tools:$ANDROID_SDK/platform-tools:$ANDROID_NDK:/cygdrive/c/Android/apache-ant-1.8.4/bin If using Windows but not cygwin, then make sure these paths are included in your system environment variables. Create a directory named "apk" in the Samples/OpenCL directory. This should only be necessary if you are using Windows but not cygwin. You can also change the default target Id for Windows non-cygwin by changing the value in the beginning of the install_android.bat file. 2. Samples can be built with the included shell scripts or manually via the command line. The shell scripts require you to use Linux or Cygwin if on a Windows machine. a. Automatic with Build Scripts (Linux/MacOS X/Cygwin) Before building, find out the android target ID by running "android list targets". The default target ID is android-19. Use option "-at ANDROID_ID" for the script below. i. Navigate into the OpenCL/Build/Android directory. ('cd Build/Android') ii. a. To build only: './build.sh -t ' b. To build and install: './build.sh -i -t ' c. To build all, './build.sh' d. For options list, './build.sh -h' iii. To install to device: './install.sh -t ' Note. In the root folder of OpenCL, "build_android.sh" can also be used. It directs to /Build/Android/build.sh for convenience. For Windows command line: i. Navigate to the OpenCL sample directory ii. To build all samples, run "install_android all". To upload to device, run "install_android apk". iii. To build and upload individual test, run install_android Common" then "install_android APP_NAME" iv. Run the sample on your device. b. Manual on Command Line Samples may also be built manually on the command line. This will work in Linux, Mac OS X, Windows with Cygwin, or Windows command line. i. Before building any sample, you must first build the 'Common' library that is used by all of the samples. This only needs to be built once and is done by executing the following commands: 'cd Common' 'android.bat update project -p . -n Common -t android-14' 'ant debug' ***NOTE: On Linux or MAC OS X, the command will be 'android' instead of 'android.bat' ii. The SDK installer may not create an Android/src folder properly. Make sure the sample has a "src" directory in the Android directory. If it doesn't then create one: 'mkdir SampleName/Android/src' iii. To compile a sample natively, we use the ndk-build system. Navigate to the Android/jni directory of the sample run the following command: '$ANDROID_NDK/ndk-build' Where ANDROID_NDK is an environment variable pointing to the root location of the NDK iv. Then go to the Android/ directory for the sample (up one from jni/) and type: (where = the name of the sample, for example BandwidthTest if building the BandwidthTest sample) 'android.bat update project -p . -n -t android-14' './InstallAssets.sh' (Linux/OSX/Cygwin) or 'InstallAssets.bat' (Windows) 'ant debug' 'adb install -r bin/-debug.apk' ***NOTE: On Linux or MAC OS X, the command will be 'android' instead of 'android.bat' The following command-line options are supported by the samples: -e DEVICE [gpu|cpu|all] -e RUNTESTS [true|false] 3. A sample can also be run either automatically or manually. Automatically (Linux/Mac OS X/Cygwin only): './run_tests -t ' Manually (any platform): 'adb logcat -c' 'adb shell am start -n com.qualcomm./android.app.NativeActivity -e DEVICE gpu -e RUNTESTS true' 'adb logcat | grep OpenCL' 4. Stop the sample from the UI or run: 'adb shell am force-stop com.qualcomm.'

近期下载者

相关文件


收藏者