B.2. ホストAPIとの対応

表B.2 表:OpenCLホストAPIとC言語の対応表

OpenCL C言語のデータ型OpenCL APIのデータ型(ホスト)
bool

n/a
char

cl_char
unsigned char, uchar
cl_uchar
short
cl_short
unsigned short, ushort
cl_ushort

int
cl_int
unsigned int, uint
cl_uint

long
cl_long
unsigned long,ulong

cl_ulong
float

cl_float
double
cl_double
half
cl_half
size_t
n/a

ptrdiff_t

n/a
intptr_t
n/a
uintptr_t
n/a

void

void

Copyright 2018-2019, by Masaki Komatsu