I am writing a CUDA kernel in which I'm using the string data type in C++. However, the compiler is throwing the following error :
error: calling a host function("std::basic_string<char, std::char_traits<char>, std::allocator<char> >::operator =") from a __device__/__global__ function("doDecompression") is not allowed
Are strings not allowed within a kernel? if not, what is the workaround to allocate space for a char array within a kernel?
string::c_str()method to extract pointers to the C data in the host code and pass these to the kernel function