merging changes from OPAE branch making this branch

This commit is contained in:
Blaise Tine
2020-03-27 20:19:16 -04:00
parent 39516a6f98
commit 9b1b8789ac
267 changed files with 498191 additions and 166 deletions

View File

@@ -0,0 +1,25 @@
#include <stdlib.h>
#include <stdio.h>
#include "intrinsics/vx_intrinsics.h"
void main() {
unsigned *x = (unsigned*)0x10000000;
unsigned *y = (unsigned*)0x20000000;
unsigned *z = (unsigned*)0x30000000;
unsigned wid = vx_warpID();
unsigned tid = vx_threadID();
unsigned i = (wid * MAX_THREADS) + tid;
//if (i == 0) {
// printf("begin\n");
//}
z[i] = x[i] + y[i];
//if (i == 0) {
// printf("end\n");
//}
}