Vector matrix addition working

This commit is contained in:
proshan3
2019-11-22 19:23:54 -05:00
parent d733509c91
commit 10505feaf5
8 changed files with 3163 additions and 1298 deletions

View File

@@ -1,10 +1,25 @@
#include "../../intrinsics/vx_intrinsics.h"
#include "../../../runtime/intrinsics/vx_intrinsics.h"
#include "vx_vec.h"
int main()
{
vx_tmc(1);
vx_vec_test();
vx_tmc(0);
vx_tmc(1);
int n = 5;
int *a = (int*)malloc(sizeof(int) * n); //{1, 1, 1, 1, 1};
int *b = (int*)malloc(sizeof(int) * n); //{1, 1, 1, 1, 1};
int *c = (int*)malloc(sizeof(int) * n); //{1, 1, 1, 1, 1};
for(int i = 0; i < n; ++i)
{
a[i] = 1;
b[i] = 1;
c[i] = 1;
}
vx_vec_test(n, a, b, c);
for(int i = 0; i < n; ++i)
vx_print_hex(c[i]);
vx_tmc(0);
}