Export to GitHub

pyrit - issue #380

Can't get Cpyrit_opencl working. Kunbuntu 11.10.


Posted on Jan 30, 2012 by Helpful Camel

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-info Writing /usr/local/lib/python2.7/dist-packages/cpyrit_opencl-0.4.1_dev.svn.r308.egg-info

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

Attachments

Comment #1

Posted on Apr 6, 2012 by Swift Ox

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?

Comment #2

Posted on Jun 12, 2014 by Happy Kangaroo

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

: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);

Status: New

Labels:
Type-Defect Priority-Medium