$ 0 0 0 means the default device. What callback model are you using? You shouldn't need to use tasks at all.