-
Notifications
You must be signed in to change notification settings - Fork 22
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
Mac OS X Build #221
base: develop
Are you sure you want to change the base?
Mac OS X Build #221
Conversation
# Download | ||
echo "Downloading PETSc 3.16.4" |
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 need to move this upto 3.20. I believe for emt-alpha branch I am using 3.20.
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.
You show the original script code here. The updated script uses 3.20.6, but 3.21.4 also worked for me. It is much easier to change the version in the updated script.
|
||
git clone https://gitlab.com/petsc/petsc.git | ||
|
||
cd petsc | ||
|
||
git checkout tags/v3.16.4 -b v3.16.4 |
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.
move to 3.20
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.
You are showing the original script. See comment above.
install_gridpack_deps.sh
Outdated
|
||
./configure --download-superlu_dist --download-metis --download-parmetis --download-suitesparse --download-f2cblaslapack --download-cmake --prefix=${PWD}/install_for_gridpack --scalar-type=complex --with-shared-libraries=1 --download-f2cblaslapack=1 | ||
./configure --with-gnu-compilers=0 --download-superlu_dist --download-metis --download-parmetis --download-suitesparse --download-f2cblaslapack --download-cmake=0 --prefix=${PWD}/install_for_gridpack --scalar-type=complex --download-sowing --download-f2cblaslapack $petscopts |
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.
- Why NO GNU compilers?
- Scalar type should be real
- Also add
--download-scalapack --download-mumps
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.
- Why NO GNU compilers?
I should be able to remove this. Some part of PETSc was choosing the wrong GFortran. I tried to use that option to resolve. It turned out to be unnecessary.
* Scalar type should be real
OK, but this was not the case in develop
when I started this branch.
* Also add `--download-scalapack --download-mumps`
Agreed, but these were not the script from develop
when I started this branch.
I can do the latter two here, but this will mean a conflicts whenever the EMT stuff is merged.
@@ -104,51 +104,39 @@ if [ $host == "briareus" ]; then | |||
-D CMAKE_INSTALL_PREFIX:PATH="$prefix" \ | |||
$common_flags .. | |||
|
|||
elif [ $host == "we32673" ]; then | |||
elif [ $host == "WE39945" ]; then |
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 host is this?
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.
This is my MacBook. It used to be my Mac Pro, but I don't have that anymore.
Looks good. Have suggested some minor things. Can GridPACK python libraries be built with this change on Mac? |
docs/markdown/platforms/MacOSX.md
Outdated
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.
@abhyshr, I wrote up some notes on how I did the build on my MacBook. Take a look, and see if it's useful.
b601bac
to
03f494f
Compare
This PR provides changes necessary to build GridPACK on Mac OS X, particularly with shared libraries and the Python interface. This resolves #217 (mostly) in order to build with modern CLang compilers. Probably resolves #197 too.