Added detection if we are compiling for nvptx or spir