added the example code for ultiple GPU use.