Set device_id at the begining of Solver.Init() to avoid using memory in the default GPU
Merge pull request #521 from sguada/set_device_id_at_init

Set device_id at the beginning of Solver.Init()