• Home
  • Raw
  • Download

Lines Matching refs:execution

682     void getDimensionsWhileRunning(WrapperExecution& execution) {  in getDimensionsWhileRunning()  argument
686 EXPECT_EQ(execution.getOutputOperandDimensions(0, &dimensions), WrapperResult::BAD_STATE); in getDimensionsWhileRunning()
708 void setInputOutput(WrapperExecution* execution) { in setInputOutput() argument
711 ASSERT_EQ(execution->setInput(0, &mInputBuffer, sizeof(mInputBuffer)), in setInputOutput()
713 ASSERT_EQ(execution->setOutput(0, &mOutputBuffer, sizeof(mOutputBuffer)), in setInputOutput()
762 WrapperExecution execution(&mCompilation); in TestWait() local
763 ASSERT_EQ(execution.setReusable(reusable), WrapperResult::NO_ERROR); in TestWait()
764 ASSERT_NO_FATAL_FAILURE(setInputOutput(&execution)); in TestWait()
765 const auto compute = [this, &execution] { in TestWait()
768 ASSERT_EQ(execution.startCompute(&event), WrapperResult::NO_ERROR); in TestWait()
769 getDimensionsWhileRunning(execution); in TestWait()
779 ASSERT_EQ(execution.getOutputOperandDimensions(0, &dimensions), kExpectResult); in TestWait()
782 ASSERT_EQ(execution.getOutputOperandDimensions(0, &dimensions), in TestWait()
790 WrapperExecution execution(&mCompilation); in TestWait() local
791 ASSERT_EQ(execution.setReusable(reusable), WrapperResult::NO_ERROR); in TestWait()
792 ASSERT_NO_FATAL_FAILURE(setInputOutput(&execution)); in TestWait()
793 const auto compute = [this, &execution] { in TestWait()
795 std::thread run([this, &execution] { EXPECT_EQ(execution.compute(), kExpectResult); }); in TestWait()
796 getDimensionsWhileRunning(execution); in TestWait()
806 ASSERT_EQ(execution.getOutputOperandDimensions(0, &dimensions), kExpectResult); in TestWait()
809 ASSERT_EQ(execution.getOutputOperandDimensions(0, &dimensions), in TestWait()
822 WrapperExecution execution(&mCompilation); in TestWait() local
823 ASSERT_EQ(execution.setReusable(reusable), WrapperResult::NO_ERROR); in TestWait()
824 ASSERT_NO_FATAL_FAILURE(setInputOutput(&execution)); in TestWait()
825 const auto compute = [this, &execution] { in TestWait()
827 std::thread run([this, &execution] { in TestWait()
828 EXPECT_EQ(execution.compute(WrapperExecution::ComputeMode::BURST), kExpectResult); in TestWait()
830 getDimensionsWhileRunning(execution); in TestWait()
840 ASSERT_EQ(execution.getOutputOperandDimensions(0, &dimensions), kExpectResult); in TestWait()
843 ASSERT_EQ(execution.getOutputOperandDimensions(0, &dimensions), in TestWait()
852 WrapperExecution execution(&mCompilation); in TestWait() local
853 ASSERT_EQ(execution.setReusable(reusable), WrapperResult::NO_ERROR); in TestWait()
854 ASSERT_NO_FATAL_FAILURE(setInputOutput(&execution)); in TestWait()
856 const auto compute = [this, &execution] { in TestWait()
862 std::thread run([this, &execution, &event] { in TestWait()
863 EXPECT_EQ(execution.startComputeWithDependencies({}, 0, &event), kExpectResult); in TestWait()
865 getDimensionsWhileRunning(execution); in TestWait()
877 ASSERT_EQ(execution.getOutputOperandDimensions(0, &dimensions), kExpectResult); in TestWait()
880 ASSERT_EQ(execution.getOutputOperandDimensions(0, &dimensions), in TestWait()