Update to 1.13.2

This commit is contained in:
Ankur Sinha (Ankur Sinha Gmail) 2020-02-23 14:07:06 +00:00
parent e136b36133
commit 6cf404d4f2
No known key found for this signature in database
GPG Key ID: F8D8C0BEBAC898BD
4 changed files with 39 additions and 48 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
/Random123-1.08.tar.gz
/Random123-1.09.tar.gz
/Random123-1.13.2.tar.gz

View File

@ -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

View File

@ -1,21 +1,23 @@
%global debug_package %{nil}
Name: Random123
Version: 1.09
Release: 10%{?dist}
Version: 1.13.2
Release: 1%{?dist}
Summary: Library of random number generators
License: BSD
URL: http://www.deshawresearch.com/resources_random123.html
Source0: http://www.deshawresearch.com/downloads/download_random123.cgi/%{name}-%{version}.tar.gz
# works on aarch64
# https://github.com/neuronsimulator/nrn/pull/115/files
Patch0: 0001-enable-arrch64.patch
# gccfeatures.h has a check that only permits building on x86 x86_64 and ppc
# I'd rather not remove the check
ExcludeArch: %{arm} mips64r2 mips32r2 s390 s390x
Patch0: 0001-add-missing-headers.patch
# gccfeatures.h mentions what arches are supported
# these aren't on the list
ExcludeArch: mips64r2 mips32r2 s390 s390x
BuildRequires: doxygen
# For tests
BuildRequires: gcc gcc-c++
BuildRequires: patch
%description
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}
%description devel
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.
Development files for %{name}.
%package doc
Summary: Documentation for %{name}.
%description doc
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.
Documentation for %{name}.
%prep
%autosetup -p1 -S patch
%autosetup -S patch -p1
%build
@ -90,14 +60,17 @@ pushd docs
doxygen Doxyfile
popd
# Wrong file end of line encoding
sed -i 's/\r$//' examples/BUILDVC11.BAT
sed -i 's/\r$//' examples/BUILDVC.BAT
%install
mkdir -p -m 0755 $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
%license LICENSE
%{_includedir}/%{name}/
@ -106,6 +79,12 @@ cp -a include/Random123/* $RPM_BUILD_ROOT/%{_includedir}/%{name}/
%doc examples
%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
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild

View File

@ -1 +1 @@
67ae45ff94b12acea590a6aa04ed1123 Random123-1.09.tar.gz
SHA512 (Random123-1.13.2.tar.gz) = 543ed679911177c2da00b920c376abc8c5f4496c9a6a4ed823c295f5222e370bc2b8c9c5b63e93ae507252999eecfc112ae3203a2a82f9deb8747a9f9d387b18