Thursday, March 26, 2015

Opencl Installation on Fedora 19(32 bit).

OpenCl is well known framework when we talk about the parallelization involving heterogeneous platforms like CPU,GPU etc.

This post is about how to install opencl on Fedora 19(32 bit).The target machine is having Intel C2D Processor with no other hardware(device).I am using AMD SDK for installation which supports both amd and intel platform.

Steps are listed below.

This steps require the super user permissions.
2.Download  AMD-APP-SDK-linux-v2.9-1.599.381-GA-x64.tar.bz2

3. tar -xvf  AMD-APP-SDK-linux-v2.9-1.599.381-GA-x64.tar.bz2

It will be extracted to

4. chmod 755

5.Create directory for installation "$ mkdir /opt/opencl"

6.Execute the extracted shell script


It will show long agreements.Just press q.It will ask whether u want to install.Just type yes press enter

7.It will ask for installation location.Just specify /opt/opencl.

8.Install opencl headers yum install opencl-headers

9. modify the .bashrc file for root user and write

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/intel/opencl/lib64:/opt/intel/opencl/libmic:/opt/intel/opencl-1.2-

10. to compile the file just use this command
gcc -L /opt/opencl/AMDAPPSDK-2.9-1/lib/x86_64/ -lOpenCL main.c -o binary