cpu and gpu are not interchangeable terms, stop treating them like it. if you're writing code that's supposed to run on both, you're doing it wrong. choose one and commit to it