Move gpu initialization checks to the start of each function instead of mixing with argument parsing.