Searched refs:random (Results 26 - 50 of 50) sorted by relevance

12

/gem5/configs/dram/
H A Dlat_mem_rd.py170 # 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 Dgtest-internal-inl.h105 // 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 Dgtest.cc308 // 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 Ddist_etherlink.cc55 #include "base/random.hh"
199 delay += random_mt.random<Tick>(0, delayVar);
H A Detherlink.cc55 #include "base/random.hh"
192 delay += random_mt.random<Tick>(0, delayVar);
H A Detherswitch.cc38 #include "base/random.hh"
208 delay += random_mt.random<Tick>(0, delayVar);
/gem5/src/mem/
H A Dsimple_mem.cc47 #include "base/random.hh"
233 (latency_var ? random_mt.random<Tick>(0, latency_var) : 0);
/gem5/src/cpu/pred/
H A Dmultiperspective_perceptron_tage.cc41 #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 Dloop_predictor.cc39 #include "base/random.hh"
242 if ((random_mt.random<int>() & 3) == 0 || !restrictAllocation) {
244 int nrand = random_mt.random<int>();
H A Dtage_sc_l_8KB.cc44 #include "base/random.hh"
211 ((random_mt.random<int>() & 31) == 0);
226 if ((random_mt.random<int>() & 7) == 0) {
H A Dmultiperspective_perceptron.cc41 #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 Dbarchart.py295 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 Dsimple_cache.cc33 #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 Dbasinterp.py6 import random
25 'RND' : lambda z: random.random()
/gem5/src/arch/mips/
H A Dpra_constants.hh52 Bitfield<30, 0> random; member in namespace:MipsISA
/gem5/src/arch/riscv/
H A Dpra_constants.hh52 Bitfield<30, 0> random; member in namespace:RiscvISA
H A Dprocess.cc50 #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 DPerfectSwitch.cc34 #include "base/random.hh"
185 random_mt.random(0, 0xff);
/gem5/src/cpu/testers/traffic_gen/
H A Dtraffic_gen.cc50 #include "base/random.hh"
343 double p = random_mt.random<double>();
/gem5/ext/pybind11/tests/
H A Dtest_numpy_array.py201 a1 = np.random.random((4, 4, 4))
/gem5/src/dev/arm/
H A Dsmmu_v3_caches.hh50 #include "base/random.hh"
67 Random random; member in class:SMMUv3BaseCache
/gem5/ext/googletest/googletest/test/
H A Dgtest_unittest.cc713 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 Dstattest.cc665 sh1.sample(random() % 10000);
/gem5/ext/googletest/googletest/include/gtest/
H A Dgtest.h118 // 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 Dfetch_impl.hh58 #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));

Completed in 88 milliseconds

12