Skip to content

Commit ad01750

Browse files
committed
add tests for 64
1 parent 6379ca5 commit ad01750

File tree

3 files changed

+247
-0
lines changed

3 files changed

+247
-0
lines changed

.github/workflows/h-510-ts-macos.yml

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,79 @@ jobs:
7575
working-directory: ${{runner.workspace}}/build
7676
run: |
7777
ctest --parallel --timeout 300 --output-on-failure
78+
79+
80+
hipo_510_64:
81+
runs-on: ${{ matrix.os }}
82+
strategy:
83+
fail-fast: false
84+
matrix:
85+
os: [macos-latest]
86+
branch: [hipo-tt]
87+
config: [Release, Debug]
88+
all_tests: [ON, OFF]
89+
90+
steps:
91+
- uses: actions/checkout@v4
92+
93+
- name: Checkout HiGHS
94+
uses: actions/checkout@v4
95+
with:
96+
repository: ERGO-Code/HiGHS
97+
ref: ${{matrix.branch}}
98+
path: HiGHS
99+
100+
- name: Checkout METIS
101+
uses: actions/checkout@v4
102+
with:
103+
repository: galabovaa/METIS
104+
ref: 510-ts
105+
path: METIS
106+
107+
- name: Create installs dir
108+
working-directory: ${{runner.workspace}}
109+
run: |
110+
mkdir installs
111+
112+
- name: Install METIS
113+
run: |
114+
cd METIS
115+
pwd
116+
cmake -S. -B build \
117+
-DGKLIB_PATH=${{ github.workspace }}/METIS/GKlib \
118+
-DCMAKE_INSTALL_PREFIX=${{runner.workspace}}/installs \
119+
-DCMAKE_BUILD_TYPE=${{ matrix.config }} \
120+
-DCMAKE_C_FLAGS="-DIDXTYPEWIDTH=64"
121+
cmake --build build --parallel
122+
cmake --install build
123+
124+
- name: Create Build Environment
125+
run: cmake -E make_directory ${{runner.workspace}}/build
126+
127+
- name: Configure CMake
128+
run: |
129+
cmake \
130+
-S ${{runner.workspace}}/highs-tests/HiGHS \
131+
-B ${{runner.workspace}}/build \
132+
-DHIPO=ON \
133+
-DMETIS_ROOT=${{runner.workspace}}/installs \
134+
-DCMAKE_BUILD_TYPE=${{ matrix.config }} \
135+
-DALL_TESTS=${{ matrix.all_tests}} \
136+
-DCMAKE_INSTALL_PREFIX=${{runner.workspace}}/installs \
137+
-DHIGHSINT64=ON
138+
139+
- name: Build
140+
working-directory: ${{runner.workspace}}/build
141+
run: |
142+
cmake --build . --parallel
143+
144+
- name: Test executable
145+
working-directory: ${{runner.workspace}}/build
146+
run: |
147+
./bin/highs --solver=hipo \
148+
${{runner.workspace}}/highs-tests/HiGHS/check/instances/afiro.mps
149+
150+
- name: Ctest
151+
working-directory: ${{runner.workspace}}/build
152+
run: |
153+
ctest --parallel --timeout 300 --output-on-failure

.github/workflows/h-510-ts-ubuntu.yml

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,3 +90,94 @@ jobs:
9090
working-directory: ${{runner.workspace}}/build
9191
run: |
9292
ctest --parallel --timeout 300 --output-on-failure
93+
94+
95+
hipo_510_64:
96+
runs-on: ${{ matrix.os }}
97+
strategy:
98+
fail-fast: false
99+
matrix:
100+
os: [ubuntu-latest]
101+
branch: [hipo-tt]
102+
config: [Release, Debug]
103+
all_tests: [ON, OFF]
104+
105+
steps:
106+
- uses: actions/checkout@v4
107+
108+
- name: Checkout HiGHS
109+
uses: actions/checkout@v4
110+
with:
111+
repository: ERGO-Code/HiGHS
112+
ref: ${{matrix.branch}}
113+
path: HiGHS
114+
115+
- name: Checkout METIS
116+
uses: actions/checkout@v4
117+
with:
118+
repository: galabovaa/METIS
119+
ref: 510-ts
120+
path: METIS
121+
122+
- name: Create installs dir
123+
working-directory: ${{runner.workspace}}
124+
run: |
125+
mkdir installs
126+
127+
- name: Install METIS
128+
run: |
129+
cd METIS
130+
pwd
131+
cmake -S. -B build \
132+
-DGKLIB_PATH=${{ github.workspace }}/METIS/GKlib \
133+
-DCMAKE_INSTALL_PREFIX=${{runner.workspace}}/installs \
134+
-DCMAKE_BUILD_TYPE=${{ matrix.config }} \
135+
-DCMAKE_C_FLAGS="-DIDXTYPEWIDTH=64"
136+
cmake --build build --parallel
137+
cmake --install build
138+
139+
# no default blas available on runner
140+
141+
- name: Cache APT packages
142+
uses: actions/cache@v4
143+
with:
144+
path: |
145+
/var/cache/apt/archives
146+
/var/lib/apt/lists
147+
key: ${{ runner.os }}-apt-libopenblas
148+
149+
- name: Install OpenBLAS
150+
shell: bash
151+
run: |
152+
sudo apt update
153+
sudo apt install libopenblas-dev
154+
155+
- name: Create Build Environment
156+
run: cmake -E make_directory ${{runner.workspace}}/build
157+
158+
- name: Configure CMake
159+
run: |
160+
cmake \
161+
-S ${{runner.workspace}}/highs-tests/HiGHS \
162+
-B ${{runner.workspace}}/build \
163+
-DHIPO=ON \
164+
-DMETIS_ROOT=${{runner.workspace}}/installs \
165+
-DCMAKE_BUILD_TYPE=${{ matrix.config }} \
166+
-DALL_TESTS=${{ matrix.all_tests}} \
167+
-DHIGHSINT64=ON
168+
169+
- name: Build
170+
working-directory: ${{runner.workspace}}/build
171+
run: |
172+
cmake --build . --parallel
173+
174+
- name: Test executable
175+
working-directory: ${{runner.workspace}}/build
176+
run: |
177+
./bin/highs --solver=hipo \
178+
${{runner.workspace}}/highs-tests/HiGHS/check/instances/afiro.mps
179+
180+
- name: Ctest
181+
working-directory: ${{runner.workspace}}/build
182+
run: |
183+
ctest --parallel --timeout 300 --output-on-failure

