Calling strchr () function from the kernal?

Hi,

Is there any way to call the strchr function from the kernal because I really have to make use of that function in my kernal ?

I’m getting the error message

Calling a host function

The problem is that you’re trying to call a compiled library call. If you copied the source code for strchr into your kernel, it might work.

You’ll basically have to port strchr to CUDA :)

Thanks for the response… :)