There are _cpu and _gpu flags available, which are selected based on fancy modulefile code (Thanks Achim)