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 2726 - (download) (annotate)
Wed Sep 24 19:12:59 2014 UTC (5 years ago) by jhr
File size: 605 byte(s)
  Working on OpenCL support
// 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
    uint	globSzB;	// size of @PREFIX@Globals_t
    uint	stateSzB;	// size of @STRANDTY@
} @PREFIX@Sizes_t;

__kernel void @PREFIX@GetSizes (__global @PREFIX@Sizes_t *sizes)
    sizes->schedSzB = sizeof(SchedState_t);
    sizes->strandBlkSzB = sizeof(StrandBlock_t);
    sizes->globSzB = sizeof(@PREFIX@Globals_t);
    sizes->stateSzB = sizeof(@STRANDTY@);

ViewVC Help
Powered by ViewVC 1.0.0