You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2018/01/15 23:08:17 UTC

[GitHub] piiswrong closed pull request #9441: Limit the test_nccl.py to run on 8 GPUs

piiswrong closed pull request #9441: Limit the test_nccl.py to run on 8 GPUs
URL: https://github.com/apache/incubator-mxnet/pull/9441
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/tests/python/gpu/test_nccl.py b/tests/python/gpu/test_nccl.py
index fd27c0b58b..8e00ba05f7 100644
--- a/tests/python/gpu/test_nccl.py
+++ b/tests/python/gpu/test_nccl.py
@@ -21,7 +21,15 @@
 
 shapes = [(10), (100), (1000), (10000), (100000), (2,2), (2,3,4,5,6,7,8)]
 keys = [1,2,3,4,5,6,7]
-gpus = range(1,1+len(mx.test_utils.list_gpus()))
+num_gpus = len(mx.test_utils.list_gpus())
+
+
+if num_gpus > 8 :
+    print("The machine has {} gpus. We will run the test on 8 gpus.".format(num_gpus))
+    print("There is a limit for all PCI-E hardware on creating number of P2P peers. The limit is 8.")
+    num_gpus = 8;
+
+gpus = range(1,1+num_gpus)
 
 @unittest.skip("Test requires NCCL library installed and enabled during build")
 def test_nccl_pushpull():


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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