Speclib  0.1.2
The library for writing better CUDA libraries
Strings

Tools for working with strings on the GPU. More...

Modules

 Character Encodings
 Tools for converting between other character encodings.
 

Classes

class  sp::StringBatch< CharT >
 A batch of strings which can be synchronised between host and device. More...
 
class  sp::StringBuffer< CharT, IntT >
 Represents a string that owns its buffer and may be synchronised between host and GPU. More...
 
class  sp::StringView< CharT, IntT, Options >
 A GPU-compatible string view. More...
 
class  sp::StringViewBatch< CharT, IntPairT >
 Represents a batch of StringViews that all share the same underlying string buffer. More...
 

Detailed Description

Tools for working with strings on the GPU.

sp::StringBuffer provides ownership and synchronisation of a single string buffer, allowing you to gracefully move it around and use it as needed. It is conceptually similar to sp::NomadicTensor.

sp::StringView provides non-owning, GPU-compatible views into string buffers. These can be passed to CUDA kernels.

The remaining APIs relate to working with batches of strings, which is typically more efficent.