Skip to content

Commit

Permalink
Reduced range of random values to avoid bit-level inconsistencies for…
Browse files Browse the repository at this point in the history
… large matrices.
  • Loading branch information
kerrmudgeon committed Sep 20, 2018
1 parent 77d1e0c commit 0826572
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tools/test/perf/testbench_options.h
Expand Up @@ -263,18 +263,18 @@ struct InitialDistribution {

/// Basic uniform random distribution
InitialDistribution(int64_t _seed = 700) : seed(_seed) {
dist_A.set_uniform(-8, 8);
dist_B.set_uniform(-8, 8);
dist_C.set_uniform(-8, 8);
dist_A.set_uniform(-4, 4);
dist_B.set_uniform(-4, 4);
dist_C.set_uniform(-4, 4);
}

/// Extracts initial distribution from command line arguments
InitialDistribution(cutlass::CommandLine const &args) {
// Set initial values
seed = 700;
dist_A.set_uniform(-8, 8);
dist_B.set_uniform(-8, 8);
dist_C.set_uniform(-8, 8);
dist_A.set_uniform(-4, 4);
dist_B.set_uniform(-4, 4);
dist_C.set_uniform(-4, 4);

// Update with command line arguments
args.get_cmd_line_argument("seed", seed, seed);
Expand Down

0 comments on commit 0826572

Please sign in to comment.