-
-
Notifications
You must be signed in to change notification settings - Fork 305
Switch the C compiler for github windows action for mpiintel to the Intel C Complier #5656
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
@@ -165,6 +190,16 @@ jobs: | |||
sudo apt install gcc-12 g++-12 gfortran-12 | |||
sudo apt install libaec0 libaec-dev | |||
|
|||
# This causes an issue when MPI tries to install likely because |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does install likely
mean?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could use a comma, but this comment of course means this is a best guess at the problem. However, I'm almost certain that this is due to both the setup-fortran
and setup-mpi
actions calling the setvars.sh script from OneAPI, which end up conflicting with each other after the first call. I don't believe this is caused by different versions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please review comment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove 193-202 lines entirely instead of commenting them out.
@ellipses-dev, review PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Caution
Changes requested ❌
Reviewed everything up to f4a223a in 2 minutes and 31 seconds. Click for details.
- Reviewed
83
lines of code in1
files - Skipped
0
files when reviewing. - Skipped posting
1
draft comments. View those below. - Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. .github/workflows/cmake-par-script.yml:127
- Draft comment:
Using matrix.fortran for -DHDF5_BUILD_FORTRAN is a neat solution. Ensure the values are always provided as 'ON' or 'OFF' to avoid misconfiguration, especially since the Linux matrix doesn’t set this variable. - Reason this comment was not posted:
Confidence changes required:33%
<= threshold50%
None
Workflow ID: wflow_IebYIzLIqauvHB6m
You can customize by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.
@@ -120,14 +136,15 @@ jobs: | |||
set (MODEL "MPI") | |||
set (GROUP "MPI") | |||
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} --log-level=VERBOSE") | |||
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DCMAKE_TOOLCHAIN_FILE:STRING=${{ matrix.toolchain }}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Avoid passing an empty toolchain flag for non-intel builds. Consider conditionally appending -DCMAKE_TOOLCHAIN_FILE only when matrix.toolchain is non‐empty.
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DCMAKE_BUILD_TYPE=${{ inputs.build_mode }}") | ||
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DMPIEXEC_NUMPROC_FLAG:STRING=-n") | ||
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DMPIEXEC_MAX_NUMPROCS:STRING=2") | ||
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF5_ENABLE_PARALLEL:BOOL=ON") | ||
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF5_ENABLE_SUBFILING_VFD:BOOL=OFF") | ||
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF5_BUILD_JAVA:BOOL=OFF") | ||
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF5_BUILD_CPP_LIB:BOOL=OFF") | ||
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF5_BUILD_FORTRAN:BOOL=OFF") | ||
set (ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF5_BUILD_FORTRAN:BOOL=${{ matrix.fortran }}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should give a reason for switching off Fortran for future reference.
Fixes #5652
Important
Switches C compiler to Intel C Compiler for
intelmpi
on Windows in GitHub Actions workflow.intelmpi
incmake-par-script.yml
.config/toolchain/intel.cmake
) and enables Fortran.oneAPI
setup step forintelmpi
.intelmpi
but comments outoneAPI
setup due to issues.HDF5_BUILD_FORTRAN
option to use matrix variable inHDF5options.cmake
.This description was created by
for f4a223a. You can customize this summary. It will automatically update as commits are pushed.