freewso / pyrit

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

Can't get Cpyrit_opencl working. Kunbuntu 11.10. #380

Open GoogleCodeExporter opened 8 years ago

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

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

master@XXXT:sudo python setup.py install
running install
running build
running build_ext
Building modules...
running install_lib
running install_egg_info
Removing 
/usr/local/lib/python2.7/dist-packages/cpyrit_opencl-0.4.1_dev._svn.r308_.egg-in
fo
Writing 
/usr/local/lib/python2.7/dist-packages/cpyrit_opencl-0.4.1_dev._svn.r308_.egg-in
fo

Pyrit works but, the cpyrit module does not.
AMD Stream works I checked the samples

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

Kunbuntu 11.10
Cpyrit_opencl 0.4.0
Pyrit 0.4.0

Please provide any additional information below.

-Attached is my setup.py
-Pyrit works on cpu without any issue
-The AMD SDK is located /opt/AMDAPP

Original issue reported on code.google.com by JordanSp...@gmail.com on 30 Jan 2012 at 11:45

Attachments:

GoogleCodeExporter commented 8 years ago
im having the exact same problem when running:

#python setup.py build

i get: 

_cpyrit_opencl.c:45:23: error: CL/cl.h: No such file or directory

have you figured it out?

Original comment by tremor.h...@gmail.com on 6 Apr 2012 at 12:21

GoogleCodeExporter commented 8 years ago
figure out that need to run

x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 
-Wall -Wstrict-prototypes -fPIC -I/opt/AMDAPP/lib/x86_64/ 
-I/usr/include/python2.7 -c _cpyrit_opencl.c -o 
build/temp.linux-x86_64-2.7/_cpyrit_opencl.o -Wall -fno-strict-aliasing 
-DVERSION="0.4.1-dev (svn r308)" -I/opt/AMDAPP/include/ 

but stuck on next error gcc

<command-line>:0:9: error: too many decimal points in number
_cpyrit_opencl.c:850:46: note: in expansion of macro ‘VERSION’
     PyModule_AddStringConstant(m, "VERSION", VERSION);

Original comment by FW.eX...@gmail.com on 12 Jun 2014 at 12:37