Mercurial > hg > GearsTemplate
comparison src/parallel_execution/context.h @ 304:9755206813cb
helper_string.h for ANSI C
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 14 Feb 2017 11:36:41 +0900 |
parents | 8e7926f3e271 |
children | ec0a5b4fba05 |
comparison
equal
deleted
inserted
replaced
303:1dbaef86593b | 304:9755206813cb |
---|---|
1 /* Context definition for llrb example */ | 1 /* Context definition for llrb example */ |
2 #ifndef CONTEXT_H | 2 #ifndef CONTEXT_H |
3 #define CONTEXT_H | 3 #define CONTEXT_H |
4 #include <stdlib.h> | 4 #include <stdlib.h> |
5 #include <pthread.h> | 5 #include <pthread.h> |
6 #ifdef USE_CUDA | 6 #ifdef USE_CUDAWorker |
7 #include <cuda.h> | 7 #include <cuda.h> |
8 #endif | 8 #endif |
9 | 9 |
10 #define ALLOCATE_SIZE 20000000 | 10 #define ALLOCATE_SIZE 20000000 |
11 #define NEW(type) (type*)(calloc(1, sizeof(type))) | 11 #define NEW(type) (type*)(calloc(1, sizeof(type))) |