CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
21 KiB
21 KiB
#Changelog for rocRAND
Documentation for rocRAND is available at https://rocm.docs.amd.com/projects/rocRAND/en/latest/
rocRAND 5.0.0 for ROCm 10.0
Removed
- Removed
h_scrambled_sobol(32|64)_constants,rocrand_h_scrambled_sobol(32|64)_direction_vectors,rocrand_h_sobol(32|64)_direction_vectorsfrom public namespace.
rocRAND 4.5.0 for ROCm 7.14
Added
- gfx1250 support
Since last release ROCm 7.12
Added
- gfx1150,gfx1152 and gfx1153 support
- rocrand.dll now contains embedded file version metadata.
Resolved Issues
- Fixed memory leak in unit tests.
- Fixed incorrect Sobol64 number generation beyond offset 2^32.
rocRAND 4.3.0 for ROCm 7.12
Resolved issue
- Fixed dynamic ordering support for threefry generators.
Changed
- Optimized
xorwowgenerator performance forgfx908andgfx942architectures. - Benchmarking now requires AMD SMI to be installed.
- rocRAND now uses the new single-header library 'primbench' for benchmarks, rather than Google Benchmark. primbench requires AMD SMI.
- See
shared/primbench/README.mdfor the primbench documentation.
rocRAND 4.2.0 for ROCm 7.2
Removed
- For performance reasons in the
mrg31k3p_state,mrg32k3a_state,xorwow_stateandphilox4x32_10_statestates are theboxmuller_float_stateandboxmuller_double_stateremoved now and theboxmuller_floatandboxmuller_doubleare set with NaN when the value is not set.
Added
- Added a new CMake option
-DUSE_SYSTEM_LIBto allow tests to be built fromROCmlibraries provided by the system.
Changed
- Changed the
launchmethod inhost_systemanddevice_system, so that kernels with all supported arches can be compiled with correct configuration during host pass. All generators are updated accordingly for support of SPIR-V. To invoke SIPR-V, it should be built with-DAMDGPU_TARGETS=amdgcnspirv.
rocRAND 4.1.0 for ROCm 7.1
Changed
- Changed the
USE_DEVICE_DISPATCHflag so it can turn device dispatch off by setting it to zero. Device dispatch should be turned off when building for SPIRV.
Resolved issues
- Updated error handling for several rocRAND unit tests to accommodate the
hipGetLastErrorbehaviour introduced in ROCm 7.0, which clears the internal error state on each call tohipGetLastErrorrather than on every HIP API call.
rocRAND 4.0.0 for ROCm 7.0
Added
- gfx950 support
- Additional unit tests for
test_log_normal_distribution.cpp - Additional unit tests for
test_normal_distribution.cpp - Additional unit tests for
test_rocrand_mtgp32_prng.cpp - Additional unit tests for
test_rocrand_scrambled_sobol32_qrng.cpp - Additional unit tests for
test_rocrand_scrambled_sobol64_qrng.cpp - Additional unit tests for
test_rocrand_sobol32_qrng.cpp - Additional unit tests for
test_rocrand_sobol64_qrng.cpp - Additional unit tests for
test_rocrand_threefry2x32_20_prng.cpp - Additional unit tests for
test_rocrand_threefry2x64_20_prng.cpp - Additional unit tests for
test_rocrand_threefry4x32_20_prng.cpp - Additional unit tests for
test_rocrand_threefry4x64_20_prng.cpp - Additional unit tests for
test_uniform_distribution.cpp - New unit tests for
include/rocrand/rocrand_discrete.hintest_rocrand_discrete.cpp - New unit tests for
include/rocrand/rocrand_mrg31k3p.hintest_rocrand_mrg31k3p_prng.cpp - New unit tests for
include/rocrand/rocrand_mrg32k3a.hintest_rocrand_mrg32k3a_prng.cpp - New unit tests for
include/rocrand/rocrand_poisson.hintest_rocrand_poisson.cpp
Changed
- Changed the return type for
rocrand_generate_poissonfor theSOBOL64andSCRAMBLED_SOBOL64engines. - Changed the unnecessarily large 64-bit data type for constants used for skipping in
MRG32K3Ato the 32-bit data type. - Updated several
gfx942auto tuning parameters. - Modified error handling and expanded the error information for the case of double-deallocation of the (scrambled) sobol32 and sobol64 constants and direction vectors.
Removed
- Removed inline assembly and the
ENABLE_INLINE_ASMCMake option. Inline assembly was used to optimizate of multiplications in the Mrg32k3a and Philox 4x32-10 generators. It is no longer needed because the current HIP compiler is able to produce code with the same or better performance. - Removed instances of the deprecated clang definition
__AMDGCN_WAVEFRONT_SIZE. - Removed C++14 support. Beginning with this release, only C++17 is supported.
- Directly accessing the (scrambled) sobol32 and sobol64 constants and direction vectors is no longer supported. For:
h_scrambled_sobol32_constants, userocrand_get_scramble_constants32instead.h_scrambled_sobol64_constants, userocrand_get_scramble_constants64instead.rocrand_h_sobol32_direction_vectors, userocrand_get_direction_vectors32instead.rocrand_h_sobol64_direction_vectors, userocrand_get_direction_vectors64instead.rocrand_h_scrambled_sobol32_direction_vectors, userocrand_get_direction_vectors32instead.rocrand_h_scrambled_sobol64_direction_vectors, userocrand_get_direction_vectors64instead.
Resolved issues
- Fixed an issue where
mt19937.hppwould cause kernel errors during auto tuning.
Upcoming changes
- Deprecated the rocRAND Fortran API in favor of hipfort.
rocRAND 3.3.0 for ROCm 6.4
Added
- Added extended tests to
rtest.py. These tests are extra tests that did not fit the criteria of smoke and regression tests. These tests will take much longer to run relative to smoke and regression tests. Usepython rtest.py [--emulation|-e|--test|-t]=extendedto run these tests. - Added regression tests to
rtest.py. These tests recreate scenarios that have caused hardware problems in past emulation environments. Usepython rtest.py [--emulation|-e|--test|-t]=regressionto run these tests. - Added smoke test options, which runs a subset of the unit tests and ensures that less than 2gb of VRAM will be used. Use
python rtest.py [--emulation|-e|--test|-t]=smoketo run these tests. - Added
--emulationoption forrtest.py
Changed
- Removed a section in
cmake/Dependencies.cmakethat was forcingDCMAKE_CXX_COMPILERto be set to eitherclorg++if the compiler was notGNU. --test|-tis no longer a required flag forrtest.py. Instead, the user can use either--emulation|-eor--test|-t, but not both.- Removed TBB dependency for multi-core processing of host-side generation.
Resolved issues
- Fixed an issue where
CMAKE_PREFIX_PATHwas not defined properly inCMAKELists.txtandtoolchain-linux.cmake. - Fixed an issue in
rmake.pywherecmake_platform_optswas sometimes a string instead of a list.
rocRAND 3.2.0 for ROCm 6.3.0
Added
- Added host generator for MT19937
- Support for
rocrand_generate_poissonin hipGraphs - Added engine, distribution, mode, throughput_gigabytes_per_second, and lambda columns for the csv format in
benchmark_rocrand_host_apiandbenchmark_rocrand_device_api. To see these new columns, set--benchmark_format=csvor--benchmark_out_format=csv --benchmark_out="outName.csv".
Changed
- Updated the default value for the
-aargument fromrmake.pytogfx906:xnack-,gfx1030,gfx1100,gfx1101,gfx1102,gfx1151,gfx1200,gfx1201. rocrand_discretefor MTGP32, LFSR113 and ThreeFry generators now uses the alias method, which is faster than binary search in CDF.
rocRAND 3.1.1 for ROCm 6.2.4
Fixes
- Fixed an issue in
rmake.pywhere the list storing cmake options would contain individual characters instead of a full string of options. - Fixed " unknown extension ?>" issue in scripts/config-tuning/select_best_config.py when using python version thats older than 3.11
- Fixed low random sequence quality of
ROCRAND_RNG_PSEUDO_THREEFRY2_64_20andROCRAND_RNG_PSEUDO_THREEFRY4_64_20.
rocRAND 3.1.0 for ROCm 6.2.0
Additions
- Added
rocrand_create_generator_host- The following generators are supported:
ROCRAND_RNG_PSEUDO_MRG31K3PROCRAND_RNG_PSEUDO_MRG32K3AROCRAND_RNG_PSEUDO_PHILOX4_32_10ROCRAND_RNG_PSEUDO_THREEFRY2_32_20ROCRAND_RNG_PSEUDO_THREEFRY2_64_20ROCRAND_RNG_PSEUDO_THREEFRY4_32_20ROCRAND_RNG_PSEUDO_THREEFRY4_64_20ROCRAND_RNG_PSEUDO_XORWOWROCRAND_RNG_QUASI_SCRAMBLED_SOBOL32ROCRAND_RNG_QUASI_SCRAMBLED_SOBOL64ROCRAND_RNG_QUASI_SOBOL32ROCRAND_RNG_QUASI_SOBOL64
- The host-side generators support multi-core processing. On Linux, this requires the TBB (Thread Building Blocks) development package to be installed on the system when building rocRAND (
libtbb-devon Ubuntu and derivatives).- If TBB is not found when configuring rocRAND, the configuration is still successful, and the host generators are executed on a single CPU thread.
- The following generators are supported:
- Added the option to create a host generator to the Python wrapper
- Added the option to create a host generator to the Fortran wrapper
- Added dynamic ordering. This ordering is free to rearrange the produced numbers,
which can be specific to devices and distributions. It is implemented for:
- XORWOW, MRG32K3A, MTGP32, Philox 4x32-10, MRG31K3P, LFSR113, and ThreeFry
- For the NVIDIA platform compilation using clang as the host compiler is now supported.
- C++ wrapper:
lfsr113_enginenow also supports being constructed with a seed of typeunsigned long long, not onlyuint4.- added optional order parameter to constructor of
mt19937_engine
- Added the following functions for the
ROCRAND_RNG_PSEUDO_MTGP32generator:rocrand_normal2rocrand_normal_double2rocrand_log_normal2rocrand_log_normal_double2
- Added
rocrand_create_generator_host_blockingwhich dispatches without stream semantics. - Added host-side generator for
ROCRAND_RNG_PSEUDO_MTGP32. - Added offset and skipahead functionality to LFSR113 generator.
- Added dynamic ordering for architecture
gfx1102.
Changes
- For device-side generators, you can now wrap calls to rocrand_generate_* inside of a hipGraph. There are a few
things to be aware of:
- Generator creation (rocrand_create_generator), initialization (rocrand_initialize_generator), and destruction (rocrand_destroy_generator) must still happen outside the hipGraph.
- After the generator is created, you may call API functions to set its seed, offset, and order.
- After the generator is initialized (but before stream capture or manual graph creation begins), use rocrand_set_stream to set the stream the generator will use within the graph.
- A generator's seed, offset, and stream may not be changed from within the hipGraph. Attempting to do so may result in unpredicable behaviour.
- API calls for the poisson distribution (eg. rocrand_generate_poisson) are not yet supported inside of hipGraphs.
- For sample usage, see the unit tests in test/test_rocrand_hipgraphs.cpp
- Building rocRAND now requires a C++17 capable compiler, as the internal library sources now require it. However consuming rocRAND is still possible from C++11 as public headers don't make use of the new features.
- Building rocRAND should be faster on machines with multiple CPU cores as the library has been split to multiple compilation units.
- C++ wrapper: the
min()andmax()member functions of the generators and distributions are nowstatic constexpr. - Rename and unify the existing ROCRAND_DETAIL_.*_BM_NOT_IN_STATE to ROCRAND_DETAIL_BM_NOT_IN_STATE
- Static & dynamic library: moved all internal symbols to namespaces to avoid potential symbol name collisions when linking.
Deprecations
- Deprecated the following typedefs. Please use the unified
state_typealias instead.rocrand_device::threefry2x32_20_engine::threefry2x32_20_staterocrand_device::threefry2x64_20_engine::threefry2x64_20_staterocrand_device::threefry4x32_20_engine::threefry4x32_20_staterocrand_device::threefry4x64_20_engine::threefry4x64_20_state
- Deprecated internal header: src/rng/distribution/distributions.hpp
- Deprecated internal header: src/rng/device_engines.hpp
Removals
- Removed references to and workarounds for deprecated hcc.
- Support for HIP-CPU
Known issues
- SOBOL64 and SCRAMBLED_SOBOL64 generate poisson-distributed
unsigned long long intnumbers instead ofunsigned int. This will be fixed in the next major release.
rocRAND-3.0.0 for ROCm 6.0.0
Additions
- Added
rocrand_create_generator_hostwith initial support forROCRAND_RNG_PSEUDO_PHILOX4_32_10andROCRAND_RNG_PSEUDO_MRG31K3P. - Added the option to create a host generator to the Python wrapper
- Added the option to create a host generator to the Fortran wrapper
Changes
- Generator classes from
rocrand.hppare no longer copyable (in previous versions these copies would copy internal references to the generators and would lead to double free or memory leak errors)- These types should be moved instead of copied; move constructors and operators are now defined
Optimizations
- Improved MT19937 initialization and generation performance
Removals
- Removed the hipRAND submodule from rocRAND; hipRAND is now only available as a separate package
- Removed references to, and workarounds for, the deprecated hcc
Fixes
mt19937_enginefromrocrand.hppis now move-constructible and move-assignable (the move constructor and move assignment operator was deleted for this class)- Various fixes for the C++ wrapper header
rocrand.hpp- The name of
mrg31k3pit is now correctly spelled (was incorrectly namedmrg31k3ain previous versions) - Added the missing
ordersetter method forthreefry4x64 - Fixed the default ordering parameter for
lfsr113
- The name of
- Build error when using Clang++ directly resulting from unsupported
amdgpu-targetreferences - Added hip::device as dependency to benchmark_rocrand_tuning to make it compile with amdclang++.
- Minor entropy waste in 64-bits Threefry function producing two log-normally-distributed doubles.
rocRAND-2.10.17 for ROCm 5.5.0
Additions
- MT19937 pseudo random number generator based on M. Matsumoto and T. Nishimura, 1998, Mersenne Twister: A 623-dimensionally equidistributed uniform pseudorandom number generator
- New benchmark APIs for Google Benchmark:
benchmark_rocrand_device_apireplacesbenchmark_rocrand_kernelbenchmark_curand_host_apireplacesbenchmark_curand_generatebenchmark_curand_device_apireplacesbenchmark_curand_kernel
- Experimental HIP-CPU feature
- ThreeFry pseudorandom number generator based on Salmon et al., 2011, Parallel random numbers: as easy as 1, 2, 3
- Accessor methods for SOBOL 32 and 64 direction vectors and constants:
- Enum
rocrand_direction_vector_setto select the direction vector set rocrand_get_direction_vectors32(...)supersedes:rocrand_h_sobol32_direction_vectorsrocrand_h_scrambled_sobol32_direction_vectors
rocrand_get_direction_vectors64(...)supersedes:rocrand_h_sobol64_direction_vectorsrocrand_h_scrambled_sobol64_direction_vectors
rocrand_get_scramble_constants32(...)supersedesh_scrambled_sobol32_constantsrocrand_get_scramble_constants64(...)supersedesh_scrambled_sobol64_constants
- Enum
Changes
- Python 2.7 is no longer officially supported
rocRAND-2.10.16 for ROCm 5.4.0
Additions
- MRG31K3P pseudorandom number generator based on L'Ecuyer and Touzin, 2000, Fast combined multiple recursive generators with multipliers of the form a = ±2q ±2r
- LFSR113 pseudorandom number generator based on L'Ecuyer, 1999, Tables of maximally equidistributed combined LFSR generators
SCRAMBLED_SOBOL32andSCRAMBLED_SOBOL64quasirandom number generators (scrambled Sobol sequences are generated by scrambling the output of a Sobol sequence)
Changes
- The
mrg_<distribution>_distributionstructures, which provide numbers based on MRG32K3A, have been replaced bymrg_engine_<distribution>_distribution, where<distribution>islog_normal,normal,poisson, oruniform- These structures provide numbers for MRG31K3P (with template type
rocrand_state_mrg31k3p) and MRG32K3A (with template typerocrand_state_mrg32k3a)
- These structures provide numbers for MRG31K3P (with template type
Fixes
- Sobol64 now returns 64-bit (instead of 32-bit) random numbers, which results in the performance of this generator being regressed
- Bug that prevented Windows code compilation in C++ mode (with a host compiler) when rocRAND headers were included
rocRAND-2.10.15 for ROCm 5.3.0
Additions
- New benchmark for the host API using Google benchmark that replaces
benchmark_rocrand_generate, which is deprecated
Changes
- Increased the number of warmup iterations for
rocrand_benchmark_generatefrom 5 to 15 to eliminate corner cases that generate artificially high benchmark scores
(Released) rocRAND-2.10.14 for ROCm 5.2.0
Additions
- Backward compatibility for
#include <rocrand.h>(deprecated) using wrapper header files - Packages for test and benchmark executables on all supported operating systems using CPack
rocRAND-2.10.13 for ROCm 5.1.0
Additions
- Generating a random sequence of different sizes now produces the sequence without gaps,
independent of how many values are generated per call
- This is only in the case of XORWOW, MRG32K3A, PHILOX4X32_10, SOBOL32, and SOBOL64
- This is only true if the size in each call is a divisor of the distributions
output_widthdue to performance - The output pointer must be aligned with
output_width * sizeof(output_type)
Changes
- hipRAND has been split into a separate package
- Header file installation location changed to match other libraries.
- When using the
rocrand.hheader file, use#include <rocrand/rocrand.h>rather than#include <rocrand.h>
- When using the
- rocRAND still includes hipRAND using a submodule
- The rocRAND package sets the provides field with hipRAND, so projects that require hipRAND can begin to specify it
Fixes
- Offset behavior for XORWOW, MRG32K3A, and PHILOX4X32_10 generator
- Setting offset now correctly generates the same sequence starting from the offset
- Only uniform
intandfloatwill work, as these can be generated with a single call to the generator
Known issues
kernel_xorwowunit test is failing for certain GPU architectures
rocRAND-2.10.12 for ROCm 5.0.0
There are no updates for this ROCm release.
rocRAND-2.10.12 for ROCm 4.5.0
Additions
- Initial HIP on Windows support
Changes
- Packaging has been split into a runtime package (
rocrand) and a development package (rocrand-devel): The development package depends on the runtime package. When installing the runtime package, the package manager will suggest the installation of the development package to aid users transitioning from the previous version's combined package. This suggestion by package manager is for all supported operating systems (except CentOS 7) to aid in the transition. Thesuggestionfeature in the runtime package is introduced as a deprecated feature and will be removed in a future ROCm release.
Fixes
mrg_uniform_distribution_doubleis no longer generating an incorrect range of values- Order of state calls for
log_normal,normal, anduniform
Known issues
kernel_xorwowtest is failing for certain GPU architectures
[rocRAND-2.10.11 for ROCm 4.4.0]
Additions
- Sobol64 support
- Benchmark time measurement improvement
- AddressSanitizer build option
Fixes
- NVCC backend fix
- Fix ranges of MRG32k3a device functions
[rocRAND-2.10.10 for ROCm 4.3.0]
Additions
- gfx90a support
- gfx1030 support
- gfx803 supported re-enabled
Fixes
- Memory leaks in Poisson tests
- Memory leaks when generator is created, but setting seed/offset/dimensions throws an exception
[rocRAND-2.10.9 for ROCm 4.2.0]
Fixes
- The rocRAND benchmark performance drop for
xorwowhas been fixed for older ROCm builds
[rocRAND-2.10.8 for ROCm 4.1.0]
Additions
- Ability to force install dependencies with new
-dflag in install script
Changes
- rocRAND package name has been updated to support newer versions of ROCm
Fixes
- rocRAND benchmark performance drop
- Debug builds via the install script
[rocRAND-2.10.7 for ROCm 4.0.0]
There are no updates for this ROCm release.
[rocRAND-2.10.6 for ROCm 3.10]
There are no updates for this ROCm release.
[rocRAND-2.10.5 for ROCm 3.9.0]
There are no updates for this ROCm release.
[rocRAND-2.10.4 for ROCm 3.8.0]
There are no updates for this ROCm release.
[rocRAND-2.10.3 for ROCm 3.7.0]
Fixes
- Package naming now reflects operating system name and architecture
[rocRAND-2.10.2 for ROCm 3.6.0]
There are no updates for this ROCm release.
[rocRAND-2.10.1 for ROCm 3.5.0]
Additions
- Static library build options were added in the beta; these are subject to change (build method and naming) in future releases
Changes
- HIP-Clang is now the default compiler
Deprecations
- HCC build