I have an abstraction which allows you to switch between the 2 (and CPU rendering options) at build time.