Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for NumThreads (0.16 sec)

  1. platforms/software/testing-base/src/test/groovy/org/gradle/api/internal/tasks/testing/report/DefaultTestReportTest.groovy

            where:
            numThreads << [1, 4]
        }
    
        def "generates report with aggregated index page for failing build - #numThreads parallel thread(s)"() {
            given:
            report = reportWithMaxThreads(numThreads)
            def testTestResults = failingBuildResults()
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 05 16:29:26 UTC 2024
    - 27.2K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/smb1/TestLocking.java

                }
            }
    
            Thread[] threads = new Thread[t.numThreads];
            int ti;
    
            for (ti = 0; ti < t.numThreads; ti++) {
                threads[ti] = new Thread(t);
                System.out.print(threads[ti].getName());
                threads[ti].start();
            }
    
            while (t.numComplete < t.numThreads) {
                long delay;
    
                do {
                    delay = 2L;
    
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 3.4K bytes
    - Viewed (0)
  3. platforms/software/testing-base/src/test/groovy/org/gradle/api/internal/tasks/testing/junit/result/Binary2JUnitXmlReportGeneratorSpec.groovy

        BuildOperationExecutor buildOperationExecutor
        Binary2JUnitXmlReportGenerator generator
    
        def generatorWithMaxThreads(int numThreads) {
            buildOperationExecutor = BuildOperationExecutorSupport.builder(numThreads)
                .withRunner(buildOperationRunner)
                .build()
            Binary2JUnitXmlReportGenerator reportGenerator = new Binary2JUnitXmlReportGenerator(
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 25 19:07:01 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  4. subprojects/core/src/testFixtures/groovy/org/gradle/internal/operations/BuildOperationExecutorSupport.java

    import org.gradle.internal.work.WorkerLeaseService;
    import org.gradle.test.fixtures.work.TestWorkerLeaseService;
    
    public class BuildOperationExecutorSupport {
    
        public static Builder builder(int numThreads) {
            return builder(new DefaultWorkerLimits(numThreads));
        }
    
        public static Builder builder(WorkerLimits workerLimits) {
            return new Builder(workerLimits);
        }
    
        public static class Builder {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 05 16:29:26 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/util/concurrent/TrustedListenableFutureTaskTest.java

      }
    
      @J2ktIncompatible
      @GwtIncompatible // blocking wait
      public void testRunIdempotency() throws Exception {
        final int numThreads = 10;
        final ExecutorService executor = Executors.newFixedThreadPool(numThreads);
        for (int i = 0; i < 1000; i++) {
          final AtomicInteger counter = new AtomicInteger();
          final TrustedListenableFutureTask<Integer> task =
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 13 14:28:25 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  6. subprojects/core/src/test/groovy/org/gradle/api/internal/file/archive/AbstractArchiveFileTreeTest.java

            archiveFileToRoot(getArchiveFile());
    
            // Create some visitors that will count the number of lines in each file they encounter
            List<CountingVisitor> visitors = new ArrayList<>(numThreads);
            for (int i = 0; i < numThreads; i++) {
                visitors.add(new CountingVisitor());
            }
    
            // Create callables that will send the visitors to visit the archive
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jul 28 16:17:59 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  7. tensorflow/cc/client/client_session_test.cc

          true);
      return options;
    }
    
    class CustomThreadPoolImpl : public thread::ThreadPoolInterface {
     public:
      explicit CustomThreadPoolImpl(int numThreads) {
        underlying_threadpool_.reset(new thread::ThreadPool(
            tensorflow::Env::Default(), "custom_threadpool", numThreads));
        num_schedule_called_ = 0;
      }
    
      void Schedule(std::function<void()> fn) override {
        num_schedule_called_ += 1;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 9.5K bytes
    - Viewed (0)
  8. tensorflow/compiler/aot/test.cc

      }
    }
    
    // Trivial test that runs the generated function to ensure it doesn't crash.
    TEST(TEST_NAME, NoCrash) {
      Eigen::ThreadPool pool(port::MaxParallelism());
      Eigen::ThreadPoolDevice device(&pool, pool.NumThreads());
    
      CPP_CLASS computation;
      computation.set_thread_pool(&device);
      zero_buffers(&computation);
    
      EXPECT_TRUE(computation.Run());
    }
    
    // Simple benchmark that repeatedly runs the generated function.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 3K bytes
    - Viewed (0)
  9. platforms/core-runtime/serialization/src/test/groovy/org/gradle/internal/serialize/DefaultSerializerRegistrySpec.groovy

        def "invoking DefaultSerializerRegistry from multiple threads"() {
            given:
            def conditions = new AsyncConditions(numThreads)
            def serializer = Stub(Serializer)
            numThreads.times { threadId ->
                Thread.startDaemon("DefaultSerializerRegistry Test #$threadId") {
                    conditions.evaluate {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 16:06:56 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  10. tensorflow/compiler/aot/tests/tfcompile_test.cc

      Eigen::ThreadPoolDevice device(&tp, tp.NumThreads());
    
      VariableReadonlyComp fn;
      float x = 23;
      fn.set_var_x_data(&x);
    
      fn.set_thread_pool(&device);
      fn.Run();
      EXPECT_EQ(fn.result0(), 65);
      EXPECT_EQ(fn.var_x(), 23);
    }
    
    TEST(TFCompileTest, Variable) {
      Eigen::ThreadPool tp(1);
      Eigen::ThreadPoolDevice device(&tp, tp.NumThreads());
    
      VariableComp fn;
      float x = 23;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 26.4K bytes
    - Viewed (0)
Back to top