alignment on stack-allocated arrays/structs
Trass3r
mrmocool at gmx.de
Tue Nov 17 15:32:54 PST 2009
Robert Jacques schrieb:
> To the best of my knowlegde, D only supports align(1) and align(4). On
> the other hand, compile time introspection allows my CUDA api to convert
> alignment correctly for any given struct.
>
gotta look that up in your code.
Maybe I also find some other ideas for writing my wrapper. It currently
is a plain OO-approach using classes for platform, device, kernel, etc.
But maybe one can exploit D's capabilities to make things easier to
program. Something along the lines of http://ochafik.free.fr/blog/?p=207
while not retricting what can be done with the wrapper compared to plain
OpenCL...
More information about the Digitalmars-d
mailing list