Note that my Scientific Linux 6 installed from a 64 bit LiveDVD version, so might be a different step if using LiveCD.
Installing AMD APP:
- download AMD APP SDK from AMD-APP-SDK-v2.4-lnx64.tgz
- extract and install following this AMD_APP_SDK_Installation_Notes.pdf
$ ./HelloCL
HelloCL!
Getting Platform Information
Creating a context AMD platform
Getting device info
Loading and compiling CL source
Running CL program
Done
Passed!
Installing PyOpenCl:
- download PyOpenCL from PyOpenCL
- make sure C++ compiler(g++), python, numpy, C++ boost library are installed
- Tricky when execute configure.py: python configure.py --cl-inc-dir=$HOME/AMD-APP-SDK-v2.4-lnx64/include --cl-lib-dir=$HOME/AMD-APP-SDK-v2.4-lnx64/lib/x86_64 --cl-libname=OpenCL
- then just make -> su -c "make install"
Result Test Running examples benchmark-all.py
$ ./benchmark-all.py
('Execution time of test without OpenCL: ', 34.952448844909668, 's')
=============================================
('Platform name:', 'AMD Accelerated Parallel Processing')
('Platform profile:', 'FULL_PROFILE')
('Platform vendor:', 'Advanced Micro Devices, Inc.')
('Platform version:', 'OpenCL 1.1 AMD-APP-SDK-v2.4 (595.10)')
---------------------------------------------------------------
('Device name:', 'AMD Athlon(tm) X2 Dual Core Processor L310')
('Device type:', 'CPU')
('Device memory: ', 3706, 'MB')
('Device max clock speed:', 1200, 'MHz')
('Device compute units:', 2)
Execution time of test: 0.00733989 s
Results OK
This was very helpful. Thanks!
ReplyDelete@Unknown: Glad if this helpful... :)
ReplyDeleteLink to PDF is dead!
ReplyDeleteyes check for the newest version at AMD OpenCL site
DeleteDoes the CodeXL works for you? I can't use it.
ReplyDeleteSorry, i'd never used it before.
DeleteLink to the APP SDK is now broken can be found here now
ReplyDeletehttp://developer.amd.com/tools-and-sdks/heterogeneous-computing/amd-accelerated-parallel-processing-app-sdk/downloads/#one