OpenCL* for CPU
Ask questions and share information on Intel® SDK for OpenCL™ Applications and OpenCL™ implementations for Intel® CPU.
Announcements
This forum covers OpenCL* for CPU only. OpenCL* for GPU questions can be asked in the GPU Compute Software forum. Intel® FPGA SDK for OpenCL™ questions can be ask in the FPGA Intel® High Level Design forum.
1719 Discussions

Compile and run Intels OpenCL Samples

_heinz
Beginner
425 Views
Hi,

Machine: i3, 2,6 GHz Intel HD-Grafik, GT540M
OS:W7 64Bit
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
After the sucessful installation of intel_ocl_sdk_1.1_beta_win_x64 you find the samples normally in the following directory:
C:\\Users\\Public\\Documents\\Intel\\OpenCL SDK\\1.1\\samples

There is a VisualStudio Solution file named "OpenCLSamples.sln"

Open the Visual Studio VS2008(in my case) and open the solution file "OpenCLSamples.sln".
Open the Projectmap-Explorer, rightclick on the Projectmap and convert the project to use with Intel-Compiler.
Right click now on Projectmap and choose "Konfigurations-Manager"
Change "Projectmap Configuration" from "Debug" to "Release" and the "Active Projectplatform" from "Win32" to "x64".
like this picture show: http://www.britta-d.de/images/intel_ocl/Konfigurations-Manager.jpg

Compile now the project. Compiler output as file "compiling_ocl_samples.txt"attached.
Now make a small batchfile like this:

echo off
echo INTEL_OCL_SDK Samples
echo ~~~~~~~~~~~~~~~~~~~~~~
cd\\
cd C:\\Users\\Public\\Documents\\Intel\\OpenCL SDK\\1.1\\samples\\x64\\Release
echo BitonicSort
BitonicSort.exe
echo ~~~~~~~~~~~~~~~~~~~~~~
echo DotProduct
DotProduct.exe
echo ~~~~~~~~~~~~~~~~~~~~~~
echo GodRays
GodRays.exe
echo ~~~~~~~~~~~~~~~~~~~~~~
echo MedianFilter
MedianFilter.exe
echo ~~~~~~~~~~~~~~~~~~~~~~
echo TonMapping
ToneMapping.exe
echo ~~~~~~~~~~~~~~~~~~~~~~
pause


-----------------------------------------------------
and run it.

the output shows attachedfile "run_ocltest_output.txt"

All this worked on the first try.
Thanks

_heinz
0 Kudos
0 Replies
Reply