Before we are allowed to call this funtion we must select a device. At the moment setDevice is in SimulationHelper.hpp I think we must move setDevice to Environment, else we create streams on one device and later on we switched to an other device and get errors. I can fix this for you, but not before the end of the next week (I have hollidays). Schould I?