MPI与CUDA的问题

我运行书中的MPI和CUDA结合的小例子,在2台计算机上运行,如果在单机分别运行都可以,但当使用MPIEXEC时候,另一台的程序不能正常运行。请问有没有合适的解决方法?
执行命令为:mpiexec -hosts 2 192.168.0.100 192.168.0.102 c:\MPIexe\MPIandCUDA.exe
PS. MPI配置正确,在两台机器上一起运行圆周率计算示例程序cpi.exe正确。

when I start a parallel program with mpiexec on windows, I don’t have a cuda capable device. If I start the program (running 1 process) itself, I have cuda devices.
on linux everything is fine. I have mpich2 on windows