chrishkchris commented on issue #646: SINGA-487 Test case for distributed module URL: https://github.com/apache/singa/pull/646#issuecomment-607647172 > Does the test case need >=2 GPUs? > If so, we need to disable it, if the environment only has 0 or 1 GPU. The code works when there is at least 1 GPU. It supports two mode to run: (i) Run the code directly, e.g. `python test_dist.py ` (ii) Run with mpich, e.g. `mpiexec -np 2 test_dist.py` for 2 GPUs In the first case, there is only one rank (i.e. rank 0), while it can test if the communicator contructor and the rountine to convert 32 to 16 bits, sparsifciation, etc, are correct or not. Without GPU, the test code cannot run but it does not affect the Travis CI build and test process, Other GPU test in test_operation.py has the same problem we can see: https://travis-ci.org/github/apache/singa/jobs/669989104#L4012 Cannot find gpu in dist_test.py https://travis-ci.org/github/apache/singa/jobs/669989104#L4028 Cannot find onnx https://travis-ci.org/github/apache/singa/jobs/669989104#L4078 Cannot find gpu in test_operation.py
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
