Skip to content

Commit 2e84c5d

Browse files
authored
Update intel OneAPI compilers (#120)
Update CI
1 parent bf7fb24 commit 2e84c5d

File tree

15 files changed

+49
-160
lines changed

15 files changed

+49
-160
lines changed

.flake8

Lines changed: 0 additions & 32 deletions
This file was deleted.

.github/intel-scripts/install_linux.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ chmod +x webimage.sh
1313
rm -rf webimage.sh
1414
WEBIMAGE_NAME=$(ls -1 webimage_extracted/)
1515
if [ -z "$COMPONENTS" ]; then
16-
sudo webimage_extracted/"$WEBIMAGE_NAME"/bootstrapper -s --action install --eula=accept --continue-with-optional-error=yes --log-dir=.
16+
sudo webimage_extracted/"$WEBIMAGE_NAME"/bootstrapper -s --action install --eula=accept --log-dir=.
1717
installer_exit_code=$?
1818
else
19-
sudo webimage_extracted/"$WEBIMAGE_NAME"/bootstrapper -s --action install --components="$COMPONENTS" --eula=accept --continue-with-optional-error=yes --log-dir=.
19+
sudo webimage_extracted/"$WEBIMAGE_NAME"/bootstrapper -s --action install --components="$COMPONENTS" --eula=accept --log-dir=.
2020
installer_exit_code=$?
2121
fi
2222
rm -rf webimage_extracted

.github/intel-scripts/install_macos.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ COMPONENTS=$2
1010
curl --output webimage.dmg --url "$URL" --retry 5 --retry-delay 5
1111
hdiutil attach webimage.dmg
1212
if [ -z "$COMPONENTS" ]; then
13-
sudo /Volumes/"$(basename "$URL" .dmg)"/bootstrapper.app/Contents/MacOS/bootstrapper -s --action install --eula=accept --continue-with-optional-error=yes --log-dir=.
13+
sudo /Volumes/"$(basename "$URL" .dmg)"/bootstrapper.app/Contents/MacOS/bootstrapper -s --action install --eula=accept --log-dir=.
1414
installer_exit_code=$?
1515
else
16-
sudo /Volumes/"$(basename "$URL" .dmg)"/bootstrapper.app/Contents/MacOS/bootstrapper -s --action install --components="$COMPONENTS" --eula=accept --continue-with-optional-error=yes --log-dir=.
16+
sudo /Volumes/"$(basename "$URL" .dmg)"/bootstrapper.app/Contents/MacOS/bootstrapper -s --action install --components="$COMPONENTS" --eula=accept --log-dir=.
1717
installer_exit_code=$?
1818
fi
1919
hdiutil detach /Volumes/"$(basename "$URL" .dmg)" -quiet

.github/intel-scripts/install_windows.bat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ curl.exe --output webimage.exe --url %URL% --retry 5 --retry-delay 5
99
start /b /wait webimage.exe -s -x -f webimage_extracted --log extract.log
1010
del webimage.exe
1111
if "%COMPONENTS%"=="" (
12-
webimage_extracted\bootstrapper.exe -s --action install --eula=accept --continue-with-optional-error=yes -p=NEED_VS2017_INTEGRATION=0 -p=NEED_VS2019_INTEGRATION=0 --log-dir=.
12+
webimage_extracted\bootstrapper.exe -s --action install --eula=accept -p=NEED_VS2017_INTEGRATION=0 -p=NEED_VS2019_INTEGRATION=0 --log-dir=.
1313
) else (
14-
webimage_extracted\bootstrapper.exe -s --action install --components=%COMPONENTS% --eula=accept --continue-with-optional-error=yes -p=NEED_VS2017_INTEGRATION=0 -p=NEED_VS2019_INTEGRATION=0 --log-dir=.
14+
webimage_extracted\bootstrapper.exe -s --action install --components=%COMPONENTS% --eula=accept -p=NEED_VS2017_INTEGRATION=0 -p=NEED_VS2019_INTEGRATION=0 --log-dir=.
1515
)

.github/workflows/main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ jobs:
2727
run:
2828
shell: bash
2929
env:
30-
WINDOWS_HPCKIT_URL: https://registrationcenter-download.intel.com/akdlm/irc_nas/17392/w_HPCKit_p_2021.1.0.2682_offline.exe
31-
LINUX_HPCKIT_URL: https://registrationcenter-download.intel.com/akdlm/irc_nas/17427/l_HPCKit_p_2021.1.0.2684_offline.sh
32-
MACOS_HPCKIT_URL: https://registrationcenter-download.intel.com/akdlm/irc_nas/17398/m_HPCKit_p_2021.1.0.2681_offline.dmg
30+
WINDOWS_HPCKIT_URL: https://registrationcenter-download.intel.com/akdlm/irc_nas/18976/w_HPCKit_p_2022.3.1.19755_offline.exe
31+
LINUX_HPCKIT_URL: https://registrationcenter-download.intel.com/akdlm/irc_nas/18975/l_HPCKit_p_2022.3.1.16997_offline.sh
32+
MACOS_HPCKIT_URL: https://registrationcenter-download.intel.com/akdlm/irc_nas/18977/m_HPCKit_p_2022.3.1.15344_offline.dmg
3333
WINDOWS_FORTRAN_COMPONENTS: intel.oneapi.win.ifort-compiler
3434
LINUX_FORTRAN_COMPONENTS_WEB: intel.oneapi.lin.ifort-compiler
3535
MACOS_FORTRAN_COMPONENTS: intel.oneapi.mac.ifort-compiler
@@ -40,7 +40,7 @@ jobs:
4040

4141
steps:
4242
- name: Checkout repo
43-
uses: actions/checkout@v2.5.0
43+
uses: actions/checkout@v3
4444

4545
- name: Setup Graphviz
4646
if: runner.os == 'Linux'

.github/workflows/pymake-gcc.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323

2424
steps:
2525
- name: Checkout repo
26-
uses: actions/checkout@v2.5.0
26+
uses: actions/checkout@v3
2727

2828
- name: Setup Graphviz on Linux
2929
if: runner.os == 'Linux'
@@ -71,7 +71,7 @@ jobs:
7171

7272
steps:
7373
- name: Checkout repo
74-
uses: actions/checkout@v2.5.0
74+
uses: actions/checkout@v3
7575

7676
- name: Setup Graphviz
7777
uses: ts-graphviz/setup-graphviz@v1
@@ -127,7 +127,7 @@ jobs:
127127

128128
steps:
129129
- name: Checkout repo
130-
uses: actions/checkout@v2.5.0
130+
uses: actions/checkout@v3
131131

132132
- name: Set up Python ${{ matrix.python-version }}
133133
uses: actions/[email protected]

.github/workflows/pymake-linting-install.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
if: github.repository_owner == 'modflowpy'
1919
steps:
2020
- name: Checkout repo
21-
uses: actions/checkout@v2.5.0
21+
uses: actions/checkout@v3
2222

2323
- name: Set up Python
2424
uses: actions/[email protected]
@@ -53,10 +53,10 @@ jobs:
5353
black --check --diff ./pymake
5454
5555
- name: Run flake8
56-
run: flake8 --count --show-source ./pymake
56+
run: flake8 --count --show-source --exit-zero ./pymake
5757

5858
- name: Run pylint
59-
run: pylint --jobs=0 --errors-only ./pymake
59+
run: pylint --jobs=2 --errors-only --exit-zero ./pymake
6060

6161
pymake_setup:
6262
name: standard installation
@@ -71,7 +71,7 @@ jobs:
7171

7272
# check out repo
7373
- name: Checkout pymake repo
74-
uses: actions/checkout@v2.5.0
74+
uses: actions/checkout@v3
7575

7676
- name: Setup Python
7777
uses: actions/[email protected]

.github/workflows/pymake-requests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919

2020
steps:
2121
- name: Checkout repo
22-
uses: actions/checkout@v2.5.0
22+
uses: actions/checkout@v3
2323

2424
- name: Set up Python
2525
uses: actions/[email protected]

.github/workflows/pymake-rtd.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
github.event_name == 'push'
1818
steps:
1919
- name: Checkout repo
20-
uses: actions/checkout@v2.5.0
20+
uses: aactions/checkout@v3
2121

2222
- name: Trigger RTDs build
2323
if: github.ref == 'refs/heads/master'

.pylintrc

Lines changed: 4 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -60,86 +60,14 @@ confidence=
6060
# --enable=similarities". If you want to run only the classes checker, but have
6161
# no Warning level messages displayed, use "--disable=all --enable=classes
6262
# --disable=W".
63-
disable=print-statement,
64-
parameter-unpacking,
65-
unpacking-in-except,
66-
old-raise-syntax,
67-
backtick,
68-
long-suffix,
69-
old-ne-operator,
70-
old-octal-literal,
71-
import-star-module-level,
72-
non-ascii-bytes-literal,
73-
raw-checker-failed,
63+
disable=raw-checker-failed,
7464
bad-inline-option,
7565
locally-disabled,
7666
file-ignored,
7767
suppressed-message,
7868
useless-suppression,
7969
deprecated-pragma,
80-
use-symbolic-message-instead,
81-
apply-builtin,
82-
basestring-builtin,
83-
buffer-builtin,
84-
cmp-builtin,
85-
coerce-builtin,
86-
execfile-builtin,
87-
file-builtin,
88-
long-builtin,
89-
raw_input-builtin,
90-
reduce-builtin,
91-
standarderror-builtin,
92-
unicode-builtin,
93-
xrange-builtin,
94-
coerce-method,
95-
delslice-method,
96-
getslice-method,
97-
setslice-method,
98-
no-absolute-import,
99-
old-division,
100-
dict-iter-method,
101-
dict-view-method,
102-
next-method-called,
103-
metaclass-assignment,
104-
indexing-exception,
105-
raising-string,
106-
reload-builtin,
107-
oct-method,
108-
hex-method,
109-
nonzero-method,
110-
cmp-method,
111-
input-builtin,
112-
round-builtin,
113-
intern-builtin,
114-
unichr-builtin,
115-
map-builtin-not-iterating,
116-
zip-builtin-not-iterating,
117-
range-builtin-not-iterating,
118-
filter-builtin-not-iterating,
119-
using-cmp-argument,
120-
eq-without-hash,
121-
div-method,
122-
idiv-method,
123-
rdiv-method,
124-
exception-message-attribute,
125-
invalid-str-codec,
126-
sys-max-int,
127-
bad-python3-import,
128-
deprecated-string-function,
129-
deprecated-str-translate-call,
130-
deprecated-itertools-function,
131-
deprecated-types-field,
132-
next-method-defined,
133-
dict-items-not-iterating,
134-
dict-keys-not-iterating,
135-
dict-values-not-iterating,
136-
deprecated-operator-function,
137-
deprecated-urllib-function,
138-
xreadlines-attribute,
139-
deprecated-sys-function,
140-
exception-escape,
141-
comprehension-escape,
142-
C0330
70+
use-symbolic-message-instead
14371

14472

14573
# Enable the message, report, category or checker with the given id(s). You can
@@ -335,8 +263,8 @@ max-module-lines=1000
335263
# separator` is used to allow tabulation in dicts, etc.: {1 : 1,\n222: 2}.
336264
# `trailing-comma` allows a space between comma and closing bracket: (a, ).
337265
# `empty-line` allows space-only lines.
338-
no-space-check=trailing-comma,
339-
dict-separator
266+
#no-space-check=trailing-comma,
267+
# dict-separator
340268

341269
# Allow the body of a class to be on the same line as the declaration if body
342270
# contains single statement.

autotest/t999_test.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,13 @@ def test_latest_assets():
5151
mfexes_repo_name = "MODFLOW-USGS/executables"
5252
assets = pymake.get_repo_assets(mfexes_repo_name)
5353
keys = assets.keys()
54-
test_keys = ["mac.zip", "linux.zip", "win32.zip", "win64.zip"]
54+
test_keys = [
55+
"code.json",
56+
"mac.zip",
57+
"linux.zip",
58+
"win32.zip",
59+
"win64.zip",
60+
]
5561
for key in keys:
5662
print(f"evaluating the availability of...{key}")
5763
msg = f"unknown key ({key}) found in github repo assets"

pymake/autotest/autotest.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1050,7 +1050,7 @@ def compare_budget(
10501050
10511051
"""
10521052
try:
1053-
import flopy
1053+
import flopy # pylint: disable=import-error
10541054
except:
10551055
msg = "flopy not available - cannot use compare_budget"
10561056
raise ValueError(msg)
@@ -1256,7 +1256,7 @@ def compare_swrbudget(
12561256
12571257
"""
12581258
try:
1259-
import flopy
1259+
import flopy # pylint: disable=import-error
12601260
except:
12611261
msg = "flopy not available - cannot use compare_swrbudget"
12621262
raise ValueError(msg)
@@ -1476,7 +1476,7 @@ def compare_heads(
14761476
14771477
"""
14781478
try:
1479-
import flopy
1479+
import flopy # pylint: disable=import-error
14801480
except:
14811481
msg = "flopy not available - cannot use compare_heads"
14821482
raise ValueError(msg)
@@ -1872,7 +1872,7 @@ def compare_concs(
18721872
18731873
"""
18741874
try:
1875-
import flopy
1875+
import flopy # pylint: disable=import-error
18761876
except:
18771877
msg = "flopy not available - cannot use compare_concs"
18781878
raise ValueError(msg)
@@ -2097,7 +2097,7 @@ def compare_stages(
20972097
20982098
"""
20992099
try:
2100-
import flopy
2100+
import flopy # pylint: disable=import-error
21012101
except:
21022102
msg = "flopy not available - cannot use compare_stages"
21032103
raise ValueError(msg)

pymake/pymake_base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
python myscript.py ../src myapp -fc=ifort -cc=icc
4040
4141
"""
42-
import datetime
4342
import inspect
4443
import os
4544
import shutil
@@ -264,7 +263,8 @@ def main(
264263
# get ordered list of files to compile
265264
srcfiles = _get_ordered_srcfiles(srcfiles, networkx)
266265

267-
# set intelwin flag to True in compiling on windows with Intel compilers
266+
# set intelwin flag to True in compiling on windows with
267+
# Intel compilers
268268
intelwin = False
269269
if not meson:
270270
if _get_osname() == "win32":

pymake/pymake_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def _get_arg_dict():
152152
"syslibs": {
153153
"tag": ("-sl", "--syslibs"),
154154
"help": """Linker system libraries. Linker libraries should be
155-
enclosed in quotes and start with a blank space or
155+
enclosed in quotes and start with a blank space or
156156
separated from the name (-sl or --syslibs) with a
157157
equal sign (-sl='-libgcc'). (default is None)""",
158158
"default": None,

setup.cfg

Lines changed: 11 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -52,28 +52,15 @@ exclude =
5252
autotest
5353
ignore =
5454
# https://flake8.pycqa.org/en/latest/user/error-codes.html
55-
F401 # 'module' imported but unused
56-
# https://pycodestyle.readthedocs.io/en/latest/intro.html#error-codes
57-
E121 # continuation line under-indented for hanging indent
58-
E122 # continuation line missing indentation or outdented
59-
E126 # continuation line over-indented for hanging indent
60-
E127 # continuation line over-indented for visual indent
61-
E128 # continuation line under-indented for visual indent
62-
E203 # whitespace before
63-
E221 # multiple spaces before operator
64-
E222 # multiple spaces after operator
65-
E226 # missing whitespace around arithmetic operator
66-
E231 # missing whitespace after ','
67-
E241 # multiple spaces after ','
68-
E402 # module level import not at top of file
69-
E501 # line too long (> 79 characters)
70-
E502 # backslash is redundant between brackets
71-
E722 # do not use bare 'except'
72-
E741 # ambiguous variable name
73-
W291 # trailing whitespace
74-
W292 # no newline at end of file
75-
W293 # blank line contains whitespace
76-
W391 # blank line at end of file
77-
W503 # line break before binary operator
78-
W504 # line break after binary operator
55+
# 'module' imported but unused
56+
F401
57+
# https://pycodestyle.readthedocs.io/en/latest/intro.html#error-codes
58+
# do not use bare 'except'
59+
E722
60+
# ambiguous variable name
61+
E741
62+
# whitespace before ':'
63+
E203
64+
# line break before binary operator
65+
W503
7966
statistics = True

0 commit comments

Comments
 (0)