Opencl Installation:
Use superuser permission for given steps.
1. Download AMD-APP-SDK-linux-v2.9-1.599.381-GA-x64.tar.bz2 from internet.
It is compatible to both intel and amd architecture.
2.tar -xvf AMD-APP-SDK-linux-v2.9-1.599.381-GA-x64.tar.bz2
3.it will be extracted to AMD-APP-SDK-v2.9-1.599.381-GA-linux64.sh
4.chmod 755 AMD-APP-SDK-v2.9-1.599.381-GA-linux64.sh
5.mkdir /opt/opencl
5. ./AMD-APP-SDK-v2.9-1.599.381-GA-linux64.sh
6.It will ask for the installtion directory.Just provide the path /opt/opencl
7.Ask for licence agreement,say yes.
8.execute “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-4.5.0.8/lib64:/opt/intel/opencl-1.2-4.5.0.8/libmic:/opt/opencl/AMDAPPSDK-2.9-1/lib/x86_64/:/opt/opencl/AMDAPPSDK-2.9-1/lib/x86
10.to compile the file just use this command
gcc -L /opt/opencl/AMDAPPSDK-2.9-1/lib/x86_64/ -lOpenCL main.c -o filename
Hi Amol,
ReplyDeleteI tried to use your recepie, But there is no main.c file in my x86_64 folder.
Any suggestion?