stop trying to make cuda a general purpose programming language, it's a gpu api and that's it, folks.