From ce3b00023d4129f02065d4dc03b6d76fdc517194 Mon Sep 17 00:00:00 2001 From: Aditya Atluri Date: Wed, 26 Sep 2018 10:02:46 -0500 Subject: [PATCH 1/8] added rocm install script for travis ci --- .travis.yml | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000..48212e5fd --- /dev/null +++ b/.travis.yml @@ -0,0 +1,5 @@ +script: + wget -qO - http://repo.radeon.com/rocm/apt/debian/rocm.gpg.key | sudo apt-key add - + echo 'deb [arch=amd64] http://repo.radeon.com/rocm/apt/debian/ xenial main' | sudo tee /etc/apt/sources.list.d/rocm.list + apt update + apt install rocm-dkms From 7453bc0de4002ae046e5148ed703ba3d92b728d9 Mon Sep 17 00:00:00 2001 From: Aditya Atluri Date: Wed, 26 Sep 2018 10:05:27 -0500 Subject: [PATCH 2/8] fixing travis ci script - v1 --- .travis.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 48212e5fd..d15cf7242 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,5 @@ script: - wget -qO - http://repo.radeon.com/rocm/apt/debian/rocm.gpg.key | sudo apt-key add - - echo 'deb [arch=amd64] http://repo.radeon.com/rocm/apt/debian/ xenial main' | sudo tee /etc/apt/sources.list.d/rocm.list - apt update - apt install rocm-dkms + wget -qO - http://repo.radeon.com/rocm/apt/debian/rocm.gpg.key | sudo apt-key add -; + echo 'deb [arch=amd64] http://repo.radeon.com/rocm/apt/debian/ xenial main' | sudo tee /etc/apt/sources.list.d/rocm.list; + apt update; + apt install rocm-dkms; From 604ba7e001c3b6d8a296b1d6030c336e21c3866a Mon Sep 17 00:00:00 2001 From: Aditya Atluri Date: Wed, 26 Sep 2018 10:07:59 -0500 Subject: [PATCH 3/8] add sudo to build script --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index d15cf7242..a6d551474 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,5 @@ script: wget -qO - http://repo.radeon.com/rocm/apt/debian/rocm.gpg.key | sudo apt-key add -; echo 'deb [arch=amd64] http://repo.radeon.com/rocm/apt/debian/ xenial main' | sudo tee /etc/apt/sources.list.d/rocm.list; - apt update; - apt install rocm-dkms; + sudo apt update; + sudo apt install rocm-dkms; From b8ed07c93e8acb344ae3091e72d5e6c599861e04 Mon Sep 17 00:00:00 2001 From: Aditya Atluri Date: Wed, 26 Sep 2018 10:15:52 -0500 Subject: [PATCH 4/8] added package building to travis yml --- .travis.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index a6d551474..21f9243b2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,10 @@ script: - wget -qO - http://repo.radeon.com/rocm/apt/debian/rocm.gpg.key | sudo apt-key add -; - echo 'deb [arch=amd64] http://repo.radeon.com/rocm/apt/debian/ xenial main' | sudo tee /etc/apt/sources.list.d/rocm.list; - sudo apt update; - sudo apt install rocm-dkms; + - wget -qO - http://repo.radeon.com/rocm/apt/debian/rocm.gpg.key | sudo apt-key add - + - echo 'deb [arch=amd64] http://repo.radeon.com/rocm/apt/debian/ xenial main' | sudo tee /etc/apt/sources.list.d/rocm.list; + - sudo apt update; + - sudo apt install rocm-dkms; + - mkdir -p ../rccl_build + - cd ../rccl_build + - CXX=/opt/rocm/bin/hcc cmake ../rccl + - make package -j + - sudo dpkg -i *.deb From 189ee3028e84ee2038cd18fe984cd2e6408857bb Mon Sep 17 00:00:00 2001 From: Aditya Atluri Date: Wed, 26 Sep 2018 10:23:24 -0500 Subject: [PATCH 5/8] added gcc as default compiler for travis to make vm install all stdc libs --- .travis.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.travis.yml b/.travis.yml index 21f9243b2..71d2d2b15 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,3 +1,7 @@ +language: cpp +compiler: + - g++ + script: - wget -qO - http://repo.radeon.com/rocm/apt/debian/rocm.gpg.key | sudo apt-key add - - echo 'deb [arch=amd64] http://repo.radeon.com/rocm/apt/debian/ xenial main' | sudo tee /etc/apt/sources.list.d/rocm.list; From 3c7dbf3e5ade62f337d13d33267e361c4a78be53 Mon Sep 17 00:00:00 2001 From: Aditya Atluri Date: Wed, 26 Sep 2018 13:07:55 -0500 Subject: [PATCH 6/8] added xenial as default ci os --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 71d2d2b15..dee217738 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,3 +1,4 @@ +dist: xenial language: cpp compiler: - g++ From 4abdb0d3e5c219e4f7bd881465ae15a1d005544c Mon Sep 17 00:00:00 2001 From: Aditya Atluri Date: Wed, 26 Sep 2018 13:10:49 -0500 Subject: [PATCH 7/8] added rocm cmake dependency --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index dee217738..a4cdfa925 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,7 +7,7 @@ script: - wget -qO - http://repo.radeon.com/rocm/apt/debian/rocm.gpg.key | sudo apt-key add - - echo 'deb [arch=amd64] http://repo.radeon.com/rocm/apt/debian/ xenial main' | sudo tee /etc/apt/sources.list.d/rocm.list; - sudo apt update; - - sudo apt install rocm-dkms; + - sudo apt install rocm-dkms rocm-cmake - mkdir -p ../rccl_build - cd ../rccl_build - CXX=/opt/rocm/bin/hcc cmake ../rccl From 1f8980a2d4f306349ac7a3915001396be93b2d38 Mon Sep 17 00:00:00 2001 From: Aditya Atluri Date: Wed, 26 Sep 2018 13:14:39 -0500 Subject: [PATCH 8/8] install doxygen in travis --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index a4cdfa925..ed90487c0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,7 +7,7 @@ script: - wget -qO - http://repo.radeon.com/rocm/apt/debian/rocm.gpg.key | sudo apt-key add - - echo 'deb [arch=amd64] http://repo.radeon.com/rocm/apt/debian/ xenial main' | sudo tee /etc/apt/sources.list.d/rocm.list; - sudo apt update; - - sudo apt install rocm-dkms rocm-cmake + - sudo apt install rocm-dkms rocm-cmake doxygen - mkdir -p ../rccl_build - cd ../rccl_build - CXX=/opt/rocm/bin/hcc cmake ../rccl