singa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [singa] chrishkchris edited a comment on issue #646: SINGA-487 Test case for distributed module
Date Thu, 02 Apr 2020 06:29:40 GMT
chrishkchris edited a comment 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
   
   ```
   root@71ac539cda77:~/dcsysh/singa/test/python# python3 test_dist.py
   ......
   ----------------------------------------------------------------------
   Ran 6 tests in 0.178s
   
   OK
   root@71ac539cda77:~/dcsysh/singa/test/python# mpiexec -np 2 python3 test_dist.py
   ...........
   ----------------------------------------------------------------------
   Ran 6 tests in 0.217s
   
   OK
   .
   ----------------------------------------------------------------------
   Ran 6 tests in 0.189s
   
   OK
   
   
   ```

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message