vendredi 15 octobre 2021

Binaries in openCL (C++)

Suppose I had a program in openCL:

...

const unsigned char binaries*;
size_t binaries_size;

assign_binaries(&binaries, &binaries_size); // my assign function, assigns bin and bin_size

std::vector<std::vector<unsigned char>> Binaries;

cl::Program prog = cl::Program(context, device_list, Binaries, &binary_status, &err);

...

How would I go about pushing

binaries

and

binaries_size

into

Binaries

?

In the OpenCL docs, it says:

Binaries: A vector of pairs of a pointer to a binary object and its length.

However, this makes no sense to me, as there is an obvious type mismatch.

Aucun commentaire:

Enregistrer un commentaire