I want to assign "const void*" to a "const uint64_t*" in cuda c.
I have done like this,
Code:
void func(const void *buffer)
{
const uint64_t *words = buffer;
}
but i'm getting an error like this,
Quote:
error: a value of type "const void *" cannot be used to initialize an entity of type "const uint64_t*"
|
can anyone help me in solving this problem?