Thrust question

I’m using “Thrust Library” in my project. The questions is;
is it possible to use “Thrust” syntax inside the “.cu” file “inside the kernel and else” ?
If not please tell me if there was any other replacement …

Thanks

If you’re asking whether you can call Thrust entry points from global or device functions, then the answer is no, that’s not possible. Thrust’s algorithms are exclusively host functions.

I don’t know of any publicly available analogous library of device functions, but such a library certainly would be useful.