comparison src/parallel_execution/main.cbc @ 314:1839586f5b41

pthread CUDA test
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Wed, 15 Feb 2017 12:34:19 +0900
parents 4addbc7469ee
children 54d203daf06b
comparison
equal deleted inserted replaced
313:4addbc7469ee 314:1839586f5b41
95 array->array = array_ptr; 95 array->array = array_ptr;
96 array->size = length; 96 array->size = length;
97 loopCounter2->i = 0; 97 loopCounter2->i = 0;
98 task->idgCount = 0; 98 task->idgCount = 0;
99 if (gpu_num) { 99 if (gpu_num) {
100 #ifdef USE_CUDAWorker
100 task->next = C_CUDAtwice; 101 task->next = C_CUDAtwice;
101 task->workerId = CPU_CUDA; 102 task->workerId = CPU_CUDA;
103 #else
104 task->next = C_twice;
105 #endif
102 } else { 106 } else {
103 task->next = C_twice; 107 task->next = C_twice;
104 } 108 }
105 task->data[task->dataNum] = (union Data*)loopCounter2; 109 task->data[task->dataNum] = (union Data*)loopCounter2;
106 task->data[task->dataNum+1] = (union Data*)array; 110 task->data[task->dataNum+1] = (union Data*)array;