Reformatted

This commit is contained in:
Alejandro Saucedo 2020-10-18 21:30:43 +01:00
parent 06917b836b
commit 267f92763e
6 changed files with 31 additions and 30 deletions

View file

@ -55,8 +55,7 @@ TEST(TestAsyncOperations, TestManagerParallelExecution)
for (uint32_t i = 0; i < numParallel; i++) {
mgr.evalOpDefault<kp::OpAlgoBase<>>(
{ inputsSyncB[i] },
std::vector<char>(shader.begin(), shader.end()));
{ inputsSyncB[i] }, std::vector<char>(shader.begin(), shader.end()));
}
auto endSync = std::chrono::high_resolution_clock::now();
@ -153,14 +152,10 @@ TEST(TestAsyncOperations, TestManagerAsyncExecution)
mgr.evalOpDefault<kp::OpTensorCreate>({ tensorA, tensorB });
mgr.evalOpAsync<kp::OpAlgoBase<>>(
{ tensorA },
"asyncOne",
std::vector<char>(shader.begin(), shader.end()));
{ tensorA }, "asyncOne", std::vector<char>(shader.begin(), shader.end()));
mgr.evalOpAsync<kp::OpAlgoBase<>>(
{ tensorB },
"asyncTwo",
std::vector<char>(shader.begin(), shader.end()));
{ tensorB }, "asyncTwo", std::vector<char>(shader.begin(), shader.end()));
mgr.evalOpAwait("asyncOne");
mgr.evalOpAwait("asyncTwo");

View file

@ -39,8 +39,7 @@ TEST(TestLogisticRegressionAlgorithm, TestMainLogisticRegression)
sqTensor->end();
sqTensor->eval();
std::shared_ptr<kp::Sequence> sq =
mgr.createManagedSequence().lock();
std::shared_ptr<kp::Sequence> sq = mgr.createManagedSequence().lock();
// Record op algo base
sq->begin();
@ -123,8 +122,7 @@ TEST(TestLogisticRegressionAlgorithm, TestMainLogisticRegressionManualCopy)
sqTensor->end();
sqTensor->eval();
std::shared_ptr<kp::Sequence> sq =
mgr.createManagedSequence().lock();
std::shared_ptr<kp::Sequence> sq = mgr.createManagedSequence().lock();
// Record op algo base
sq->begin();

View file

@ -58,11 +58,9 @@ TEST(TestMultipleAlgoExecutions, MultipleCmdBufRecords)
pa[index] = pa[index] + 1;
})");
std::shared_ptr<kp::Sequence> sqTensor =
mgr.createManagedSequence().lock();
std::shared_ptr<kp::Sequence> sqTensor = mgr.createManagedSequence().lock();
std::shared_ptr<kp::Sequence> sq =
mgr.createManagedSequence().lock();
std::shared_ptr<kp::Sequence> sq = mgr.createManagedSequence().lock();
// First create the tensor in a separate sequence
sqTensor->begin();