Skip to content

gcielniak/OpenCL-Tutorials

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenCL Tutorials

Requirements

The presented tutorials were developed and tested on Windows 10, Visual Studio 2019 and Intel SDK for OpenCL so that can be run on Windows PCs in the computing labs. Tutorial 4 also depends on the Boost library. If you would like to develop OpenCL programs on your computer you have two options:

  • replicate the Windows setup from the computing labs;
  • use the multi_os branch, which should allow for running the tutorials on different operating systems, programming environments and OpenCL SDKs. There is limited documentation for this option, however, so you should only choose that option if you are comfortable with installing custom libraries on your specific OS.

Windows Setup

  • OS + IDE: Windows 10, Visual Studio 2019
  • OpenCL SDK: the SDK enables you to develop and compile the OpenCL code. In our case, we use Intel SDK for OpenCL Applications. You are not tied to that choice, however, and can use SDKs by NVidia or AMD - just remember to make modifications in the project include paths. Each SDK comes with a range of additional tools which make development of OpenCL programs easier.
  • OpenCL runtime: the runtime drivers are necessary to run the OpenCL code on your hardware. Both NVidia and AMD GPUs have OpenCL runtime included with their card drivers. For CPUs, you will need to install a dedicated driver by Intel or APP SDK for older AMD processors. It seems that AMD’s OpenCL support for newer CPU models was dropped unfortunately. You can check the existing OpenCL support on your PC using GPU Caps Viewer.
  • Boost library: install the recent Boost library Windows binaries (e.g. boost_1_72_0 for VS2019). Then, add two environmental variables in the command line specifying the location of the include and lib Boost directories. For example, with boost_1_72_0 the commands would look as follows: setx BOOST_INCLUDEDIR "C:\local\boost_1_72_0" and setx BOOST_LIBRARYDIR "C:\local\boost_1_72_0\lib64-msvc-14.2".
  • A useful reference if you are struggling to get going: OpenCL on Windows.

About

OpenCL Tutorials

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •