Skip to content
Snippets Groups Projects
Commit 95559150 authored by Yifan Zhao's avatar Yifan Zhao
Browse files

Added llvm_hpvm_invokeRtControl to frontend-generated code

parent 3f28bccb
No related branches found
No related tags found
No related merge requests found
......@@ -99,8 +99,7 @@ int main(int argc, char *argv[]){
void *result = static_cast<RootIn*>(args)->r.tensor;
hpvm_request_tensor(result, 0);
uint32_t* labels = readLabelsBatch3(labels_path.c_str(), start, end);
computeAccuracy3(labels, result);
llvm_hpvm_invokeRtControl(result, labels_path.c_str(), start, end);
freeBatchMemory();
}
__hpvm__cleanup();
......
......@@ -139,8 +139,7 @@ int main(int argc, char *argv[]){
void *result = static_cast<RootIn*>(args)->r.tensor;
hpvm_request_tensor(result, 0);
uint32_t* labels = readLabelsBatch3(labels_path.c_str(), start, end);
computeAccuracy3(labels, result);
llvm_hpvm_invokeRtControl(result, labels_path.c_str(), start, end);
freeBatchMemory();
}
__hpvm__cleanup();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment