File: jucx-test.yml

package info (click to toggle)
mpich 4.0.2-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 423,384 kB
  • sloc: ansic: 1,088,434; cpp: 71,364; javascript: 40,763; f90: 22,829; sh: 17,463; perl: 14,773; xml: 14,418; python: 10,265; makefile: 9,246; fortran: 8,008; java: 4,355; asm: 324; ruby: 176; lisp: 19; php: 8; sed: 4
file content (78 lines) | stat: -rwxr-xr-x 2,553 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
parameters:
  name: java test
  demands: []

jobs:
  - job: ${{ parameters.name }}

    pool:
      name: MLNX
      demands: ${{ parameters.demands }}

    strategy:
      matrix:
        java8:
          JAVA_VERSION: 1.8
        java11:
          JAVA_VERSION: 1.11

    steps:
      - checkout: self
        fetchDepth: 100
        clean: true
        displayName: Checkout
      - bash: |
          set -xeE
          source buildlib/az-helpers.sh
          az_init_modules
          az_module_load dev/mvn
          az_module_load dev/jdk-${JAVA_VERSION}
          try_load_cuda_env
          ./autogen.sh
          ./contrib/configure-devel --prefix=$(Build.Repository.LocalPath)/install \
            --with-java --enable-gtest=no --with-cuda=$have_cuda
          make -j`nproc`
          make install
        displayName: Build UCX
      - bash: |
          set -xeE
          source buildlib/az-helpers.sh
          az_init_modules
          try_load_cuda_env
          az_module_load dev/mvn
          az_module_load dev/jdk-${JAVA_VERSION}

          ifaces=`get_rdma_interfaces`
          if [ -z "$ifaces" ]; then
              azure_log_warning "No active RDMA interfaces on machine"
              exit 0;
          fi
          jucx_port=$((20000 + $RANDOM % 10000))
          export JUCX_TEST_PORT=$jucx_port
          make -C bindings/java/src/main/native test
          make -C bindings/java/src/main/native package
          ipv4_found=0
          for iface in $ifaces
          do
              server_ip=$(get_ip ${iface})
              if [ -z "$server_ip" ]; then
                  continue
              fi
              echo "Running standalone benchamrk on $iface:$jucx_port"
              java_cmd='java -XX:ErrorFile=$(Build.ArtifactStagingDirectory)/hs_err_$(Build.BuildId)_%p.log  \
                  -XX:OnError="cat $(Build.ArtifactStagingDirectory)/hs_err_$(Build.BuildId)_%p.log" \
                  -cp "bindings/java/resources/:bindings/java/src/main/native/build-java/*" \
                  org.openucx.jucx.examples.$bench_class s=$server_ip p=$jucx_port t=1000000'
              bench_class=UcxReadBWBenchmarkReceiver
              eval "$java_cmd &"
              java_pid=$!
              sleep 10
              bench_class=UcxReadBWBenchmarkSender
              eval "$java_cmd"
              wait $java_pid
              ipv4_found=1
          done
          if [[ $ipv4_found -eq 0 ]]; then
              azure_log_warning "No IPv4 address on any of $ifaces"
          fi
        displayName: Run jucx tests