fpga_synthesis merge

This commit is contained in:
Blaise Tine
2020-06-23 12:41:26 -07:00
1384 changed files with 5533630 additions and 791310 deletions

View File

@@ -1,10 +1,15 @@
#include <stdio.h>
#include <stdlib.h>
<<<<<<< HEAD
=======
#include "../vx_api/vx_api.h"
>>>>>>> fpga_synthesis
#ifdef __cplusplus
extern "C" {
#endif
<<<<<<< HEAD
struct pocl_context_t {
uint32_t num_groups[3];
uint32_t global_offset[3];
@@ -15,6 +20,8 @@ struct pocl_context_t {
uint32_t work_dim;
};
=======
>>>>>>> fpga_synthesis
typedef void (*pocl_workgroup_func) (
void * /* args */,
void * /* pocl_context */,
@@ -23,7 +30,11 @@ typedef void (*pocl_workgroup_func) (
uint32_t /* group_z */
);
<<<<<<< HEAD
void pocl_spawn(struct pocl_context_t * ctx, const pocl_workgroup_func pfn, void * arguments) {
=======
void pocl_spawn(struct pocl_context_t * ctx, pocl_workgroup_func pfn, const void * args) {
>>>>>>> fpga_synthesis
uint32_t x, y, z;
for (z = 0; z < ctx->num_groups[2]; ++z)
for (y = 0; y < ctx->num_groups[1]; ++y)