Closed GoogleCodeExporter closed 8 years ago
SystemError: Failed to build kernel (CL_BUILD_PROGRAM_FAILURE):
-----> sh: .../bin/x86/clc: not found <-----
It looks like there is some problem with your installation of ATI SDK. Can you
run any example from ATI SDK ?
Original comment by hazema...@gmail.com
on 11 Jun 2010 at 10:32
And one more thing - calpp core is much faster on ATI ( available in svn ). So
it's probably a better choice :).
Original comment by hazema...@gmail.com
on 11 Jun 2010 at 10:33
ok I tried following:
1) Installed and builded pyrit from svn (revision 263)
2) I tried to build calpp (from SVN) unfortunately I get folowing:
###
/Downloads/pyrit_svn/cpyrit_calpp# python setup.py build
unavailable enviroment variable ATISTREAMSDKROOT
Traceback (most recent call last):
File "setup.py", line 32, in <module>
CALPP_INC_DIR = os.environ['ATISTREAMSDKROOT']
File "/usr/lib/python2.6/UserDict.py", line 22, in __getitem__
raise KeyError(key)
KeyError: 'ATISTREAMSDKROOT'
###
any ideas?
Original comment by jang.th...@gmail.com
on 11 Jun 2010 at 10:50
ok I reinstalled SDK (at least I think I already had SDK installed) following
this guide:
http://developer.amd.com/gpu/ATIStreamSDK/assets/ATI_Stream_SDK_Installation_Not
es.pdf
(page4)
and now I get this:
### too long can't even everything display here
cpyrit_calpp.cpp:167: error: âstruct CALDeviceâ has no member named
âdev_progâ
_cpyrit_calpp.cpp:168: error: âstruct CALDeviceâ has no member named
âdev_kernelâ
_cpyrit_calpp.cpp:169: error: âstruct CALDeviceâ has no member named
âdev_kernelâ
_cpyrit_calpp.cpp:170: error: âstruct CALDeviceâ has no member named
âdev_kernelâ
_cpyrit_calpp.cpp:171: error: âstruct CALDeviceâ has no member named
âdev_kernelâ
_cpyrit_calpp.cpp:172: error: âstruct CALDeviceâ has no member named
âdev_kernelâ
_cpyrit_calpp.cpp:173: error: âstruct CALDeviceâ has no member named
âdev_kernelâ
_cpyrit_calpp.cpp:174: error: âstruct CALDeviceâ has no member named
âdev_kernelâ
_cpyrit_calpp.cpp:176: error: âstruct CALDeviceâ has no member named
âdev_queueâ
_cpyrit_calpp.cpp:176: error: âcalâ has not been declared
_cpyrit_calpp.cpp:176: error: âstruct CALDeviceâ has no member named
âdev_contextâ
_cpyrit_calpp.cpp:177: error: âCAL_DEVICE_MAXRESOURCE2DHEIGHTâ was not
declared in this scope
_cpyrit_calpp.cpp:177: error: expected primary-expression before â)â token
_cpyrit_calpp.cpp:178: error: expected type-specifier before âcalâ
_cpyrit_calpp.cpp:178: error: expected â)â before â::â token
_cpyrit_calpp.cpp:178: error: expected â{â before â::â token
_cpyrit_calpp.cpp:178: error: â::Errorâ has not been declared
_cpyrit_calpp.cpp:178: error: âeâ was not declared in this scope
_cpyrit_calpp.cpp:178: error: expected â;â before â)â token
_cpyrit_calpp.cpp: In function âvoid caldev_dealloc(CALDevice*)â:
_cpyrit_calpp.cpp:195: error: âstruct CALDeviceâ has no member named
âdev_queueâ
_cpyrit_calpp.cpp:195: error: expected class-name before â(â token
_cpyrit_calpp.cpp:196: error: âstruct CALDeviceâ has no member named
âdev_kernelâ
_cpyrit_calpp.cpp:196: error: expected class-name before â(â token
_cpyrit_calpp.cpp:197: error: âstruct CALDeviceâ has no member named
âdev_progâ
_cpyrit_calpp.cpp:197: error: expected class-name before â(â token
_cpyrit_calpp.cpp:198: error: âstruct CALDeviceâ has no member named
âdev_contextâ
_cpyrit_calpp.cpp:198: error: expected class-name before â(â token
_cpyrit_calpp.cpp: In function âPyObject* cpyrit_listDevices(PyObject*,
PyObject*)â:
_cpyrit_calpp.cpp:209: error: âvectorâ is not a member of âstdâ
_cpyrit_calpp.cpp:209: error: âcalâ has not been declared
_cpyrit_calpp.cpp:209: error: âdevicesâ was not declared in this scope
_cpyrit_calpp.cpp:211: error: âcalContextâ was not declared in this scope
_cpyrit_calpp.cpp:211: error: âCAL_CONTEXT_DEVICESâ was not declared in this
scope
_cpyrit_calpp.cpp:211: error: expected primary-expression before â)â token
_cpyrit_calpp.cpp:215: error: âCAL_DEVICE_TARGETâ was not declared in this
scope
_cpyrit_calpp.cpp:215: error: expected primary-expression before â)â token
_cpyrit_calpp.cpp: At global scope:
_cpyrit_calpp.cpp:221: error: âcalâ was not declared in this scope
_cpyrit_calpp.cpp:221: error: wrong number of template arguments (1, should be
2)
/usr/include/boost/array.hpp:44: error: provided for âtemplate<class T,
unsigned int N> class boost::arrayâ
_cpyrit_calpp.cpp: In function âvoid copy_gpu_inbuffer(CALDevice*, const
gpu_inbuffer*, int&, int)â:
_cpyrit_calpp.cpp:223: error: âCALuintâ was not declared in this scope
_cpyrit_calpp.cpp:223: error: expected â;â before âpitchâ
_cpyrit_calpp.cpp:228: error: âstruct CALDeviceâ has no member named
âdev_queueâ
_cpyrit_calpp.cpp:228: error: invalid types âint[int]â for array subscript
_cpyrit_calpp.cpp:228: error: âpitchâ was not declared in this scope
_cpyrit_calpp.cpp:232: error: âmemcpyâ is not a member of âstdâ
_cpyrit_calpp.cpp:233: error: âmemcpyâ is not a member of âstdâ
_cpyrit_calpp.cpp:234: error: âmemcpyâ is not a member of âstdâ
_cpyrit_calpp.cpp:235: error: âmemcpyâ is not a member of âstdâ
_cpyrit_calpp.cpp:236: error: âmemcpyâ is not a member of âstdâ
_cpyrit_calpp.cpp:244: error: âstruct CALDeviceâ has no member named
âdev_queueâ
_cpyrit_calpp.cpp:244: error: invalid types âint[int]â for array subscript
_cpyrit_calpp.cpp: At global scope:
_cpyrit_calpp.cpp:248: error: âcalâ was not declared in this scope
_cpyrit_calpp.cpp:248: error: wrong number of template arguments (1, should be
2)
/usr/include/boost/array.hpp:44: error: provided for âtemplate<class T,
unsigned int N> class boost::arrayâ
_cpyrit_calpp.cpp: In function âvoid copy_gpu_outbuffer(CALDevice*,
gpu_outbuffer*, int&, int)â:
_cpyrit_calpp.cpp:250: error: âCALuintâ was not declared in this scope
_cpyrit_calpp.cpp:250: error: expected â;â before âpitchâ
_cpyrit_calpp.cpp:255: error: âstruct CALDeviceâ has no member named
âdev_queueâ
_cpyrit_calpp.cpp:255: error: invalid types âint[int]â for array subscript
_cpyrit_calpp.cpp:255: error: âpitchâ was not declared in this scope
_cpyrit_calpp.cpp:259: error: âmemcpyâ is not a member of âstdâ
_cpyrit_calpp.cpp:260: error: âmemcpyâ is not a member of âstdâ
_cpyrit_calpp.cpp:266: error: âstruct CALDeviceâ has no member named
âdev_queueâ
_cpyrit_calpp.cpp:266: error: invalid types âint[int]â for array subscript
_cpyrit_calpp.cpp: In function âvoid start_kernel(CALDevice*, int)â:
_cpyrit_calpp.cpp:281: error: invalid types âint[int]â for array subscript
_cpyrit_calpp.cpp:281: error: âcalâ has not been declared
_cpyrit_calpp.cpp:281: error: âstruct CALDeviceâ has no member named
âdev_contextâ
_cpyrit_calpp.cpp:281: error: âCAL_FORMAT_UINT_4â was not declared in this
scope
_cpyrit_calpp.cpp:283: error: invalid types âint[int]â for array subscript
_cpyrit_calpp.cpp:283: error: âcalâ has not been declared
_cpyrit_calpp.cpp:283: error: âstruct CALDeviceâ has no member named
âdev_contextâ
_cpyrit_calpp.cpp:283: error: âCAL_FORMAT_UINT_4â was not declared in this
scope
_cpyrit_calpp.cpp:288: error: âstruct CALDeviceâ has no member named
âdev_kernelâ
_cpyrit_calpp.cpp:288: error: invalid types âint[int]â for array subscript
_cpyrit_calpp.cpp:290: error: âstruct CALDeviceâ has no member named
âdev_kernelâ
_cpyrit_calpp.cpp:290: error: invalid types âint[int]â for array subscript
_cpyrit_calpp.cpp:292: error: âstruct CALDeviceâ has no member named
âdev_queueâ
_cpyrit_calpp.cpp:292: error: âstruct CALDeviceâ has no member named
âdev_kernelâ
_cpyrit_calpp.cpp:292: error: âcalâ has not been declared
_cpyrit_calpp.cpp:292: error: âstruct WorkItemâ has no member named âeventâ
_cpyrit_calpp.cpp:293: error: âstruct CALDeviceâ has no member named
âdev_queueâ
_cpyrit_calpp.cpp:294: error: âstruct CALDeviceâ has no member named
âdev_queueâ
_cpyrit_calpp.cpp:294: error: âstruct WorkItemâ has no member named âeventâ
_cpyrit_calpp.cpp: In function âPyObject* cpyrit_send(CALDevice*, PyObject*)â:
_cpyrit_calpp.cpp:406: error: expected type-specifier before âcalâ
_cpyrit_calpp.cpp:406: error: expected â)â before â::â token
_cpyrit_calpp.cpp:406: error: expected â{â before â::â token
_cpyrit_calpp.cpp:406: error: â::Errorâ has not been declared
_cpyrit_calpp.cpp:406: error: âeâ was not declared in this scope
_cpyrit_calpp.cpp:406: error: expected â;â before â)â token
_cpyrit_calpp.cpp: In function âPyObject* cpyrit_receive(CALDevice*,
PyObject*)â:
_cpyrit_calpp.cpp:432: error: âstruct CALDeviceâ has no member named
âdev_queueâ
_cpyrit_calpp.cpp:432: error: âstruct WorkItemâ has no member named âeventâ
_cpyrit_calpp.cpp:433: error: âstruct CALDeviceâ has no member named
âdev_queueâ
_cpyrit_calpp.cpp:433: error: âstruct WorkItemâ has no member named âeventâ
_cpyrit_calpp.cpp:439: error: expected type-specifier before âcalâ
_cpyrit_calpp.cpp:439: error: expected â)â before â::â token
_cpyrit_calpp.cpp:439: error: expected â{â before â::â token
_cpyrit_calpp.cpp:439: error: â::Errorâ has not been declared
_cpyrit_calpp.cpp:439: error: âeâ was not declared in this scope
_cpyrit_calpp.cpp:439: error: expected â;â before â)â token
_cpyrit_calpp.cpp: In function âPyObject* cpyrit_sizes(CALDevice*,
PyObject*)â:
_cpyrit_calpp.cpp:473: error: âcalâ has not been declared
_cpyrit_calpp.cpp:473: error: expected â;â before âdeviceâ
_cpyrit_calpp.cpp:477: error: âdeviceâ was not declared in this scope
_cpyrit_calpp.cpp:477: error: âstruct CALDeviceâ has no member named
âdev_contextâ
_cpyrit_calpp.cpp:477: error: âCAL_CONTEXT_DEVICESâ was not declared in this
scope
_cpyrit_calpp.cpp:477: error: expected primary-expression before â)â token
_cpyrit_calpp.cpp:478: error: âCAL_DEVICE_TARGETâ was not declared in this
scope
_cpyrit_calpp.cpp:478: error: expected primary-expression before â)â token
_cpyrit_calpp.cpp:479: error: âCAL_DEVICE_NUMBEROFSIMDâ was not declared in
this scope
_cpyrit_calpp.cpp:479: error: expected primary-expression before â)â token
_cpyrit_calpp.cpp:481: error: âCAL_TARGET_CYPRESSâ was not declared in this
scope
_cpyrit_calpp.cpp: In function âvoid init_cpyrit_calpp()â:
_cpyrit_calpp.cpp:568: error: âcalâ has not been declared
_cpyrit_calpp.cpp:570: error: âcalContextâ was not declared in this scope
_cpyrit_calpp.cpp:570: error: âcalâ has not been declared
_cpyrit_calpp.cpp:570: error: âCAL_DEVICE_TYPE_GPUâ was not declared in this
scope
_cpyrit_calpp.cpp:571: error: âCAL_CONTEXT_DEVICESâ was not declared in this
scope
_cpyrit_calpp.cpp:571: error: expected primary-expression before â)â token
error: command 'gcc' failed with exit status 1
###
Original comment by jang.th...@gmail.com
on 11 Jun 2010 at 11:05
btw user "jokesareonyou" experienced similar problems:
http://code.google.com/p/pyrit/wiki/Installation (Comment by jokesareonyou, May
21, 2010)
Original comment by jang.th...@gmail.com
on 11 Jun 2010 at 11:11
well cpp is not working for me however I finally at least managed to get
cpyrit-opencl rev 263 working:
#
n/Downloads/pyrit_svn/cpyrit_opencl# pyrit list_cores
Pyrit 0.3.1-dev (svn r263) (C) 2008-2010 Lukas Lueg http://pyrit.googlecode.com
This code is distributed under the GNU General Public License v3+
The following cores seem available...
#1: 'OpenCL-Device 'ATI RV770''
#2: 'CPU-Core (SSE2)'
root@jan-desktop:/home/jan/Downloads/pyrit_svn/cpyrit_opencl# pyrit benchmark
Pyrit 0.3.1-dev (svn r263) (C) 2008-2010 Lukas Lueg http://pyrit.googlecode.com
This code is distributed under the GNU General Public License v3+
Running benchmark (15429.6 PMKs/s)... -
Computed 15429.63 PMKs/s total.
#1: 'OpenCL-Device 'ATI RV770'': 16210.1 PMKs/s (RTT 2.8)
#2: 'CPU-Core (SSE2)': 314.5 PMKs/s (RTT 3.0)
Original comment by jang.th...@gmail.com
on 11 Jun 2010 at 11:16
For svn version of calpp core you need to use svn version of CAL++ library (
http://calpp.svn.sourceforge.net/viewvc/calpp/trunk.tar.gz?view=tar ). It must
be installed and working correctly ( working CAL++ examples ).
Original comment by hazema...@gmail.com
on 11 Jun 2010 at 7:45
nevertheless thank you very much for your assistance.
Summary:
if you get "The core 'OpenCL-Device 'ATI RV770'' has died unexpectedly" verify
that you've ATi SDK installed properly (see above).
I'm using latest linux x86 driver (10.5) and ATi SDK 2.1 and it works fine so
far...
thanks again
Original comment by jang.th...@gmail.com
on 11 Jun 2010 at 10:24
an one last comment you've to do following after every reboot:
###
You must have root permissions to install this SDK.
1. Untar the SDK to a location of your choice.
For 32-bit systems, unzip the .tgz file by entering
tar -xvzf ati-stream-sdk-v2.1-lnx32.tgz.
For 64-bit systems, unzip the .tgz file by entering
tar -xvzf ati-stream-sdk-v2.1-lnx64.tgz.
#well especially starting here
2. Set the environment variable ATISTREAMSDKROOT:
export ATISTREAMSDKROOT=<location where sdk is extracted>
3. Set the environment variable ATISTREAMSDKSAMPLESROOT:
export ATISTREAMSDKSAMPLESROOT=<location where sdk is extracted>
4. Set the library path LD_LIBRARY_PATH.
– For 32-bit systems:
export LD_LIBRARY_PATH=$ATISTREAMSDKROOT/lib/x86:$LD_LIBRARY_PATH
– For 64-bit systems:
export LD_LIBRARY_PATH=$ATISTREAMSDKROOT/lib/x86_64:$LD_LIBRARY_PATH
– For the 32-bit SDK to run on 64-bit systems:
export
LD_LIBRARY_PATH=$ATISTREAMSDKROOT/lib/x86:$ATISTREAMSDKROOT/lib/x86_64:$LD_LIBRA
RY_PATH
5. You must register the OpenCL ICD; otherwise, samples and other applications
will fail to
execute if this is not done. To register the ICD, go to the root directory and
enter:
tar xfz icd-registration.tgz
# that about it, source:
http://developer.amd.com/gpu/ATIStreamSDK/assets/ATI_Stream_SDK_Installation_Not
es.pdf (page4)
Original comment by jang.th...@gmail.com
on 11 Jun 2010 at 11:04
Original issue reported on code.google.com by
jang.th...@gmail.com
on 10 Jun 2010 at 2:58