HSA memory alloc/copy/free refactoring
Этот коммит содержится в:
1 родитель
b2bf09b9e0
Коммит
d04f7095f4
10 files changed
+87
-36
No files matched your search
@@ -214,11 +214,10 @@ bool TestHsa::Run() {
|
||||
total_time_taken_ += dispatch_time_taken_;
|
||||
|
||||
// Copy kernel buffers from local memory into system memory
|
||||
hsa_rsrc_->TransferData(test_->GetOutputPtr(), test_->GetLocalPtr(), test_->GetOutputSize(),
|
||||
false);
|
||||
test_->PrintOutput();
|
||||
const bool suc = hsa_rsrc_->CopyToHost(test_->GetOutputPtr(), test_->GetLocalPtr(), test_->GetOutputSize());
|
||||
if (suc) test_->PrintOutput();
|
||||
|
||||
return true;
|
||||
return suc;
|
||||
}
|
||||
|
||||
bool TestHsa::VerifyResults() {
|
||||
|
||||
Reference in new issue
Block a user