diff --git a/.gitignore b/.gitignore index e69de29..ad7cfe6 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/ViennaCL-1.7.1.tar.gz diff --git a/sources b/sources index e69de29..a78508d 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +00939858309689d32247d6fe60383b88 ViennaCL-1.7.1.tar.gz diff --git a/viennacl.spec b/viennacl.spec new file mode 100644 index 0000000..d2e6c9c --- /dev/null +++ b/viennacl.spec @@ -0,0 +1,90 @@ +Name: viennacl +Version: 1.7.1 +Release: 1%{?dist} +Summary: Linear algebra and solver library using CUDA, OpenCL, and OpenMP +License: MIT +URL: http://viennacl.sourceforge.net/ +Source0: http://sourceforge.net/projects/%{name}/files/1.7.x/ViennaCL-%{version}.tar.gz +BuildArch: noarch + +BuildRequires: gcc-c++ cmake +BuildRequires: opencl-headers ocl-icd-devel pocl +BuildRequires: boost-devel + + +%description +ViennaCL provides high level C++ interfaces for linear algebra routines on CPUs +and GPUs using CUDA, OpenCL, and OpenMP. The focus is on generic implementations +of iterative solvers often used for large linear systems and simple integration +into existing projects. + +%package devel +Summary: Linear algebra and solver library using CUDA, OpenCL, and OpenMP + +%description devel +ViennaCL provides high level C++ interfaces for linear algebra routines on CPUs +and GPUs using CUDA, OpenCL, and OpenMP. The focus is on generic implementations +of iterative solvers often used for large linear systems and simple integration +into existing projects. + +%package doc +Summary: Documentation for %{name} + +%description doc +ViennaCL provides high level C++ interfaces for linear algebra routines on CPUs +and GPUs using CUDA, OpenCL, and OpenMP. The focus is on generic implementations +of iterative solvers often used for large linear systems and simple integration +into existing projects. + + +%prep +%autosetup -n ViennaCL-%{version} +rm -vrf CL + +%build +pushd build + %cmake .. \ + -DINSTALL_CMAKE_DIR:PATH=%{_datadir}/cmake \ + -DENABLE_ASAN=ON \ + -DVIENNACL_WITH_OPENCL=ON \ + -DVIENNACL_WITH_OPENMP=ON \ + -DBUILD_TESTING=ON + %make_build +popd + + +%install +pushd build + %make_install +popd + +%check +pushd build + ctest -VV \ + -I 1,59,1,61,62,63,64,65,66,67,68,69,70,71,72,73 \ + -E bisect-opencl structured-matrices-opencl +popd + + +%files devel +%doc README +%license LICENSE +%{_includedir}/%{name} +%{_datadir}/cmake/* + +%files doc +%doc doc/html + + + +%changelog +* Thu Jan 21 2016 Ilya Gradina - 1.7.1-1 +- update to 1.7.1 +- deleted example files + +* Sat Dec 19 2015 Ilya Gradina - 1.7.0-2 +- add devel, doc and example files +- trivial fixes in spec + +* Sun Dec 06 2015 Ilya Gradina - 1.7.0-1 +- Initial package