|
74 | 74 | ./contrib/configure-devel --prefix=$(Build.Repository.LocalPath)/install --without-java |
75 | 75 | make -j`nproc` |
76 | 76 | make install |
| 77 | + # build static modules |
| 78 | + source ./buildlib/az-helpers.sh |
| 79 | + az_init_modules |
| 80 | + module load dev/libnl |
| 81 | + module load dev/numactl |
| 82 | + PKG_CONFIG_PATH=$(Build.Repository.LocalPath)/install/lib/pkgconfig:$PKG_CONFIG_PATH make -C test/apps/uct_info EXTRA_MODULES="ucx-ib ucx-cma ucx-rdmacm" |
| 83 | + module unload dev/numactl |
| 84 | + module unload dev/libnl |
77 | 85 | displayName: Build |
78 | 86 | name: build |
79 | 87 | - task: CopyFiles@2 |
|
82 | 90 | contents: | |
83 | 91 | buildlib/az-helpers.sh |
84 | 92 | buildlib/az-network-corrupter.sh |
| 93 | + buildlib/check_tls.sh |
85 | 94 | install/** |
86 | 95 | test/apps/iodemo/run_io_demo.sh |
| 96 | + test/apps/uct_info/* |
87 | 97 | targetFolder: '$(Build.ArtifactStagingDirectory)' |
88 | 98 | - task: PublishBuildArtifacts@1 |
89 | 99 | inputs: |
@@ -140,3 +150,48 @@ jobs: |
140 | 150 | extra_run_args: $(test_extra_run_args) |
141 | 151 | ${{ if eq(variables['Build.Reason'], 'PullRequest') }}: |
142 | 152 | analyzer_allow_list_args: '--allow_list $(System.PullRequest.TargetBranch)' |
| 153 | + |
| 154 | + - job: test_static |
| 155 | + dependsOn: io_build |
| 156 | + workspace: |
| 157 | + clean: all |
| 158 | + |
| 159 | + pool: |
| 160 | + name: MLNX |
| 161 | + demands: ${{ parameters.demands }} |
| 162 | + |
| 163 | + variables: |
| 164 | + workspace: drop_$(Build.BuildId) |
| 165 | + EXECUTOR_NUMBER: $(Build.BuildId) |
| 166 | + |
| 167 | + displayName: "Test static" |
| 168 | + steps: |
| 169 | + - checkout: none |
| 170 | + clean: true |
| 171 | + - task: DownloadBuildArtifacts@0 |
| 172 | + displayName: 'Download Build Artifacts' |
| 173 | + inputs: |
| 174 | + artifactName: drop_$(Build.BuildId) |
| 175 | + downloadPath: $(System.DefaultWorkingDirectory) |
| 176 | + - bash: chmod u+rwx $(workspace) -R |
| 177 | + - bash: | |
| 178 | + set -eEx |
| 179 | + cd $(workspace)/test/apps/uct_info |
| 180 | + LD_LIBRARY_PATH=$(System.DefaultWorkingDirectory)/$(workspace)/install/lib:$LD_LIBRARY_PATH \ |
| 181 | + $(System.DefaultWorkingDirectory)/$(workspace)/buildlib/check_tls.sh \ |
| 182 | + dc_mlx5 rc_mlx5 ud_mlx5 rc_verbs ud_verbs cma |
| 183 | + # Set port number for hello_world applications |
| 184 | + server_port=$((10000 + (EXECUTOR_NUMBER % 1000))) |
| 185 | + server_port_arg="-p $server_port" |
| 186 | +
|
| 187 | + for tls in ib rc rc_x; do |
| 188 | + echo UCX_TLS=$tls |
| 189 | + UCX_TLS=$tls ./ucp_hello_world_static ${server_port_arg} & |
| 190 | + # allow server to start |
| 191 | + sleep 3 |
| 192 | + UCX_TLS=$tls ./ucp_hello_world_static ${server_port_arg} -n localhost |
| 193 | + # allow server to complete |
| 194 | + sleep 3 |
| 195 | + done |
| 196 | +
|
| 197 | + cd - |
0 commit comments