Closed GoogleCodeExporter closed 9 years ago
You need the "python-devel" package which includes the Makefile that was used to
built your installation of Python.
Original comment by lukas.l...@gmail.com
on 19 Mar 2010 at 11:40
Computed 114.38 PMKs/s total.
#1: 'CPU-Core (x86)': 44.2 PMKs/s (RTT 3.0)
#2: 'CPU-Core (x86)': 44.6 PMKs/s (RTT 3.2)
that's beouse I wanna see benchmark of pyrit+OpenCL on Cell!
I'll use this page for progresses and query, sorry for now
Now CellSDK and OpenCL...
Original comment by masterzorag
on 19 Mar 2010 at 12:22
no problem. Thanks for checking that out...
Original comment by lukas.l...@gmail.com
on 19 Mar 2010 at 2:29
Here results of OpenCL sample, sounds good
[root@dhcppc0 ppc]# ./perlin --accel -i 10
Device: "ACCELERATOR CellBE processor"
Loading program source 'perlin_kernel.cl'....
Device max work group size 256
Building kernel...
Saving program binary 'perlin_kernel_ACCELERATOR_CellBE_processor_lwgsize1'
Device Kernel Work Group Size 1
2D Work Group Size 1
Global Work Group Size 256 x 1024
Compute Device Data
Device ACCELERATOR CellBE processor -- 160 Computes took 8.660000 seconds. Rate
=
19.373228 Mpixels/sec
Compute Host Data
Host -- 160 Computes took 209.580002 seconds. Rate = 0.800516 Mpixels/sec
24.200924 Speedup
Verifying....
Verification Complete: 0 errors out of 1048576 pixels
[root@dhcppc0 ppc]#
OpenCL working, continue compiling cpyrit_opencl
Original comment by masterzorag
on 19 Mar 2010 at 7:02
btw please use the mailing-list to post more information so everyone can see it
and
follow changes.
This bug is now basically unmonitored...
Original comment by lukas.l...@gmail.com
on 19 Mar 2010 at 7:52
I've tweaked cpyrit_opencl/setup.py
line 93: libraries = ['ssl', 'CL', 'z'],
this was enough to compile fine, install and run, but send this warning:
The headers required to build the OpenCL-kernel were not found. Trying to
continue
anyway...
So I've add
line 35: '/opt/ibmcmp/xlc/opencl/0.1/include', \
to fill OPENCL_INC_DIRS but I get:
running build
running build_ext
Building modules...
building 'cpyrit._cpyrit_opencl' extension
creating build
creating build/temp.linux-ppc64-2.6
gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -D_GNU_SOURCE
-fPIC
-fPIC -I/opt/ibmcmp/xlc/opencl/0.1/include -I/usr/include/python2.6 -c
_cpyrit_opencl.c -o build/temp.linux-ppc64-2.6/_cpyrit_opencl.o
-DVERSION="0.3.1-dev
(svn r237)"
In file included from /usr/include/libio.h:53,
from /usr/include/stdio.h:75,
from /usr/include/python2.6/Python.h:33,
from _cpyrit_opencl.c:21:
/opt/ibmcmp/xlc/opencl/0.1/include/stdarg.h:56: error: expected ‘=’,
‘,’, ‘;’, ‘asm’
or ‘__attribute__’ before ‘__vastart’
In file included from /usr/include/stdio.h:912,
from /usr/include/python2.6/Python.h:33,
from _cpyrit_opencl.c:21:
/usr/include/bits/stdio2.h:221: error: expected ‘)’ before ‘(’ token
/usr/include/bits/stdio2.h:236: error: expected ‘)’ before ‘(’ token
/usr/include/bits/stdio2.h:239: error: expected ‘)’ before ‘(’ token
/usr/include/bits/stdio2.h:262: error: expected ‘)’ before ‘(’ token
/usr/include/bits/stdio2.h:266: error: expected ‘)’ before ‘(’ token
/usr/include/bits/stdio2.h:294: error: expected ‘)’ before ‘(’ token
/usr/include/bits/stdio2.h:297: error: expected ‘)’ before ‘(’ token
/usr/include/bits/stdio2.h:323: error: expected ‘)’ before ‘(’ token
/usr/include/bits/stdio2.h:327: error: expected ‘)’ before ‘(’ token
In file included from /usr/include/string.h:640,
from /opt/ibmcmp/xlc/opencl/0.1/include/string.h:71,
from /usr/include/python2.6/Python.h:38,
from _cpyrit_opencl.c:21:
/usr/include/bits/string3.h:129: error: expected ‘)’ before ‘(’ token
In file included from /usr/include/stdlib.h:949,
from /opt/ibmcmp/xlc/opencl/0.1/include/stdlib.h:50,
from /usr/include/python2.6/Python.h:42,
from _cpyrit_opencl.c:21:
/usr/include/bits/stdlib.h:28: error: expected ‘)’ before ‘(’ token
/usr/include/bits/stdlib.h:31: error: expected ‘)’ before ‘(’ token
/usr/include/bits/stdlib.h:55: error: expected ‘)’ before ‘(’ token
/usr/include/bits/stdlib.h:59: error: expected ‘)’ before ‘(’ token
/usr/include/bits/stdlib.h:80: error: expected ‘)’ before ‘(’ token
/usr/include/bits/stdlib.h:103: error: expected ‘)’ before ‘(’ token
/usr/include/bits/stdlib.h:107: error: expected ‘)’ before ‘(’ token
/usr/include/bits/stdlib.h:135: error: expected ‘)’ before ‘(’ token
/usr/include/bits/stdlib.h:139: error: expected ‘)’ before ‘(’ token
In file included from /usr/include/unistd.h:1150,
from /usr/include/python2.6/Python.h:44,
from _cpyrit_opencl.c:21:
/usr/include/bits/unistd.h:26: error: expected ‘)’ before ‘(’ token
/usr/include/bits/unistd.h:29: error: expected ‘)’ before ‘(’ token
/usr/include/bits/unistd.h:54: error: expected ‘)’ before ‘(’ token
/usr/include/bits/unistd.h:57: error: expected ‘)’ before ‘(’ token
/usr/include/bits/unistd.h:60: error: expected ‘)’ before ‘(’ token
/usr/include/bits/unistd.h:65: error: expected ‘)’ before ‘(’ token
/usr/include/bits/unistd.h:106: error: redefinition of ‘pread64’
/usr/include/bits/unistd.h:88: note: previous definition of ‘pread64’ was
here
/usr/include/bits/unistd.h:129: error: expected ‘)’ before ‘(’ token
/usr/include/bits/unistd.h:133: error: expected ‘)’ before ‘(’ token
/usr/include/bits/unistd.h:161: error: expected ‘)’ before ‘(’ token
/usr/include/bits/unistd.h:166: error: expected ‘)’ before ‘(’ token
/usr/include/bits/unistd.h:193: error: expected ‘)’ before ‘(’ token
/usr/include/bits/unistd.h:195: error: expected ‘)’ before ‘(’ token
/usr/include/bits/unistd.h:217: error: expected ‘)’ before ‘(’ token
/usr/include/bits/unistd.h:232: error: expected ‘)’ before ‘(’ token
/usr/include/bits/unistd.h:235: error: expected ‘)’ before ‘(’ token
/usr/include/bits/unistd.h:257: error: expected ‘)’ before ‘(’ token
/usr/include/bits/unistd.h:260: error: expected ‘)’ before ‘(’ token
/usr/include/bits/unistd.h:282: error: expected ‘)’ before ‘(’ token
/usr/include/bits/unistd.h:286: error: expected ‘)’ before ‘(’ token
/usr/include/bits/unistd.h:309: error: expected ‘)’ before ‘(’ token
/usr/include/bits/unistd.h:312: error: expected ‘)’ before ‘(’ token
/usr/include/bits/unistd.h:336: error: expected ‘)’ before ‘(’ token
/usr/include/bits/unistd.h:339: error: expected ‘)’ before ‘(’ token
/usr/include/bits/unistd.h:363: error: expected ‘)’ before ‘(’ token
/usr/include/bits/unistd.h:367: error: expected ‘)’ before ‘(’ token
In file included from /usr/include/python2.6/unicodeobject.h:4,
from /usr/include/python2.6/Python.h:85,
from _cpyrit_opencl.c:21:
/opt/ibmcmp/xlc/opencl/0.1/include/stdarg.h:56: error: expected ‘=’,
‘,’, ‘;’, ‘asm’
or ‘__attribute__’ before ‘__vastart’
In file included from /usr/include/wchar.h:882,
from /usr/include/python2.6/unicodeobject.h:120,
from /usr/include/python2.6/Python.h:85,
from _cpyrit_opencl.c:21:
/usr/include/bits/wchar2.h:29: error: expected ‘)’ before ‘(’ token
/usr/include/bits/wchar2.h:33: error: expected ‘)’ before ‘(’ token
/usr/include/bits/wchar2.h:59: error: expected ‘)’ before ‘(’ token
/usr/include/bits/wchar2.h:63: error: expected ‘)’ before ‘(’ token
/usr/include/bits/wchar2.h:92: error: expected ‘)’ before ‘(’ token
/usr/include/bits/wchar2.h:96: error: expected ‘)’ before ‘(’ token
/usr/include/bits/wchar2.h:123: error: expected ‘)’ before ‘(’ token
/usr/include/bits/wchar2.h:126: error: expected ‘)’ before ‘(’ token
/usr/include/bits/wchar2.h:151: error: expected ‘)’ before ‘(’ token
/usr/include/bits/wchar2.h:165: error: expected ‘)’ before ‘(’ token
/usr/include/bits/wchar2.h:182: error: expected ‘)’ before ‘(’ token
/usr/include/bits/wchar2.h:186: error: expected ‘)’ before ‘(’ token
/usr/include/bits/wchar2.h:212: error: expected ‘)’ before ‘(’ token
/usr/include/bits/wchar2.h:216: error: expected ‘)’ before ‘(’ token
/usr/include/bits/wchar2.h:242: error: expected ‘)’ before ‘(’ token
/usr/include/bits/wchar2.h:258: error: expected ‘)’ before ‘(’ token
/usr/include/bits/wchar2.h:277: error: expected ‘)’ before ‘(’ token
/usr/include/bits/wchar2.h:308: error: expected ‘)’ before ‘(’ token
/usr/include/bits/wchar2.h:374: error: expected ‘)’ before ‘(’ token
/usr/include/bits/wchar2.h:377: error: expected ‘)’ before ‘(’ token
/usr/include/bits/wchar2.h:403: error: expected ‘)’ before ‘(’ token
/usr/include/bits/wchar2.h:407: error: expected ‘)’ before ‘(’ token
/usr/include/bits/wchar2.h:434: error: expected ‘)’ before ‘(’ token
/usr/include/bits/wchar2.h:458: error: expected ‘)’ before ‘(’ token
/usr/include/bits/wchar2.h:463: error: expected ‘)’ before ‘(’ token
/usr/include/bits/wchar2.h:493: error: expected ‘)’ before ‘(’ token
/usr/include/bits/wchar2.h:498: error: expected ‘)’ before ‘(’ token
/usr/include/bits/wchar2.h:526: error: expected ‘)’ before ‘(’ token
/usr/include/bits/wchar2.h:531: error: expected ‘)’ before ‘(’ token
/usr/include/bits/wchar2.h:562: error: expected ‘)’ before ‘(’ token
/usr/include/bits/wchar2.h:567: error: expected ‘)’ before ‘(’ token
error: command 'gcc' failed with exit status 1
Original comment by masterzorag
on 20 Mar 2010 at 12:20
Original issue reported on code.google.com by
masterzorag
on 19 Mar 2010 at 11:35