Update to 1.13.2
This commit is contained in:
parent
e136b36133
commit
6cf404d4f2
|
@ -1,2 +1,3 @@
|
||||||
/Random123-1.08.tar.gz
|
/Random123-1.08.tar.gz
|
||||||
/Random123-1.09.tar.gz
|
/Random123-1.09.tar.gz
|
||||||
|
/Random123-1.13.2.tar.gz
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
diff -ur Random123-1.13.2.orig/include/Random123/uniform.hpp Random123-1.13.2/include/Random123/uniform.hpp
|
||||||
|
--- Random123-1.13.2.orig/include/Random123/uniform.hpp 2020-02-23 13:48:36.738627640 +0000
|
||||||
|
+++ Random123-1.13.2/include/Random123/uniform.hpp 2020-02-23 13:48:59.490040126 +0000
|
||||||
|
@@ -87,6 +87,7 @@
|
||||||
|
|
||||||
|
#include <Random123/features/compilerfeatures.h>
|
||||||
|
#include <limits>
|
||||||
|
+#include <cstddef>
|
||||||
|
#if R123_USE_CXX11_TYPE_TRAITS
|
||||||
|
#include <type_traits>
|
||||||
|
#endif
|
|
@ -1,21 +1,23 @@
|
||||||
%global debug_package %{nil}
|
%global debug_package %{nil}
|
||||||
|
|
||||||
Name: Random123
|
Name: Random123
|
||||||
Version: 1.09
|
Version: 1.13.2
|
||||||
Release: 10%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Library of random number generators
|
Summary: Library of random number generators
|
||||||
|
|
||||||
License: BSD
|
License: BSD
|
||||||
URL: http://www.deshawresearch.com/resources_random123.html
|
URL: http://www.deshawresearch.com/resources_random123.html
|
||||||
Source0: http://www.deshawresearch.com/downloads/download_random123.cgi/%{name}-%{version}.tar.gz
|
Source0: http://www.deshawresearch.com/downloads/download_random123.cgi/%{name}-%{version}.tar.gz
|
||||||
# works on aarch64
|
Patch0: 0001-add-missing-headers.patch
|
||||||
# https://github.com/neuronsimulator/nrn/pull/115/files
|
|
||||||
Patch0: 0001-enable-arrch64.patch
|
# gccfeatures.h mentions what arches are supported
|
||||||
# gccfeatures.h has a check that only permits building on x86 x86_64 and ppc
|
# these aren't on the list
|
||||||
# I'd rather not remove the check
|
ExcludeArch: mips64r2 mips32r2 s390 s390x
|
||||||
ExcludeArch: %{arm} mips64r2 mips32r2 s390 s390x
|
|
||||||
|
|
||||||
BuildRequires: doxygen
|
BuildRequires: doxygen
|
||||||
|
# For tests
|
||||||
|
BuildRequires: gcc gcc-c++
|
||||||
|
BuildRequires: patch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Random123 is a library of "counter-based" random number generators (CBRNGs), in
|
Random123 is a library of "counter-based" random number generators (CBRNGs), in
|
||||||
|
@ -40,48 +42,16 @@ Summary: Development files for %{name}
|
||||||
Provides: %{name} = %{version}-%{release}
|
Provides: %{name} = %{version}-%{release}
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
Random123 is a library of "counter-based" random number generators (CBRNGs), in
|
Development files for %{name}.
|
||||||
which the Nth random number can be obtained by applying a stateless mixing
|
|
||||||
function to N instead of the conventional approach of using N iterations of a
|
|
||||||
stateful transformation. CBRNGs were originally developed for use in MD
|
|
||||||
applications on Anton, but they are ideal for a wide range of applications on
|
|
||||||
modern multi-core CPUs, GPUs, clusters, and special-purpose hardware. Three
|
|
||||||
families of non-cryptographic CBRNGs are described in a paper presented at the
|
|
||||||
SC11 conference: ARS (based on the Advanced Encryption System (AES)), Threefry
|
|
||||||
(based on the Threefish encryption function), and Philox (based on integer
|
|
||||||
multiplication). They all satisfy rigorous statistical testing (passing
|
|
||||||
BigCrush in TestU01), vectorize and parallelize well (each generator can
|
|
||||||
produce at least 264 independent streams), have long periods (the period of
|
|
||||||
each stream is at least 2128), require little or no memory or state, and have
|
|
||||||
excellent performance (a few clock cycles per byte of random output). The
|
|
||||||
Random123 library can be used with CPU (C and C++) and GPU (CUDA and OpenCL)
|
|
||||||
applications.
|
|
||||||
|
|
||||||
%package doc
|
%package doc
|
||||||
Summary: Documentation for %{name}.
|
Summary: Documentation for %{name}.
|
||||||
|
|
||||||
%description doc
|
%description doc
|
||||||
Documentation for %{name}
|
Documentation for %{name}.
|
||||||
|
|
||||||
Random123 is a library of "counter-based" random number generators (CBRNGs), in
|
|
||||||
which the Nth random number can be obtained by applying a stateless mixing
|
|
||||||
function to N instead of the conventional approach of using N iterations of a
|
|
||||||
stateful transformation. CBRNGs were originally developed for use in MD
|
|
||||||
applications on Anton, but they are ideal for a wide range of applications on
|
|
||||||
modern multi-core CPUs, GPUs, clusters, and special-purpose hardware. Three
|
|
||||||
families of non-cryptographic CBRNGs are described in a paper presented at the
|
|
||||||
SC11 conference: ARS (based on the Advanced Encryption System (AES)), Threefry
|
|
||||||
(based on the Threefish encryption function), and Philox (based on integer
|
|
||||||
multiplication). They all satisfy rigorous statistical testing (passing
|
|
||||||
BigCrush in TestU01), vectorize and parallelize well (each generator can
|
|
||||||
produce at least 264 independent streams), have long periods (the period of
|
|
||||||
each stream is at least 2128), require little or no memory or state, and have
|
|
||||||
excellent performance (a few clock cycles per byte of random output). The
|
|
||||||
Random123 library can be used with CPU (C and C++) and GPU (CUDA and OpenCL)
|
|
||||||
applications.
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1 -S patch
|
%autosetup -S patch -p1
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
@ -90,14 +60,17 @@ pushd docs
|
||||||
doxygen Doxyfile
|
doxygen Doxyfile
|
||||||
popd
|
popd
|
||||||
|
|
||||||
# Wrong file end of line encoding
|
|
||||||
sed -i 's/\r$//' examples/BUILDVC11.BAT
|
|
||||||
sed -i 's/\r$//' examples/BUILDVC.BAT
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
mkdir -p -m 0755 $RPM_BUILD_ROOT/%{_includedir}/%{name}/
|
mkdir -p -m 0755 $RPM_BUILD_ROOT/%{_includedir}/%{name}/
|
||||||
cp -a include/Random123/* $RPM_BUILD_ROOT/%{_includedir}/%{name}/
|
cp -a include/Random123/* $RPM_BUILD_ROOT/%{_includedir}/%{name}/
|
||||||
|
|
||||||
|
%check
|
||||||
|
pushd tests
|
||||||
|
cp GNUmakefile Makefile
|
||||||
|
%set_build_flags
|
||||||
|
make
|
||||||
|
popd
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{_includedir}/%{name}/
|
%{_includedir}/%{name}/
|
||||||
|
@ -106,6 +79,12 @@ cp -a include/Random123/* $RPM_BUILD_ROOT/%{_includedir}/%{name}/
|
||||||
%doc examples
|
%doc examples
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun Feb 23 2020 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 1.13.2-1
|
||||||
|
- Update to latest release
|
||||||
|
- Run new tests
|
||||||
|
- Update arches supported
|
||||||
|
- Drop unneeded patch
|
||||||
|
|
||||||
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.09-10
|
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.09-10
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue