Skip to content

Commit 402732b

Browse files
authored
Merge pull request #2367 from willend/main
On Windows use psutil for probing number of available cores in MPI
2 parents f9603a9 + 6ab2649 commit 402732b

12 files changed

Lines changed: 17 additions & 9 deletions

.github/workflows/mcstas-basictest.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ jobs:
8181
choco install winflexbison3
8282
choco install wget
8383
if [ "$CC" == "gcc.exe" ]; then choco install mingw; fi
84-
pip install mslex PyYAML ply ncrystal mcpl mcpl-extra
84+
pip install mslex PyYAML ply ncrystal mcpl mcpl-extra psutil
8585
8686
- name: Setup (Windows Intel)
8787
id: setup-Windows-intel
@@ -240,11 +240,11 @@ jobs:
240240
set -x
241241
if [ "$RUNNER_OS" == "macOS" ];
242242
then
243-
python3 -mpip install PyYAML pyaml ply McStasScript ncrystal mcpl mcpl-extra jinja2 --break-system-packages
243+
python3 -mpip install PyYAML pyaml ply McStasScript ncrystal mcpl mcpl-extra jinja2 psutil --break-system-packages
244244
fi
245245
if [ "$RUNNER_OS" == "Linux" ];
246246
then
247-
python3 -mpip install PyYAML ply McStasscript ncrystal mcpl mcpl-extra jinja2
247+
python3 -mpip install PyYAML ply McStasscript ncrystal mcpl mcpl-extra jinja2 psutil
248248
fi
249249
250250
# Start of Unix tests

.github/workflows/mcxtrace-basictest.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ jobs:
8989
choco install winflexbison3
9090
choco install wget
9191
if [ "$CC" == "gcc.exe" ]; then choco install mingw; fi
92-
pip install mslex PyYAML ply mcpl mcpl-extra
92+
pip install mslex PyYAML ply mcpl mcpl-extra psutil
9393
9494
- name: Setup (Windows Intel)
9595
id: setup-Windows-intel
@@ -248,11 +248,11 @@ jobs:
248248
set -x
249249
if [ "$RUNNER_OS" == "macOS" ];
250250
then
251-
python3 -mpip install PyYAML pyaml ply McStasScript mcpl mcpl-extra jinja2 --break-system-packages
251+
python3 -mpip install PyYAML pyaml ply McStasScript mcpl mcpl-extra jinja2 psutil --break-system-packages
252252
fi
253253
if [ "$RUNNER_OS" == "Linux" ];
254254
then
255-
python3 -mpip install PyYAML ply McStasscript mcpl mcpl-extra jinja2
255+
python3 -mpip install PyYAML ply McStasscript mcpl mcpl-extra jinja2 psutil
256256
fi
257257
258258
# Start of Unix tests

devel/bin/mccode-create-conda-yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def create_deplist( cfg ):
2121
return deps
2222

2323
#The rest are run-time deps:
24-
deps += ['python','c-compiler','pyaml','numpy']
24+
deps += ['python','c-compiler','pyaml','numpy','psutil']
2525
if cfg.is_unix:
2626
deps += ['bash']
2727
if cfg.is_win:

environment.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ dependencies:
1515
- compilers
1616
- gsl
1717
- pyaml
18+
- psutil
1819
- ply
1920
- matplotlib-base
2021
- numpy

mcstas-environment.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ dependencies:
1515
- compilers
1616
- gsl
1717
- pyaml
18+
- psutil
1819
- ply
1920
- matplotlib-base
2021
- numpy

mcxtrace-environment.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ dependencies:
1515
- compilers
1616
- gsl
1717
- pyaml
18+
- psutil
1819
- ply
1920
- matplotlib-base
2021
- numpy

meta-pkgs/windows/environment.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ dependencies:
1515
- m2w64-gsl
1616
- msmpi
1717
- pyaml
18+
- psutil
1819
- ply
1920
- numpy
2021
- tornado

meta-pkgs/windows/mcstas-environment.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ dependencies:
1414
- gsl
1515
- msmpi
1616
- pyaml
17+
- psutil
1718
- ply
1819
- numpy
1920
- tornado

meta-pkgs/windows/mcxtrace-environment.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ dependencies:
1414
- gsl
1515
- msmpi
1616
- pyaml
17+
- psutil
1718
- ply
1819
- numpy
1920
- tornado

tools/Python/mcrun/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ set(CPACK_NSIS_DISPLAY_NAME "${NSIS_NAME}")
5151
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "${NSIS_NAME}")
5252

5353
# Debian
54-
set(CPACK_DEBIAN_PACKAGE_DEPENDS "${FLAVOR}, python3-yaml, python3-numpy")
54+
set(CPACK_DEBIAN_PACKAGE_DEPENDS "${FLAVOR}, python3-yaml, python3-numpy, python3-psutil")
5555
set(CPACK_DEBIAN_PACKAGE_REPLACES "${FLAVOR}-tools-python-${P}run-3.5.1")
5656

5757
# RPM

0 commit comments

Comments
 (0)