Changing GPU mode for different tasks