CUDA and PyCUDA on ppc64el

Tomasz Rybak tomasz.rybak at post.pl
Tue Dec 18 07:58:01 GMT 2018


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hello everyone.
Playing a bit with PyCUDA packaging while trying to polish it
before upload I tried to build ppc64el package.
nvidia-cuda-toolkit is available for this architecture, so PyCUDA
should work with it.

I used sbuild with qemu to build it, prepared using:
$ sbuild-createchroot --arch=ppc64el --include=eatmydata,ccache,gnupg
- --components=main,contrib,non-free --chroot-suffix=-nonfree-sbuild
- --debootstrap=qemu-debootstrap
unstable /srv/chroot/unstable-ppc64el-nonfree-sbuild

I got an error during final linking:

powerpc64le-linux-gnu-g++ -pthread -shared -Wl,-Bsymbolic-functions
- -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
- -Wstrict-prototypes -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-
map=/build/python2.7-2SyfSZ/python2.7-2.7.15=. -fstack-protector-strong
- -Wformat -Werror=format-security -fexceptions -Wl,-z,relro -Wl,-z,now -g
- -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong
- -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2
build/temp.linux-ppc64el-2.7/src/cpp/cuda.o build/temp.linux-ppc64el-
2.7/src/cpp/bitlog.o build/temp.linux-ppc64el-
2.7/src/wrapper/wrap_cudadrv.o build/temp.linux-ppc64el-
2.7/src/wrapper/mempool.o build/temp.linux-ppc64el-
2.7/src/wrapper/wrap_cudagl.o build/temp.linux-ppc64el-
2.7/src/wrapper/wrap_curand.o -L/usr/lib/stubs -L/usr/lib64/stubs
- -L/usr/lib/stubs -L/usr/lib64/stubs -lboost_python27 -lboost_thread
- -lcuda -lcurand -o
/<<PKGBUILDDIR>>/.pybuild/cpython2_2.7/build/pycuda/_driver.so
/usr/bin/ld: cannot find -lcuda
collect2: error: ld returned 1 exit status
error: command 'powerpc64le-linux-gnu-g++' failed with exit status 1
E: pybuild pybuild:338: build: plugin distutils failed with: exit
code=1: /usr/bin/python setup.py build 
dh_auto_build: pybuild --build -i python{version} -p 2.7 returned exit
code 13
make: *** [debian/rules:34: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit
status 2

It looks like there is no libcuda.so for ppc64el. This file is
in libcuda1, which is only available for armhf, amd64, and i386.

Has anybody tried (or succeeded) runing CUDA on ppc64el?
When I look at transition page, I can see packages only for amd64.

I'll also ask this question on PyCUDA mailing list, but wanted
to coordinate here, as this touched Debian packaging.

Best regards.

- -- 
Tomasz Rybak, Debian Developer <serpent at debian.org>
GPG: A565 CE64 F866 A258 4DDC F9C7 ECB7 3E37 E887 AA8C
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEE1bhtbqZEgXjcK9cyggqgxGY3jWkFAlwYqIkACgkQggqgxGY3
jWniLQ//TbeO2SdQlEgA6JSo5DtACZgATdOVkZsvT4R61Rpcs3vVrYTP3bP37ej0
AZ2I7RUmvFVrBl1/aHc44Me94KFBogy5Ut6oM2PbdvGzuRtptOk/aIpVsBIQ2/b6
IqbXobyNWCsg6XhurzdzdRTxi31VXmSa3mq0zFKiFfRSK+ZhxAs0bkZhQKiqIZKj
WOv9HtNY1SnAxo0P0UJDZEglKF1S7RoMOOQUN2pTdQPfW3Y54nGmjtSzmMmv8vHS
ruQ+Vno/AhO3ap1APJtl8/sO/0Ddbu3A+y+Wi3r/TZxp7tO8glLMt2NM4RfTJ9EI
by0fTWKGpSq8pAnQwsBS7iGSckj06HpMu/xnPwCRcEjn4Niu8K7teqx7eFxnnyfT
27KOtFbMuKNizRzqmBa4qF139OgX6zHP1UbS2ZexaYlR8bYL22TcjRMvcl1D0MJi
pXJh9eN380pribceie0FF9GBL2COs7Nq1CHCCGBlniYmFkyjYriq+xPn/zwjvnle
iOsOnB4fZTVrWlelkrUrODNxChQRoIZgrq/wB0JWD1TlBcei0ruo+HiaG8oYVha1
egJSBW/1+uJ1Rg2c+Bb2fmBooMRJUrL5iXb6HDWuXrU8yHUnE3HEMTA5bjGI/Rfn
L/21YX2d4WZHsHsOt2cjDaXrnI6yp8zulLwO6LKiHS6Jtzmg64U=
=DhPt
-----END PGP SIGNATURE-----




More information about the pkg-nvidia-devel mailing list