Updated to enable for opmult to work
This commit is contained in:
parent
fb617d1722
commit
3304767f2c
11 changed files with 49 additions and 39 deletions
|
|
@ -80,8 +80,11 @@ TEST(TestAsyncOperations, TestManagerParallelExecution)
|
|||
|
||||
std::vector<std::shared_ptr<kp::Tensor>> inputsAsyncB;
|
||||
|
||||
std::vector<std::shared_ptr<kp::Algorithm>> algosAsync;
|
||||
|
||||
for (uint32_t i = 0; i < numParallel; i++) {
|
||||
inputsAsyncB.push_back(mgr.tensor(data));
|
||||
algosAsync.push_back(mgr.algorithm({inputsAsyncB[i]}, spirv));
|
||||
}
|
||||
|
||||
std::vector<std::shared_ptr<kp::Sequence>> sqs;
|
||||
|
|
@ -93,7 +96,7 @@ TEST(TestAsyncOperations, TestManagerParallelExecution)
|
|||
auto startAsync = std::chrono::high_resolution_clock::now();
|
||||
|
||||
for (uint32_t i = 0; i < numParallel; i++) {
|
||||
sqs[i]->evalAsync<kp::OpAlgoDispatch>(algorithms[i]);
|
||||
sqs[i]->evalAsync<kp::OpAlgoDispatch>(algosAsync[i]);
|
||||
}
|
||||
|
||||
for (uint32_t i = 0; i < numParallel; i++) {
|
||||
|
|
@ -157,8 +160,8 @@ TEST(TestAsyncOperations, TestManagerAsyncExecution)
|
|||
|
||||
sq1->eval<kp::OpTensorSyncLocal>({ tensorA, tensorB });
|
||||
|
||||
std::shared_ptr<kp::Algorithm> algo1 = mgr.algorithm({tensorA});
|
||||
std::shared_ptr<kp::Algorithm> algo2 = mgr.algorithm({tensorB});
|
||||
std::shared_ptr<kp::Algorithm> algo1 = mgr.algorithm({tensorA}, spirv);
|
||||
std::shared_ptr<kp::Algorithm> algo2 = mgr.algorithm({tensorB}, spirv);
|
||||
|
||||
sq1->evalAsync<kp::OpAlgoDispatch>(algo1);
|
||||
sq2->evalAsync<kp::OpAlgoDispatch>(algo2);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue