1
1
#! /usr/bin/env groovy
2
2
// Copyright (c) 2019 Advanced Micro Devices, Inc. All rights reserved.
3
3
// This shared library is available at https://github.com/ROCmSoftwarePlatform/rccl
4
- @Library (' rocJenkins@noDocker ' ) _
4
+ @Library (' rocJenkins' ) _
5
5
6
6
// This is file for internal AMD use.
7
7
// If you are interested in running your own Jenkins, please raise a github issue for assistance.
@@ -32,7 +32,7 @@ rcclCI:
32
32
33
33
def rccl = new rocProject(' rccl' )
34
34
// customize for project
35
- rccl. paths. build_command = ' ./install.sh -t '
35
+ rccl. paths. build_command = ' ./install.sh'
36
36
37
37
// Define test architectures, optional rocm version argument is available
38
38
def nodes = new dockerNodes([' RCCL' ], rccl)
@@ -47,10 +47,10 @@ rcclCI:
47
47
def command = """ #!/usr/bin/env bash
48
48
set -x
49
49
cd ${ project.paths.project_build_prefix}
50
- LD_LIBRARY_PATH=/opt/rocm/hcc/lib CXX=${ project.compiler.compiler_path } ${ project.paths.build_command}
50
+ LD_LIBRARY_PATH=/opt/rocm/hcc/lib CXX= ${ project.paths.build_command} -t --hip-clang
51
51
"""
52
52
53
- sh command
53
+ platform . runCommand( this , command)
54
54
}
55
55
56
56
def testCommand =
@@ -59,11 +59,11 @@ rcclCI:
59
59
60
60
def command = """ #!/usr/bin/env bash
61
61
set -x
62
- cd ${ project.paths.project_build_prefix} /build/release/test
63
- HSA_FORCE_FINE_GRAIN_PCIE=1 ./UnitTests --gtest_output=xml --gtest_color=yes
62
+ cd ${ project.paths.project_build_prefix}
63
+ ${ project.paths.project_build_prefix } -r --hip-clang
64
64
"""
65
65
66
- sh command
66
+ platform . runCommand( this , command)
67
67
// junit "${project.paths.project_build_prefix}/build/release/*.xml"
68
68
}
69
69
@@ -79,11 +79,10 @@ rcclCI:
79
79
mv *.deb package/
80
80
sudo dpkg -i package/*.deb
81
81
"""
82
-
83
-
84
- // platform.archiveArtifacts(this, """${project.paths.project_build_prefix}/build/package/*.deb""")
82
+ platform. runCommand(this ,command)
83
+ platform. archiveArtifacts(this , """ ${ project.paths.project_build_prefix} /build/package/*.deb""" )
85
84
}
86
85
87
- buildProjectNoDocker (rccl, formatCheck, nodes. dockerArray, compileCommand, testCommand, packageCommand)
86
+ buildProject (rccl, formatCheck, nodes. dockerArray, compileCommand, testCommand, packageCommand)
88
87
89
- }
88
+ }
0 commit comments