From 7f1a0f2a9d5eec9897e71fd40d72442b3b4dd5cd Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Tue, 11 Apr 2023 07:12:22 +0000 Subject: automatic import of python-pycuda --- python-pycuda.spec | 141 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 141 insertions(+) create mode 100644 python-pycuda.spec (limited to 'python-pycuda.spec') diff --git a/python-pycuda.spec b/python-pycuda.spec new file mode 100644 index 0000000..5fd590d --- /dev/null +++ b/python-pycuda.spec @@ -0,0 +1,141 @@ +%global _empty_manifest_terminate_build 0 +Name: python-pycuda +Version: 2022.2.2 +Release: 1 +Summary: Python wrapper for Nvidia CUDA +License: MIT +URL: http://mathema.tician.de/software/pycuda +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/78/09/9df5358ffb74d225243b56a65ffe196de481fcd8f731f55e41f2d5d36015/pycuda-2022.2.2.tar.gz +BuildArch: noarch + + +%description +PyCUDA lets you access `Nvidia `_'s `CUDA +`_ parallel computation API from Python. +Several wrappers of the CUDA API already exist-so what's so special +about PyCUDA? +* Object cleanup tied to lifetime of objects. This idiom, often + called + `RAII `_ + in C++, makes it much easier to write correct, leak- and + crash-free code. PyCUDA knows about dependencies, too, so (for + example) it won't detach from a context before all memory + allocated in it is also freed. +* Convenience. Abstractions like pycuda.driver.SourceModule and + pycuda.gpuarray.GPUArray make CUDA programming even more + convenient than with Nvidia's C-based runtime. +* Completeness. PyCUDA puts the full power of CUDA's driver API at + your disposal, if you wish. It also includes code for + interoperability with OpenGL. +* Automatic Error Checking. All CUDA errors are automatically + translated into Python exceptions. +* Speed. PyCUDA's base layer is written in C++, so all the niceties + above are virtually free. +* Helpful `Documentation `_. +Relatedly, like-minded computing goodness for `OpenCL `_ +is provided by PyCUDA's sister project `PyOpenCL `_. + +%package -n python3-pycuda +Summary: Python wrapper for Nvidia CUDA +Provides: python-pycuda +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-pycuda +PyCUDA lets you access `Nvidia `_'s `CUDA +`_ parallel computation API from Python. +Several wrappers of the CUDA API already exist-so what's so special +about PyCUDA? +* Object cleanup tied to lifetime of objects. This idiom, often + called + `RAII `_ + in C++, makes it much easier to write correct, leak- and + crash-free code. PyCUDA knows about dependencies, too, so (for + example) it won't detach from a context before all memory + allocated in it is also freed. +* Convenience. Abstractions like pycuda.driver.SourceModule and + pycuda.gpuarray.GPUArray make CUDA programming even more + convenient than with Nvidia's C-based runtime. +* Completeness. PyCUDA puts the full power of CUDA's driver API at + your disposal, if you wish. It also includes code for + interoperability with OpenGL. +* Automatic Error Checking. All CUDA errors are automatically + translated into Python exceptions. +* Speed. PyCUDA's base layer is written in C++, so all the niceties + above are virtually free. +* Helpful `Documentation `_. +Relatedly, like-minded computing goodness for `OpenCL `_ +is provided by PyCUDA's sister project `PyOpenCL `_. + +%package help +Summary: Development documents and examples for pycuda +Provides: python3-pycuda-doc +%description help +PyCUDA lets you access `Nvidia `_'s `CUDA +`_ parallel computation API from Python. +Several wrappers of the CUDA API already exist-so what's so special +about PyCUDA? +* Object cleanup tied to lifetime of objects. This idiom, often + called + `RAII `_ + in C++, makes it much easier to write correct, leak- and + crash-free code. PyCUDA knows about dependencies, too, so (for + example) it won't detach from a context before all memory + allocated in it is also freed. +* Convenience. Abstractions like pycuda.driver.SourceModule and + pycuda.gpuarray.GPUArray make CUDA programming even more + convenient than with Nvidia's C-based runtime. +* Completeness. PyCUDA puts the full power of CUDA's driver API at + your disposal, if you wish. It also includes code for + interoperability with OpenGL. +* Automatic Error Checking. All CUDA errors are automatically + translated into Python exceptions. +* Speed. PyCUDA's base layer is written in C++, so all the niceties + above are virtually free. +* Helpful `Documentation `_. +Relatedly, like-minded computing goodness for `OpenCL `_ +is provided by PyCUDA's sister project `PyOpenCL `_. + +%prep +%autosetup -n pycuda-2022.2.2 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-pycuda -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Apr 11 2023 Python_Bot - 2022.2.2-1 +- Package Spec generated -- cgit v1.2.3