Mercurial > hg > Papers > 2022 > pine-thesis
view paper/src/createWorkers.cbc @ 13:ae09749b0890 default tip
fix summary and add figs for debugger
author | Takato Matsuoka <t.matsuoka@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 15 Feb 2022 00:08:04 +0900 |
parents | 739159c6668d |
children |
line wrap: on
line source
void createWorkers(struct Context* context, TaskManagerImpl* taskManager) { ... #ifdef USE_CUDAWorker taskManager->workers[i] = (Worker*)createCUDAWorker(context, i, queue,0); #else taskManager->workers[i] = (Worker*)createCPUWorker(context, i, queue); #endif } for (;i<taskManager->maxCPU;i++) { Queue* queue = createSynchronizedQueue(context); taskManager->workers[i] = (Worker*)createCPUWorker(context, i, queue); } }