Re: [PyCUDA] Debian packaging of PyCUDA
Dnia 2010-06-01, wto o godzinie 12:33 +, karyo pisze: Tomasz Rybak bogom...@... writes: With Ubuntu there can be problem with missing package libcuda1 - but I would like for someone to try it nonetheless (just download *.deb files and dpkg -i *.deb) and report whether packages are working. How is general progress? Currently I am working with DD on python-pytools to allow it to be included in Debian. python-pycuda depends on python-pytools and (yet unpackaged) NVIDIA CUDA toolkit, so pytools need to be in Debian before PyCUDA. Latest versions of packages can be always found (at least until they are in Debian) on my web page: http://bogomips.w.tkb.pl/cuda.html Also, what can be done to further ubuntu compatibility? You mentioned libcuda1 what is the matter with it? Ubuntu does not contain CUDA; Debian, together with NVIDIA drivers provides libcuda1 (and libopencl1) which use driver to execute code on GPU. As libcuda needs to be present for PyCUDA to work, there is currently very little chance for PyCUDA to be included in Ubuntu. I am not sure what would happen if one would install Debian's libcuda and packaged PyCUDA on Ubuntu. I do not know details of packaging policies and internals of NVIDIA drivers on Ubuntu to be able to tell for sure. Regards. -- Tomasz Rybak bogom...@post.pl GPG/PGP key ID: 2AD5 9860 Fingerprint A481 824E 7DD3 9C0E C40A 488E C654 FB33 2AD5 9860 http://member.acm.org/~tomaszrybak signature.asc Description: This is a digitally signed message part ___ PyCUDA mailing list PyCUDA@tiker.net http://lists.tiker.net/listinfo/pycuda
Re: [PyCUDA] Debian packaging of PyCUDA
Tomasz Rybak bogom...@... writes Ubuntu does not contain CUDA; Debian, together with NVIDIA drivers provides libcuda1 (and libopencl1) which use driver to execute code on GPU. As libcuda needs to be present for PyCUDA to work, there is currently very little chance for PyCUDA to be included in Ubuntu. Keep up the good work. I believe that once every necessary package (at least for debian) is included, it would be a matter of time until ubuntu supports it. I realize that you have currently have working packages, but could you make a formal announcement here again when all of the dependencies are included in official debian repositories? ___ PyCUDA mailing list PyCUDA@tiker.net http://lists.tiker.net/listinfo/pycuda
Re: [PyCUDA] Debian packaging of PyCUDA
Dnia 2010-05-20, czw o godzinie 04:40 -0400, Yaroslav Halchenko pisze: lintian is your friend -- make sure you address all the warnings one way or another -- I looked at pytools briefly: $ lintian pytools_10_amd64.changes W: pytools source: non-native-package-with-native-version W: pytools source: build-depends-on-1-revision build-depends: python (= 2.5-1) W: pytools source: build-depends-on-1-revision build-depends: python-dev (= 2.5-1) W: python-pytools: extended-description-line-too-long W: python-pytools: possible-unindented-list-in-extended-description W: python-pytools: wrong-section-according-to-package-name python-pytools = python W: python-pytools: copyright-without-copyright-notice W: python-pytools: binary-without-manpage usr/bin/logtool W: python-pytools: binary-without-manpage usr/bin/runalyzer W: python-pytools: binary-without-manpage usr/bin/runalyzer-gather Thanks for advice - I have removed all problems pointed by lintian. also I bet they would work fine with python = 2.5 so why XS-Python-Version: 2.5 Removed. I also managed to create private repository. Now anyone using Debian with architecture amd64 can add following lines to /etc/apt/sources.list deb http://www.bogomips.w.tkb.pl . . deb-src http://www.bogomips.w.tkb.pl . . (there are two dots separated by space) then `apt-get update apt-get install python-pycuda` and PyCUDA should be installed. With Ubuntu there can be problem with missing package libcuda1 - but I would like for someone to try it nonetheless (just download *.deb files and dpkg -i *.deb) and report whether packages are working. Regards. -- Tomasz Rybak bogom...@post.pl GPG/PGP key ID: 2AD5 9860 Fingerprint A481 824E 7DD3 9C0E C40A 488E C654 FB33 2AD5 9860 http://member.acm.org/~tomaszrybak signature.asc Description: This is a digitally signed message part ___ PyCUDA mailing list PyCUDA@tiker.net http://lists.tiker.net/listinfo/pycuda
Re: [PyCUDA] Debian packaging of PyCUDA
Dnia 2010-05-20, czw o godzinie 16:13 -0400, Hank Knox pisze: CUDA needs driver 195; until last week or so, Debian was at 190. The update to 195 just arrived in Unstable but the nvidia-kernel-source package fails to compile on my machine - I haven`t had a chance to see why. Hank Knox I was using CUDA with driver 190 from Debian. CUDA 3.0 (and OpenCL) needs driver 195, CUDA 2.x needs at least 190, at least according to my experience. As for compiling kernel modules try installing nvidia-kernel-dkms which not automatically compiles latest version of driver for current kernel. It is working for me. Regards. -- Tomasz Rybak bogom...@post.pl GPG/PGP key ID: 2AD5 9860 Fingerprint A481 824E 7DD3 9C0E C40A 488E C654 FB33 2AD5 9860 http://member.acm.org/~tomaszrybak signature.asc Description: This is a digitally signed message part ___ PyCUDA mailing list PyCUDA@tiker.net http://lists.tiker.net/listinfo/pycuda
Re: [PyCUDA] Debian packaging of PyCUDA
This is nice and given the similarities of Debian and Ubuntu, any chance of this deb pack to work with Ubuntu? Thanks Alan On Thu, May 20, 2010 at 06:54, Andreas Kloeckner li...@informa.tiker.netwrote: Hi Tomasz, On Wed, 19 May 2010 23:55:08 +0200, Tomasz Rybak bogom...@post.pl wrote: After advices from list and some reading I have put new version of PyCUDA (and pytools) pacages: http://www.bogomips.w.tkb.pl/cuda.html#Debian http://www.bogomips.w.tkb.pl/cuda/ Nice! Thanks for the work you've put into this. I've added a link to your page to the Wiki: http://wiki.tiker.net/PyCuda/Installation/Linux/Debian What would it take to get this into Debian proper? Anything I can do to help? Andreas ___ PyCUDA mailing list PyCUDA@tiker.net http://lists.tiker.net/listinfo/pycuda -- Alan Wilter S. da Silva, D.Sc. - CCPN Research Associate Department of Biochemistry, University of Cambridge. 80 Tennis Court Road, Cambridge CB2 1GA, UK. http://www.bio.cam.ac.uk/~awd28 ___ PyCUDA mailing list PyCUDA@tiker.net http://lists.tiker.net/listinfo/pycuda
Re: [PyCUDA] Debian packaging of PyCUDA
Dnia 2010-05-20, czw o godzinie 01:54 -0400, Andreas Kloeckner pisze: Hi Tomasz, On Wed, 19 May 2010 23:55:08 +0200, Tomasz Rybak bogom...@post.pl wrote: After advices from list and some reading I have put new version of PyCUDA (and pytools) pacages: http://www.bogomips.w.tkb.pl/cuda.html#Debian http://www.bogomips.w.tkb.pl/cuda/ Nice! Thanks for the work you've put into this. No problem - I started making it for myself so I can easily update PyCUDA, not to have mess in files on my machine, etc. :-) I've added a link to your page to the Wiki: http://wiki.tiker.net/PyCuda/Installation/Linux/Debian Thanks. You can also add link to Debian bug page describing intention of packaging PyCUDA: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=546919 If there are some important information I will put them there, and if this bug becomes closed (fixed) it means that package went to Debian repositories. What would it take to get this into Debian proper? Anything I can do to help? The only thing I can for now is licensing. As Yaroslaw advised I have run lintian on packages and started fixing errors and warnings. One of them was regarding license of packages - Debian requires proper license text in package to ease decision whether packages is free, and so on. I assume that those packages are under MIT. Is it OK if I put the following in LICENCE file of pytools: Copyright (c) 2009 Andreas Kloeckner Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the Software), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. And following in pycuda (taken from file reduction.py): Copyright (C) 2009 Andreas Kloeckner Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the Software), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Based on code/ideas by Mark Harris mhar...@nvidia.com. Original License: Copyright 1993-2007 NVIDIA Corporation. All rights reserved. NOTICE TO USER: This source code is subject to NVIDIA ownership rights under U.S. and international Copyright laws. NVIDIA MAKES NO REPRESENTATION ABOUT THE SUITABILITY OF THIS SOURCE CODE FOR ANY PURPOSE. IT IS PROVIDED AS IS WITHOUT EXPRESS OR IMPLIED WARRANTY OF ANY KIND. NVIDIA DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOURCE CODE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOURCE CODE. U.S. Government End Users. This source code is a commercial item as that term is defined at 48 C.F.R. 2.101 (OCT 1995), consisting of commercial computer software and commercial computer software documentation as such terms are used in 48 C.F.R. 12.212 (SEPT 1995) and is provided to the U.S. Government only as a commercial end item. Consistent with 48 C.F.R.12.212 and 48 C.F.R. 227.7202-1 through 227.7202-4 (JUNE 1995), all U.S. Government End Users acquire the source code with only
Re: [PyCUDA] Debian packaging of PyCUDA
CUDA needs driver 195; until last week or so, Debian was at 190. The update to 195 just arrived in Unstable but the nvidia-kernel-source package fails to compile on my machine - I haven`t had a chance to see why. Hank Knox Tomasz Rybak wrote: Dnia 2010-05-20, czw o godzinie 11:06 +0100, Alan pisze: This is nice and given the similarities of Debian and Ubuntu, any chance of this deb pack to work with Ubuntu? As I checked Ubuntu (at least Lucid Lynx) does not have libcuda; this library is packaged in Debian and maintainers take care that it is in version compatible with drivers present in the distribution. I am also not sure what version of nVidia drivers is present in Ubuntu - looking at names of packages the latest is 185, which might be to old to be able to run CUDA programs. As pycuda depends on nVidia drivers, libcuda and CUDA toolkit, I am not sure whether package depending on programs and libraries not existing in distribution will be accepted. Of course that would not present someone from creating private repository. Problem with that is that I do not have experience with Ubuntu policies and do not have easy access to the machine with Ubuntu and nVidia hardware. The only computer with Ubuntu I have is eeePC 701, having Intel GPU. The earliest I might be able to sit in front of such a machine with Ubuntu+nVidia will be in the end of the next week. For now I intend to focus on making sure that Debian packages are as good as I can, and then will look at Ubuntu side of packaging pycuda. In the long run I would like for pycuda be both in Debian and Ubuntu (from what I can see many of students installing Linux on laptops install Ubuntu, so it would mean that they could install pycuda with ease) but I do need to focus on packaging for Debian. pycuda is the first package I am creating and I do not believe that it would be wise to try to do dual-system package with my (limited) level of knowledge. So in summary - you need patience for now. Best regards. Thanks Alan On Thu, May 20, 2010 at 06:54, Andreas Kloeckner li...@informa.tiker.net wrote: Hi Tomasz, On Wed, 19 May 2010 23:55:08 +0200, Tomasz Rybak bogom...@post.pl wrote: After advices from list and some reading I have put new version of PyCUDA (and pytools) pacages: http://www.bogomips.w.tkb.pl/cuda.html#Debian http://www.bogomips.w.tkb.pl/cuda/ Nice! Thanks for the work you've put into this. I've added a link to your page to the Wiki: http://wiki.tiker.net/PyCuda/Installation/Linux/Debian What would it take to get this into Debian proper? Anything I can do to help? Andreas ___ PyCUDA mailing list PyCUDA@tiker.net http://lists.tiker.net/listinfo/pycuda -- Alan Wilter S. da Silva, D.Sc. - CCPN Research Associate Department of Biochemistry, University of Cambridge. 80 Tennis Court Road, Cambridge CB2 1GA, UK. http://www.bio.cam.ac.uk/~awd28 ___ PyCUDA mailing list PyCUDA@tiker.net http://lists.tiker.net/listinfo/pycuda -- Hank Knox Chair, Early Music Area Schulich School of Music McGill University Montreal, Qc 514.398.4535, ext 00230 ___ PyCUDA mailing list PyCUDA@tiker.net http://lists.tiker.net/listinfo/pycuda
Re: [PyCUDA] Debian packaging of PyCUDA
Hi Tomasz, On Wed, 19 May 2010 23:55:08 +0200, Tomasz Rybak bogom...@post.pl wrote: After advices from list and some reading I have put new version of PyCUDA (and pytools) pacages: http://www.bogomips.w.tkb.pl/cuda.html#Debian http://www.bogomips.w.tkb.pl/cuda/ Nice! Thanks for the work you've put into this. I've added a link to your page to the Wiki: http://wiki.tiker.net/PyCuda/Installation/Linux/Debian What would it take to get this into Debian proper? Anything I can do to help? Andreas pgp9kgRfYfOqP.pgp Description: PGP signature ___ PyCUDA mailing list PyCUDA@tiker.net http://lists.tiker.net/listinfo/pycuda
Re: [PyCUDA] Debian packaging of PyCUDA
Dnia 2010-05-04, wto o godzinie 18:43 -0400, Per B.Sederberg pisze: Hi Tomasz: You may want to ask for additional tips from the folks over at neuro.debian.net: http://neuro.debian.net/#contacts They are extremely knowledgeable about Debian packages with a special emphasis on python packages. I also suggest this because they (including me) would be interested in making use of a pycuda dpkg. Best, Per Thanks - I have written to them. -- Tomasz Rybak bogom...@post.pl GPG/PGP key ID: 2AD5 9860 Fingerprint A481 824E 7DD3 9C0E C40A 488E C654 FB33 2AD5 9860 http://member.acm.org/~tomaszrybak signature.asc Description: To jest część wiadomości podpisana cyfrowo ___ PyCUDA mailing list pyc...@host304.hostmonster.com http://host304.hostmonster.com/mailman/listinfo/pycuda_tiker.net
Re: [PyCUDA] Debian packaging of PyCUDA
On Dienstag 04 Mai 2010, Tomasz Rybak wrote: Hello, I have begun creating Debian PyCUDA (0.94 from GIT) package. It is my first Debian package and I was cheating by looking at other Python modules, but it seems to work, at least on my machine. In few days I should be able to check on another machine with Debian and CUDA, and will report if there are some problems. Now I am wondering whether there is need to integrate Debian packaging metadata into PyCUDA (it is directory with few text files in it) and if so what is the best way to do it. This is a great idea, ideally with the outcome that you would just apt-get install python-pycuda and get a working setup. Any DDs around? Anyone have spare cycles to make the packages? There's also an ITP for PyCUDA: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=546919 nvcc is apparently not packaged yet, either. Also the nvidia-glx packages tend to lag by a version or so. (Currently they have 190.53.) If we decide to go the home-rolled route: I remember that a while back there seemed to be a debate by the debian guys on whether a debian/ directory in upstream source is good or bad. [1] Does anyone know what the resolution of that is by now? This would determine whether I'd stick debian/ files into git. [1] http://kitenet.net/~joey/blog/entry/on_debian_directories_in_upstream_tarballs/ Andreas signature.asc Description: This is a digitally signed message part. ___ PyCUDA mailing list pyc...@host304.hostmonster.com http://host304.hostmonster.com/mailman/listinfo/pycuda_tiker.net
[PyCUDA] Debian packaging of PyCUDA
Hello, I have begun creating Debian PyCUDA (0.94 from GIT) package. It is my first Debian package and I was cheating by looking at other Python modules, but it seems to work, at least on my machine. In few days I should be able to check on another machine with Debian and CUDA, and will report if there are some problems. Now I am wondering whether there is need to integrate Debian packaging metadata into PyCUDA (it is directory with few text files in it) and if so what is the best way to do it. Best regards. -- Tomasz Rybak bogom...@post.pl GPG/PGP key ID: 2AD5 9860 Fingerprint A481 824E 7DD3 9C0E C40A 488E C654 FB33 2AD5 9860 http://member.acm.org/~tomaszrybak signature.asc Description: To jest część wiadomości podpisana cyfrowo ___ PyCUDA mailing list pyc...@host304.hostmonster.com http://host304.hostmonster.com/mailman/listinfo/pycuda_tiker.net