Skip to content

Raw-mode buffers? #25

Description

@markbravington

Is there any prospect of allowing raw-mode buffers in future, as well as double/float/integer? I am working with large (GBytes) bit-packed datasets, stored as raws in R (length padded to a multiple of 4). To pass it to OpenCL as a clBuffer, currently I have to engage in some pretty hideous subte-R-fuge to first "typecast" it into an integer vector with the same bit pattern (NA_integer_ being a complication) --- essentially an elaborate, slow, and duplicative no-op.

The bits of code I looked at in ocl.c and clBuffer.c didn't immediately suggest impossibility to me (eg they already deal with several types) but are well beyond my C level.

This is really a feature request, not an "issue" per se, so I apologise if I've sent it to the wrong place--- not sure where else it should go. Many thanks for this super-useful package BTW--- I would probably never have gotten going with OpenCL without it.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions