-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Refactor threefry tests. The threefry tests for 2x32 and 4x32 were essentially identical, and same happened with tests for 2x64 and 4x54. So I implemented a similar approach as in the sobol tests: - Added common headers (test_rocrand_threefryNx32_20_prng.hpp and test_rocrand_threefryNx32_20_prng.hpp) in which the typed tests are registered. - Removed all the duplicated code from the old tests, and add the correspondent instantiation of the gerator API tess. - The engine API tests remain unmodified because that refactor is out of the scope of the current issue. * Refactor lfsr113, mrg, mt19937, mtgp32, philox, sobol and xorwow tests. Implemented the "typed test suite" approach: - Changed the old implementation to use typed tests. - Homogeneized code structure and variables names. - Engine API tests remain unmodified because that refactor is out of the scope of the current issue. * Added lfsr113 generator tests to match the other prng generators' - init_test - uniform_float_test - normal_double_test - log_normal_float/double_test - continuity tests * Added mrg generator tests to match the other prng generators' - init_test - normal_double_test - log_normal_float/double_test - different_seed_uint4_test * Added mt19937 generator tests to match the other prng generators' - init_test - uniform_double - normal_double_test - log_normal_float/double_test - different_seed_uint4_test * Added mgp32 generator tests to match the other prng generators' - init_test - uniform_double_test - normal_double_test - log_normal_float/double_test - different_seed_uint4_test - continuity tets * Added philox generator tests to match the other prng generators' - init_test - uniform_double_test - normal_float/double_test - log_normal_float/double_test - poisson_test - different_seed_uint4_test * Added sobol generator tests for the functionality left to be tested - init_test (generator.init()) - log_normal_float/double_test (generator.generate_log_normal()) * Added threefry generator tests to match the other prng generators' - init_test - uniform_double_test - normal_float/double_test - log_normal_float/double_test - poisson_test * Added xorwow generator tests to match the other prng generators' - uniform_double_test - normal_float/double_test - log_normal_float/double_test - poisson_test - different_seed_uint4_test * Move out common functionality to header file test_rocrand_prng * mrg mad_u64_u32_test not typed * Use ordering in templated generator tests * Separate engine-only tests from generator ones for mt19937 * Add different_seed_test to common generator test suite and keep lfsr113's particular implementation * Disable lfsr113 continuity tests * Add different_seed_test to common generator test suite and keep lfsr113's particular implementation * Don't run MT19937 with dynamic ordering * Remove unnecessary includes from internal hpp headers Deprecate src/rng/distribution/distributions.hpp Deprecated src/rng/device_engines.hpp Rename and unify the existing ROCRAND_DETAIL_.*_BM_NOT_IN_STATE to ROCRAND_DETAIL_BM_NOT_IN_STATE Directly include some headers that were previously only included transitively * Added functions for float2 and double2, with tests for float2 * Clang format * Added mtgp32 tests for double and double2 * Clang format * Division of work in test with constant to prevent deadlock in cuda * MTGP32 tests cleanup and added new MTGP32 functions to CHANGELOG * Re-enable continuity tests for lfsr113 * Re-tuned lfsr113 for gfx908 * Re-tuned lfsr113 for gfx1030 * Re-tuned lfsr113 for gfx906 * Add comment for mtgp32 continuity tests * Add offsets test to threefyNx64 generators * Fix test types for threefryNx64_20 * Fix incorrect output type in sobol64 test for poisson distribution and doxygen docs for (scrambled) sobol64 * clarify and add check for dynamic ordering on host * add api function to create block host generator * add mtgp32 host generator * Removed FQUALIFIERS and MT_FQUALIFIERS * Made rocrand, rocrand_mtgp32_block_copy and rocrand_mtgp32_set_params device function for mtgp32_engine * Removed FQUALIFIER added in merge * Made the function calls for mtpg32 in discrete, log_normal, normal and uniform only device * Add generator of precomputed state matrices for LFSR113 * Add common header with utility functions for matrix exponentiation * Implement skipahead for LFSR113 * Add engine API tests for LFSR113's discard()/discard(offset) functions * Implement offset for LFSR113 * Add generator API offsets test for LFSR113 * Update CHANGELOG * Fix python tests * Add comments to utils_matrix_exponentiation functions and merge equivalent implementations * Fix comments from LFSR113's precomputed matrices generation * Removed unneded methods and extra semicolon * Default initialize to prevent breaking change * Fix typo in LFSR113's precomputed state matrices generation * Use hip_runtime's uint4 * Remove arguments passed by value and global mutable variables * Enable host generator test for LFSR113 * Cmake files to build all non kernel tests with cpp * Add g++ wrapper package test to CI * Removed unused Windows code from cmake in cpp_wrapper * add dynamic ordering for gfx1102 * fix changelog * Move internal symbols to namespace rocrand_impl * Updated Doxyfile * Updated changelog --------- Co-authored-by: Beatriz Navidad Vilches <[email protected]> Co-authored-by: Matthias Knorr <[email protected]> Co-authored-by: Nick Breed <[email protected]> Co-authored-by: Nol Moonen <[email protected]> Co-authored-by: Lőrinc Serfőző <[email protected]> Co-authored-by: Nara Prasetya <[email protected]>
- Loading branch information
1 parent
0f63134
commit 02b2669
Showing
143 changed files
with
10,062 additions
and
7,192 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.