Switched to g++

This commit is contained in:
fares
2019-11-16 12:23:59 -05:00
parent 19dba43849
commit 53c78b905a
23 changed files with 84432 additions and 201805 deletions

View File

@@ -54,6 +54,10 @@ typedef struct {
static int g_num_kernels = 0;
static kernel_info_t g_kernels [MAX_KERNELS];
#ifdef __cplusplus
extern "C" {
#endif
int _pocl_register_kernel(const char* name, const void* pfn, uint32_t num_args, uint32_t num_locals, const uint8_t* arg_types, const uint32_t* local_sizes) {
printf("******** _pocl_register_kernel\n");
printf("Name to register: %s\n", name);
@@ -100,6 +104,10 @@ int _pocl_query_kernel(const char* name, const void** p_pfn, uint32_t* p_num_arg
return -1;
}
#ifdef __cplusplus
}
#endif
int exitcode = 0;
cl_context context = NULL;
cl_command_queue commandQueue = NULL;
@@ -130,7 +138,8 @@ void cleanup() {
int main (int argc, char **argv) {
vx_tmc(1);
printf("vecadd running\n");
vx_print_str("Hello from vecadd\n");
printf("New cleared vecadd running\n");
cl_platform_id platform_id;
cl_device_id device_id;