Data type support#

Fundamental types#

Table 1 Comparison of supported fundamental types of rocThrust and Thrust#

Type

rocThrust support

Thrust support

int8

int16

int32

int64

half 1

⚠️

⚠️

bfloat16 1

⚠️

⚠️

float

double

Custom types#

rocThrust and Thrust support custom, user-defined types, if they provide the interface required by the used functions.

Footnotes

1(1,2)

These types are supported in rocThrust and Thrust, however the host-side hip-implementations of these types miss some functionality, and are mostly intended as storage types to be passed between functions.