I am getting following error:
error: calling a host function("strcpy") from a __device__/__global__ function("doDecompression") is not allowed
error: calling a host function("strlen") from a __device__/__global__ function("doDecompression") is not allowed
error: calling a host function("strlen") from a __device__/__global__ function("doDecompression") is not allowed
Is this true or is my compiler acting funny??
No. Functions from the standard C library (like strcpy) are not supported from kernel code.
These functions were designed and written to work on a CPU and it would be very difficult to make them work on the device for a massive number of threads.