redesigned driver demo, fixed startup code, removed --cpu from simx,

This commit is contained in:
Blaise Tine
2020-03-29 00:38:17 -04:00
parent 2d5cf89e00
commit c8a6470595
63 changed files with 40963 additions and 364160 deletions

View File

@@ -0,0 +1,21 @@
#ifndef _COMMON_H_
#define _COMMON_H_
#include "../../../runtime/config.h"
#define MAX_WARPS NW
#define MAX_THREADS NT
#define BLOCK_SIZE GLOBAL_BLOCK_SIZE_BYTES
#define KERNEL_ARG_DEV_MEM_ADDR 0x7fffff00
struct kernel_arg_t {
uint32_t src0_ptr;
uint32_t src1_ptr;
uint32_t dst_ptr;
uint32_t stride;
};
#endif