Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] View of /branches/lamont/src/compiler/c-target/fragments/c-hdr-global-extra.in
ViewVC logotype

View of /branches/lamont/src/compiler/c-target/fragments/c-hdr-global-extra.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2548 - (download) (annotate)
Wed Feb 26 14:22:24 2014 UTC (7 years, 3 months ago) by lamonts
File size: 833 byte(s)
Fixed global reduction block
#define DIDEROT_WORKGROUP_SIZE 1024
#define DIDEROT_REDUCE_WORKGROUP_SIZE 1024

typedef struct diderot_global_workerArgs Diderot_Global_WorkerArgs_t;
typedef struct diderot_global_scheduler Diderot_Global_Scheduler_t;

struct diderot_global_workerArgs{
	Diderot_GlobalNode_t * nodes;
	Diderot_Global_Scheduler_t * scheduler;
	uint32_t id;
	int start;
	int end;
};

struct diderot_global_scheduler{
    pthread_mutex_t lock;
    pthread_cond_t barrier;
    pthread_cond_t doneCond;
    bool done;
    uint32_t outIndex;
    uint32_t numNodes;
    uint32_t groupSize;
    uint32_t numberOfStrands;
    uint32_t prevNumStrands;
    uint32_t numIdle;
    uint32_t nextStrand;
    uint32_t blockIdCounter;
    bool isReducing;
    uint32_t numOfWorkers;
    Diderot_Global_WorkerArgs_t * workerArgs;
    Diderot_GlobalNode_t * nodes;
};

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0