- Give CHECK_DEVICE_INDEX a suitable error message
Merge pull request #1 from xueliu/dev

Give CHECK_DEVICE_INDEX a suitable error message