/gem5/configs/dram/ |
H A D | lat_mem_rd.py | 170 # for every data point, we create a trace containing a random address 194 import random 195 random.shuffle(addrs) 226 # create the actual random trace for this range
|
/gem5/ext/googletest/googletest/src/ |
H A D | gtest-internal-inl.h | 105 // A valid random seed must be in [1, kMaxRandomSeed]. 134 // Returns a random seed in range [1, kMaxRandomSeed] based on the 149 // Returns the first valid random seed after 'seed'. The behavior is 154 << "Invalid random seed " << seed << " - must be in [1, " 312 void ShuffleRange(internal::Random* random, int begin, int end, argument 326 const int selected = begin + random->Generate(range_width); 333 inline void Shuffle(internal::Random* random, std::vector<E>* v) { argument 334 ShuffleRange(random, 0, static_cast<int>(v->size()), v); 788 // Gets the random seed used at the start of the current test iteration. 791 // Gets the random numbe 792 internal::Random* random() { return &random_; } function in class:testing::internal::UnitTestImpl [all...] |
H A D | gtest.cc | 308 // Generates a random number from [0, range), using a Linear 2793 void TestCase::ShuffleTests(internal::Random* random) { argument 2794 Shuffle(random, &test_indices_); 4285 // Returns the random seed used at the start of the current test run. 4627 random()->Reseed(random_seed_); 4679 // Picks a new random seed for each iteration. 4941 ShuffleRange(random(), 0, last_death_test_case_ + 1, &test_case_indices_); 4944 ShuffleRange(random(), last_death_test_case_ + 1, 4949 test_cases_[i]->ShuffleTests(random());
|
/gem5/src/dev/net/ |
H A D | dist_etherlink.cc | 55 #include "base/random.hh" 199 delay += random_mt.random<Tick>(0, delayVar);
|
H A D | etherlink.cc | 55 #include "base/random.hh" 192 delay += random_mt.random<Tick>(0, delayVar);
|
H A D | etherswitch.cc | 38 #include "base/random.hh" 208 delay += random_mt.random<Tick>(0, delayVar);
|
/gem5/src/mem/ |
H A D | simple_mem.cc | 47 #include "base/random.hh" 233 (latency_var ? random_mt.random<Tick>(0, latency_var) : 0);
|
/gem5/src/cpu/pred/ |
H A D | multiperspective_perceptron_tage.cc | 41 #include "base/random.hh" 98 if ((random_mt.random<int>() & 127) < 32) { 181 if ((taken == pred_taken) && ((random_mt.random<int>() & 31) != 0)) { 261 return ((random_mt.random<int>() & 7) == 0); 646 random_mt.random<int>(), corrTarget,
|
H A D | loop_predictor.cc | 39 #include "base/random.hh" 242 if ((random_mt.random<int>() & 3) == 0 || !restrictAllocation) { 244 int nrand = random_mt.random<int>();
|
H A D | tage_sc_l_8KB.cc | 44 #include "base/random.hh" 211 ((random_mt.random<int>() & 31) == 0); 226 if ((random_mt.random<int>() & 7) == 0) {
|
H A D | multiperspective_perceptron.cc | 41 #include "base/random.hh" 495 // udpate a random weight 497 int nrand = random_mt.random<int>() % specs.size(); 657 // filter, blow a random filter entry away 660 int rnd = random_mt.random<int>() %
|
/gem5/util/stats/ |
H A D | barchart.py | 295 from random import randrange 296 import random, sys 311 #data = [ random.randrange(size - i) + 10 for i in xrange(size) ]
|
/gem5/src/learning_gem5/part2/ |
H A D | simple_cache.cc | 33 #include "base/random.hh" 370 // Select random thing to evict. This is a little convoluted since we 374 bucket = random_mt.random(0, (int)cacheStore.bucket_count() - 1); 377 random_mt.random(0, bucket_size - 1));
|
/gem5/ext/ply/example/BASIC/ |
H A D | basinterp.py | 6 import random 25 'RND' : lambda z: random.random()
|
/gem5/src/arch/mips/ |
H A D | pra_constants.hh | 52 Bitfield<30, 0> random; member in namespace:MipsISA
|
/gem5/src/arch/riscv/ |
H A D | pra_constants.hh | 52 Bitfield<30, 0> random; member in namespace:RiscvISA
|
H A D | process.cc | 50 #include "base/random.hh" 161 // Copy random bytes (for AT_RANDOM) to stack 165 [&]{ return random_mt.random(0, 0xFF); });
|
/gem5/src/mem/ruby/network/simple/ |
H A D | PerfectSwitch.cc | 34 #include "base/random.hh" 185 random_mt.random(0, 0xff);
|
/gem5/src/cpu/testers/traffic_gen/ |
H A D | traffic_gen.cc | 50 #include "base/random.hh" 343 double p = random_mt.random<double>();
|
/gem5/ext/pybind11/tests/ |
H A D | test_numpy_array.py | 201 a1 = np.random.random((4, 4, 4))
|
/gem5/src/dev/arm/ |
H A D | smmu_v3_caches.hh | 50 #include "base/random.hh" 67 Random random; member in class:SMMUv3BaseCache
|
/gem5/ext/googletest/googletest/test/ |
H A D | gtest_unittest.cc | 713 testing::internal::Random random(42); 715 random.Generate(0), 718 random.Generate(testing::internal::Random::kMaxRange + 1), 725 testing::internal::Random random(12345); 727 EXPECT_LT(random.Generate(kRange), kRange) << " for iteration " << i; 742 testing::internal::Random random(kSeed); 744 values[i] = random.Generate(kRange); 747 random.Reseed(kSeed); 749 EXPECT_EQ(values[i], random.Generate(kRange)) << " for iteration " << i; 814 testing::internal::Random random( [all...] |
/gem5/src/unittest/ |
H A D | stattest.cc | 665 sh1.sample(random() % 10000);
|
/gem5/ext/googletest/googletest/include/gtest/ |
H A D | gtest.h | 118 // This flag specifies the random number seed. 925 void ShuffleTests(internal::Random* random); 1180 // Returns the random seed used at the start of the current test run.
|
/gem5/src/cpu/o3/ |
H A D | fetch_impl.hh | 58 #include "base/random.hh" 676 // Check that we're not going off into random memory 962 // Pick a random thread to start trying to grab instructions from 964 std::advance(tid_itr, random_mt.random<uint8_t>(0, activeThreads->size() - 1));
|