Skip to content

Commit 3c79d00

Browse files
authored
Merge pull request #43 from mattip/win-fixes
Update version to v0.3.11, Fix INTERFACE64, gcc version
2 parents b81dc86 + bcc4a14 commit 3c79d00

File tree

2 files changed

+24
-9
lines changed

2 files changed

+24
-9
lines changed

.github/workflows/build.yml

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ name: CI
44

55
defaults:
66
run:
7-
shell: bash
7+
shell: bash
88

99
on:
1010
push:
@@ -13,7 +13,7 @@ on:
1313
branches: [ master ]
1414

1515
env:
16-
OPENBLAS_COMMIT: 349b722d8d09303
16+
OPENBLAS_COMMIT: "4ad33c46b0c"
1717
OPENBLAS_ROOT: "c:\\opt"
1818

1919
jobs:
@@ -26,7 +26,7 @@ jobs:
2626
exclude:
2727
- BUILD_BITS: 32
2828
INTERFACE64: 1
29-
29+
fail-fast: false
3030
runs-on: ${{ matrix.os }}
3131

3232
steps:
@@ -39,22 +39,35 @@ jobs:
3939
echo "BUILD_BITS=$BITS" >> $GITHUB_ENV;
4040
if [ "$BITS" == "32" ]; then
4141
echo "PLAT=i686" >> $GITHUB_ENV;
42-
4342
else
4443
echo "PLAT=x86_64" >> $GITHUB_ENV;
4544
fi
4645
echo "START_DIR=$PWD" >> $GITHUB_ENV;
4746
choco install -y zip
4847
4948
- run: |
50-
choco install -y mingw --forcex86 --force --version=7.3.0
49+
choco install -y mingw --forcex86 --force --version=8.1.0
50+
choco install -y make
5151
name: Install 32-bit mingw
5252
shell: powershell
5353
if: ${{ matrix.BUILD_BITS == '32' }}
5454
55+
- run: |
56+
# see https://www.mail-archive.com/[email protected]/msg586184.html
57+
if [ "${{ matrix.BUILD_BITS }}" == "64" ]; then
58+
include=/c/ProgramData/Chocolatey/lib/mingw/tools/install/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/avx512fintrin.h
59+
else
60+
include=/c/ProgramData/Chocolatey/lib/mingw/tools/install/mingw32/lib/gcc/i686-w64-mingw32/8.1.0/include/avx512fintrin.h
61+
fi
62+
sed -i -e"s/_mm512_abs_pd (__m512 __A)/_mm512_abs_pd (__m512d __A)/" $include
63+
name: Fix gcc bug
64+
5565
- name: Build
5666
run: |
5767
BITS=${{ matrix.BUILD_BITS }}
68+
if [ "${{ matrix.INTERFACE64 }}" == "1" ]; then
69+
export INTERFACE64=1
70+
fi
5871
if [ "$BITS" == "32" ]; then
5972
export PATH=/c/ProgramData/chocolatey/lib/mingw/tools/install/mingw32/bin:$PATH
6073
fi
@@ -68,17 +81,19 @@ jobs:
6881
if [ "$BITS" == "32" ]; then
6982
export PATH=/c/ProgramData/chocolatey/lib/mingw/tools/install/mingw32/bin:$PATH
7083
fi
84+
if [ "${{ matrix.INTERFACE64 }}" == "1" ]; then
85+
export INTERFACE64=1
86+
fi
7187
tools/build_gfortran.sh
7288
cp test.exe builds
7389
cp test_dyn.exe builds
7490
./test.exe
7591
cp $(cygpath $OPENBLAS_ROOT)/$BITS/bin/*.dll .
7692
./test_dyn.exe
77-
93+
7894
- name: Upload
7995
env:
8096
OPENBLAS_LIBS_STAGING_UPLOAD_TOKEN: ${{ secrets.MULTIBUILD_WHEELS_STAGING_ACCESS }}
8197
run: |
8298
pip install -q git+https://github.com/Anaconda-Platform/[email protected]
8399
tools/upload_to_anaconda_staging.sh
84-

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ env:
22
global:
33
# The archive that gets built has name from ``git describe`` on this
44
# commit.
5-
- BUILD_COMMIT=349b722d8d09303
5+
- OPENBLAS_COMMIT=4ad33c46b0c
66
- REPO_DIR=OpenBLAS
77
# Following generated with:
88
# travis encrypt -r MacPython/openblas-libs OPENBLAS_LIBS_STAGING_UPLOAD_TOKEN=<secret token value>
@@ -121,7 +121,7 @@ before_install:
121121

122122
install:
123123
# Maybe get and clean and patch source
124-
- clean_code $REPO_DIR $BUILD_COMMIT
124+
- clean_code $REPO_DIR $OPENBLAS_COMMIT
125125

126126
script:
127127
# Build library and collect into libs subdirectory

0 commit comments

Comments
 (0)