Merge branch 'horovod' of github.com:Akilan1999/p2p-rendering-computation into horovod

This commit is contained in:
Benjamin Jacob Reji
2021-06-15 15:07:23 +04:00
3 changed files with 12 additions and 2 deletions

View File

@@ -16,7 +16,8 @@ interact with the containers.
[Instructions to install docker GPU](https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/install-guide.html#docker)
````
Do ensure that the docker command does not need sudo to run
// Do ensure that the docker command does not need sudo to run
sudo chmod 666 /var/run/docker.sock
````
### Build Project and install project

View File

@@ -257,7 +257,7 @@ func (d *DockerVM)runContainer(dockerClient *client.Client) error{
for i := range d.Ports {
cmd.WriteString("-p " + fmt.Sprint(d.Ports[i]) + ":" + fmt.Sprint(d.Ports[i]) + " ")
}
cmd.WriteString("-v=/opt/data:/data p2p-ubuntu /start > /dev/null")
cmd.WriteString("-v=/opt/data:/data "+ d.TagName +" /start > /dev/null")
//"-v=/opt/data:/data p2p-ubuntu /start > /dev/null"
cmdStr := cmd.String()
_, err := exec.Command("/bin/sh", "-c", cmdStr).Output()

View File

@@ -21,6 +21,15 @@ func TestDocker(t *testing.T) {
}
func TestContainerHorovod(t *testing.T) {
// Testing by providing the horovod cpu image
_,err := BuildRunContainer(2,"false","cpuhorovod")
if err != nil {
t.Error(err)
}
}
func TestViewAllContainers(t *testing.T) {
_,err := ViewAllContainers()