SCM Repository
View of /branches/pure-cfg/src/compiler/cl-target/fragments/header.in
Parent Directory
|
Revision Log
Revision 1644 -
(download)
(annotate)
Fri Nov 18 20:51:06 2011 UTC (10 years, 7 months ago) by lamonts
File size: 1477 byte(s)
Fri Nov 18 20:51:06 2011 UTC (10 years, 7 months ago) by lamonts
File size: 1477 byte(s)
Bug Fix: I had manually defined the CL_VERSION for testing but its now removed.
/*! \file @OUTFILE@ * * \author Lamont Samuels */ /* * COPYRIGHT (c) 2011 The Diderot Project (http://diderot-language.cs.uchicago.edu) * All rights reserved. */ #if (DIDEROT_CL_VERSION == 100) #pragma OPENCL EXTENSION cl_khr_global_int32_base_atomics: enable #pragma OPENCL EXTENSION cl_khr_local_int32_base_atomics: enable #endif #define BLK_SZ DIDEROT_CU_WIDTH #define DIDEROT_SINGLE_PRECISION #define DIDEROT_TARGET_CL #define DIDEROT_INT #include "Diderot/cl-diderot.h" typedef struct { int blkIdx; // the id of this block int nActive; // number of active (status != DIE or STABLE) strands int nDead; // number of strands in the DIE state int nStabilizing; // number of new strands in the STABILIZE state int nDying; // number of new strands in the DIE state } StrandBlock_t; typedef struct { int numStrands; // number of strands int sId; // the index accumlator for the todo list or queue int nextStrand; // index of the next strand to retrieve from the pool int clearQueueSz; // an indicator on whether the queue size should be cleared int queueSize; // number of blocks on the scheduler's queue int todoSize; // number of blocks on the scheduler's todo list int numAvailable; // number of active strands left to process } SchedState_t;
root@smlnj-gforge.cs.uchicago.edu | ViewVC Help |
Powered by ViewVC 1.0.0 |