Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for getExecutor (0.43 sec)

  1. tensorflow/c/experimental/stream_executor/stream_executor_test.cc

        test_util::PopulateDefaultDeviceFns(&device_fns_);
        test_util::PopulateDefaultStreamExecutor(&se_);
        test_util::PopulateDefaultTimerFns(&timer_fns_);
      }
      void TearDown() override {}
    
      StreamExecutor* GetExecutor(int ordinal) {
        if (!cplatform_) {
          cplatform_ = absl::make_unique<CPlatform>(
              platform_, test_util::DestroyPlatform, platform_fns_,
              test_util::DestroyPlatformFns, device_fns_, se_, timer_fns_);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 20 19:54:04 UTC 2024
    - 26.5K bytes
    - Viewed (0)
  2. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/TaskServiceInjectionIntegrationTest.groovy

            given:
            buildFile << """
                import org.gradle.workers.WorkerExecutor
    
                class CustomTask extends DefaultTask {
                    @Inject
                    WorkerExecutor getExecutor() { }
    
                    @TaskAction
                    void printIt() {
                        println(executor != null ? "got it" : "NOT IT")
                    }
                }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 04 22:26:51 UTC 2021
    - 7.9K bytes
    - Viewed (0)
  3. subprojects/core/src/integTest/groovy/org/gradle/api/PluginServiceInjectionIntegrationTest.groovy

        }
    
        def "can inject service using getter method"() {
            buildFile """
                class CustomPlugin implements Plugin<Project> {
                    @Inject
                    WorkerExecutor getExecutor() { }
    
                    void apply(Project p) {
                        println(executor != null ? "got it" : "NOT IT")
    
                        // is generated but not extensible
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 02 18:26:28 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  4. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheWorkerApiIntegrationTest.groovy

                abstract class UsesWorker extends DefaultTask {
                    @Input
                    abstract ${type} getValue()
    
                    @Inject
                    abstract WorkerExecutor getExecutor()
    
                    @TaskAction
                    def go() {
                        def flag = value
                        executor.noIsolation().submit(SomeWorkAction) {
                            value = flag
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  5. tensorflow/c/experimental/stream_executor/stream_executor_internal.h

      absl::StatusOr<std::unique_ptr<DeviceDescription>> DescriptionForDevice(
          int ordinal) const override;
      absl::StatusOr<StreamExecutor*> ExecutorForDevice(int ordinal) override;
      absl::StatusOr<StreamExecutor*> GetExecutor(
          const StreamExecutorConfig& config) override;
      absl::StatusOr<std::unique_ptr<StreamExecutor>> GetUncachedExecutor(
          const StreamExecutorConfig& config) override;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jun 14 07:39:19 UTC 2024
    - 8K bytes
    - Viewed (0)
  6. tensorflow/c/experimental/stream_executor/stream_executor.cc

    }
    absl::StatusOr<StreamExecutor*> CPlatform::ExecutorForDevice(int ordinal) {
      stream_executor::StreamExecutorConfig config;
      config.ordinal = ordinal;
      return GetExecutor(config);
    }
    absl::StatusOr<StreamExecutor*> CPlatform::GetExecutor(
        const StreamExecutorConfig& config) {
      return executor_cache_.GetOrCreate(
          config, [&]() { return GetUncachedExecutor(config); });
    }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jun 14 07:39:19 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  7. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/ConcurrentTestUtil.groovy

                ManagedScheduledExecutor createScheduled(String displayName, int fixedSize) {
                    throw new UnsupportedOperationException()
                }
            }
        }
    
        Executor getExecutor() {
            return new Executor() {
                void execute(Runnable runnable) {
                    startThread(runnable)
                }
            }
        }
    
        TestThread startThread(Runnable cl) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 22.9K bytes
    - Viewed (0)
  8. subprojects/core/src/testFixtures/groovy/org/gradle/util/internal/MultithreadedTestRule.java

        private final SyncPoint syncPoint = new SyncPoint();
    
        /**
         * Creates an Executor which the test can control.
         */
        protected ExecutorService getExecutor() {
            if (executor == null) {
                executor = new ExecutorImpl();
            }
            return executor;
        }
    
        /**
         * Creates an ExecutorFactory for the test to use.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 05 19:36:14 UTC 2023
    - 23.3K bytes
    - Viewed (0)
  9. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/AbstractIntegrationTest.java

        protected GradleExecuter inDirectory(File directory) {
            return getExecuter().inDirectory(directory);
        }
    
        @Deprecated
        protected GradleExecuter usingBuildFile(File file) {
            return getExecuter().usingBuildScript(file);
        }
    
        protected GradleExecuter usingProjectDir(File projectDir) {
            return getExecuter().usingProjectDirectory(projectDir);
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 09:04:13 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  10. platforms/enterprise/enterprise/src/integTest/groovy/org/gradle/internal/enterprise/GradleEnterprisePluginBackgroundJobExecutorsIntegrationTest.groovy

            when:
            succeeds("check")
    
            then:
            outputContains("backgroundJobExecutor.isInBackground = false")
        }
    
        static String getExecutors() {
            return """(gradle.extensions.serviceRef.get()._requiredServices.backgroundJobExecutors)"""
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 29 16:27:53 UTC 2024
    - 7K bytes
    - Viewed (0)
Back to top