#include <stdio.h>
typedef int data_type;
#define N 5
#define M 5
const data_type Matrix_A[] = {
#include "A.h"
};
const data_type Vector_b[] = {
#include "b.h"
};
const data_type CorrectResult_c[] = {
#include "c.h"
};
data_type HLSResult_c[M] = {0};
void check_result(data_type *CorrectResult, data_type *HLSresult){
for(int i = 0; i < M; i++){
printf("Idx %d: Error = %d \r\n", i, CorrectResult[i] - HLSresult[i]);
}
}
int main(void)
{
printf("Checking Results:\r\n");
example_gemv(Matrix_A,Vector_b,HLSResult_c);
check_result(CorrectResult_c,HLSResult_c);
return 0;
}
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
B_day3.zip (16个子文件)
B_day3
lab1
test_gemv.c 583B
b.h 25B
c.h 39B
A.h 124B
Run_hls.tcl 448B
example_gemv.c 294B
lab2
hw4.cpp 971B
hw1.cpp 704B
hw3.cpp 970B
hw2.cpp 988B
lab3
run_hls.tcl 3KB
matrixmul.cpp 3KB
matrixmul_test.cpp 4KB
matrixmul.h 3KB
DAY3-深度学习加速器实验及优化.docx 25KB
预习.png 32KB
共 16 条
- 1
资源评论
朽月
- 粉丝: 2878
- 资源: 3
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功