.github/workflows/h-510-ts-win.yml

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,3 +80,83 @@ jobs:
8080
working-directory: ${{runner.workspace}}/build
8181
run: |
8282
ctest --parallel --timeout 300 --output-on-failure -C ${{ matrix.config }}
83+
84+
85+
hipo_510_64:
86+
runs-on: ${{ matrix.os }}
87+
strategy:
88+
fail-fast: false
89+
matrix:
90+
os: [windows-latest]
91+
branch: [hipo-tt]
92+
config: [Release, Debug]
93+
all_tests: [ON, OFF]
94+
95+
steps:
96+
- uses: actions/checkout@v4
97+
98+
- name: Checkout HiGHS
99+
uses: actions/checkout@v4
100+
with:
101+
repository: ERGO-Code/HiGHS
102+
ref: ${{matrix.branch}}
103+
path: HiGHS
104+
105+
- name: Checkout METIS
106+
uses: actions/checkout@v4
107+
with:
108+
repository: galabovaa/METIS
109+
ref: 510-ts
110+
path: METIS
111+
112+
- name: Install METIS
113+
run: |
114+
cmake `
115+
-S "$env:GITHUB_WORKSPACE/METIS" `
116+
-B build `
117+
-DGKLIB_PATH="$env:GITHUB_WORKSPACE/METIS/GKlib" `
118+
-DCMAKE_INSTALL_PREFIX="${{ runner.workspace }}"/installs
119+
-DCMAKE_C_FLAGS="-DIDXTYPEWIDTH=64"
120+
cmake --build build --parallel --config ${{ matrix.config }}
121+
cmake --install build --config ${{ matrix.config }}
122+
123+
- name: Install OpenBLAS
124+
shell: pwsh
125+
run: vcpkg install openblas[threads]
126+
127+
- name: Create build and install dir
128+
run: |
129+
cmake -E make_directory ${{runner.workspace}}/build
130+
cmake -E make_directory ${{runner.workspace}}/installs
131+
132+
- name: Configure cmake
133+
shell: pwsh
134+
run: |
135+
cmake `
136+
-S "$env:GITHUB_WORKSPACE/HiGHS" `
137+
-B "${{ runner.workspace }}/build" `
138+
-DHIPO=ON `
139+
-DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake `
140+
-DMETIS_ROOT="${{ runner.workspace }}/installs" `
141+
-DALL_TESTS=${{ matrix.all_tests }} \
142+
-DHIGHSINT64=ON
143+
144+
- name: Build
145+
shell: pwsh
146+
working-directory: ${{runner.workspace}}/build
147+
run: |
148+
cmake --build . --parallel --config ${{ matrix.config }}
149+
ls
150+
151+
- name: Test executable
152+
shell: pwsh
153+
working-directory: ${{runner.workspace}}/build
154+
run: |
155+
& ".\${{ matrix.config }}\bin\highs.exe" --solver=hipo `
156+
"${{ runner.workspace }}/highs-tests/HiGHS/check/instances/afiro.mps"
157+
158+
- name: Ctest
159+
shell: pwsh
160+
working-directory: ${{runner.workspace}}/build
161+
run: |
162+
ctest --parallel --timeout 300 --output-on-failure -C ${{ matrix.config }}

0 commit comments

Comments
 (0)