Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add launch utility #376

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open

add launch utility #376

wants to merge 3 commits into from

Conversation

QiJune
Copy link
Collaborator

@QiJune QiJune commented Nov 2, 2020

This PR depends on #375

First, install gotorch

go install ./...

Then, use launch tool to run 2 processes in a single node:

$GOPATH/bin/launch -nprocPerNode=2 -masterAddr=127.0.0.1 -masterPort=11111 -trainingCmd="$GOPATH/bin/allreduce"

It will run the allreduce example. Then, 0.log and 1.log will be created.

Check the 0.log:

cat 0.log
2020/11/02 17:54:47  2  4
 6  8
[ CPUFloatType{2,2} ]

You will find the value is allreduced correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant