freewso / pyrit

Automatically exported from code.google.com/p/pyrit
0 stars 0 forks source link

The headers required to build the OpenCL-kernel were not found. Trying to continue anyway... #325

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. python setup.py build
2.
3.

What is the expected output? What do you see instead?

It should build everything correct, but this is the output:

The headers required to build the OpenCL-kernel were not found. Trying to 
continue anyway...
svn: '.' is not a working copy
running build
running build_ext
Building modules...
building 'cpyrit._cpyrit_opencl' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall 
-Wstrict-prototypes -fPIC -I/usr/include/python2.6 -c _cpyrit_opencl.c -o 
build/temp.linux-i686-2.6/_cpyrit_opencl.o -Wall -fno-strict-aliasing 
-DVERSION="0.4.0"
_cpyrit_opencl.c:45: fatal error: CL/cl.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1

What version of the product are you using? On what operating system?

I am using v0.4.0 with Ubuntu 10.10. 

Please provide any additional information below.

I have installed the AMD APP SDK as per their instructions. All of the OpenCL 
samples run fine on the card, yet but cpyrit can't find the OpenCL headers. 
Pyrit itself is installed correctly, my graphics drivers are up to date. 
Honestly, I have no idea what else I need to do. 

Any suggestions?

My hardware is:
Core 2 Duo 2.4 GHz
ATI Radeon Mobility HD 4670

Original issue reported on code.google.com by dan.blac...@gmail.com on 5 Jun 2011 at 4:46

GoogleCodeExporter commented 8 years ago
I removed the OpenCL and went with a previous version, Pyrit 0.3.0 and using 
Cal++. I ended up getting cpyrit-calpp installed as there were no errors. But, 
unfortunately, I ran into another problem now when trying to run Pyrit.

pyrit list_cores

Pyrit 0.3.0 (C) 2008-2011 Lukas Lueg http://pyrit.googlecode.com
This code is distributed under the GNU General Public License v3+

Traceback (most recent call last):
  File "/usr/local/bin/pyrit", line 6, in <module>
    pyrit_cli.Pyrit_CLI().initFromArgv()
  File "/usr/local/lib/python2.6/dist-packages/pyrit_cli.py", line 115, in initFromArgv
    func(self, **options)
  File "/usr/local/lib/python2.6/dist-packages/pyrit_cli.py", line 291, in list_cores
    with cpyrit.cpyrit.CPyrit() as cp:
  File "/usr/local/lib/python2.6/dist-packages/cpyrit/cpyrit.py", line 457, in __init__
    self.cores.append(CALCore(queue=self, dev_idx=dev_idx))
  File "/usr/local/lib/python2.6/dist-packages/cpyrit/cpyrit.py", line 271, in __init__
    self.bufferSizeDiv = self.workSizes()
AttributeError: 'CALCore' object has no attribute 'workSizes'

Not sure where the corrections need to be made for this, but I did manipulate 
the code in _cpyrit_calpp_kernel.cpp.

It was pulling an error earlier that it couldn't find cal/il/cal_il.hpp. Well, 
cal_il.hpp is in cal and not cal/il. So I did change that. If I need to change 
it back, I will, but it puts out the error that cal/il/cal_il.hpp does not 
exist, which it doesn't. 

So help with either OpenCL or Cal++ would be much appreciated as this was a 
highly recommended tool.

I do have two questions. Which is better, CUDA or APP for similarly priced 
graphics cards? Which one tends to cause fewer problems with Pyrit? I will be 
getting rid of this machine in the next few months and I will probably be 
getting a system with nVidia GPU in it, but if they are more problematic with 
Pyrit, then I will stick with AMD.

Original comment by dan.blac...@gmail.com on 6 Jun 2011 at 4:39