Let mxnet choose netcard by cardname

in some servers, one server will have more than one netcards.
mxnet distribution code can’t choose right netcard by ip and transfer data.
here, i propose an idea which is to add one more column into the hosts file. the second column is netcard name.
such as follows:

  1 p6p1
  2 p15p1
  3 p15p1
  4 p6p1
  5 p15p1
  6 p6p1

i did some changes in distribution codes and let it be able to choose right netcard to transfer data by cardname.

the code is simple, see the following link form my github, search the key word cardname:

cool, can you contribute a PR then?

yes, i will.
thanks for your attention.:smiley: