add guard to drop GPU code in CPU-only mode, remorsefully