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

SCM Repository

[diderot] View of /branches/vis12-cl/src/compiler/cl-target/fragments/cl-sizes.in
ViewVC logotype

View of /branches/vis12-cl/src/compiler/cl-target/fragments/cl-sizes.in

Parent Directory Parent Directory | Revision Log Revision Log

Revision 3139 - (download) (annotate)
Fri Mar 27 14:03:38 2015 UTC (4 years, 3 months ago) by jhr
File size: 722 byte(s)
  working on OpenCL issues
// sizes of the various GPU-side data structures.
// Note: this structure must match the definition in cl-target/fragments/c-sizes.in
typedef struct {
    uint	schedSzB;	// size of SchedState_t
    uint	strandBlkSzB;	// size of StrandBlock_t (optional)
    uint	globSzB;	// size of @PREFIX@Globals_t
    uint	stateSzB;	// size of @STRANDTY@
} Diderot_Sizes_t;

// GPU task to initialize the sizes struct.
TASK void GetSizesKern (__global Diderot_Sizes_t *sizes)
    sizes->schedSzB = sizeof(@PREFIX@Sched_t);
    sizes->strandBlkSzB = 0;
    sizes->strandBlkSzB = sizeof(StrandBlock_t);
    sizes->globSzB = sizeof(@PREFIX@Globals_t);
    sizes->stateSzB = sizeof(@STRANDTY@);

ViewVC Help
Powered by ViewVC 1.0.0