See this thread, there is a solution at the bottom that shows how to set Cuda devices in the command line