Compile and run Intels OpenCL Samples

Compile and run Intels OpenCL Samples

Аватар пользователя heinz-durstewitz

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

ВложениеРазмер
Скачать compiling_ocl_samples.txt3.7 КБ
Скачать run_ocltest_output.txt2.23 КБ
1 сообщение / 0 новое
Пожалуйста, обратитесь к странице Уведомление об оптимизации для более подробной информации относительно производительности и оптимизации в программных продуктах компании Intel.