-
Notifications
You must be signed in to change notification settings - Fork 4
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
Help needed for compilation with cmake #160
Comments
Could you please follow the steps posted at https://github.com/PrincetonUniversity/SPEC/wiki/Stellar-Compilation-Instructions and see if those instructions help? |
I got the Makefile setup for building the python wrapper to work again.
@abaillod @zhucaoxiang |
@mbkumar, I am not sure to fully understand your link, especially point 6. As I said, I am a beginner with cmake and I have no idea what I am doing when I modify these files. Anyway since the Makefile seems to be fixed I will work with that. I am happy to test the cmake on my machine though if needed! @jonathanschilling , thanks for fixing the Makefile! I however had to do some changes so that it works on my machine. I did the following changes:
Then all the tests you propose were successful! |
@abaillod Great to hear that this setup works for you! Can you maybe modify the |
@jonathanschilling @abaillod I pushed one commit to adopt the Intel compiler. Now, you can use something like But I do have a question testing
The first line is interesting. It doesn't show in the
I didn't push a fix because a) I was waiting for the merge of my f90warp fork; b) a solution works for both Makefile and CMAKE. But I think we are really close. (Just use a consistent name on both sides). |
@zhucaoxiang I think we should keep the adjusted name of the auto-generated Python wrapper as "spec_f90wrapped". @mbkumar Can you adjust the CMake setup to use this different name? |
I have no issues with using different names if that reduces confusion for
everyone.
I'll push a fix.
Bharat Medasani
Engineer
Princeton Plasma Physics Lab (PPPL)
…On Mon, Jan 24, 2022 at 6:14 AM Jonathan Schilling ***@***.***> wrote:
@zhucaoxiang <https://github.com/zhucaoxiang> I think we should keep the
adjusted name of the auto-generated Python wrapper as "spec_f90wrapped".
Otherwise, I feel that we have too many slightly different items named
"spec" in this setup.
@mbkumar <https://github.com/mbkumar> Can you adjust the CMake setup to
use this different name?
—
Reply to this email directly, view it on GitHub
<#160 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA62VEC5MQLLGJ76IMVRYLTUXUYB7ANCNFSM5LVTAZSA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
This issue has been solved on my machine thanks to the recent fixes proposed by @jonathanschilling. I am closing it! |
Hello,
I am trying to use the cmake option to compile both SPEC and the python wrappers (latest master branch, commit
dec8eb7
). The reason is that compiling SPEC, then the python wrappers is usually long and requires me to change the python wrapper makefile for every new commit (see #151), which is not optimal. So I thought maybe the cmake compilation is the solution to all of my problems! However I get a compilation error related to the FFTW library... What I did:
I get:
Am I missing some kind of environment variable (
FFTW_INCLUDE_DIRS
) ? I tried printing some environment variable related to FFTW, I getAdding a new environment variable with
does not work.
Anyone has a clue ? Note that compiling with
make BUILD_ENV=intel_spc
is working flawlessly. I am a total beginner with cmake and I don't know where to look. Do I need to write a setup file for cmake on my machine?The text was updated successfully, but these errors were encountered: