Skip to content
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

Cannot switch compiler to intel in ESL bundle #7

Closed
ocaisa opened this issue Mar 13, 2019 · 8 comments
Closed

Cannot switch compiler to intel in ESL bundle #7

ocaisa opened this issue Mar 13, 2019 · 8 comments

Comments

@ocaisa
Copy link

ocaisa commented Mar 13, 2019

I was trying to build the ESL bundle with the intel compiler and Flook is causing me problems when linking the demonstrator since it can't read the mod files generated by the GCC compiler used by Flook. Flook seems to ignore all of the typical environment variables (CC, FC, CFLAGS). It also seems that aotus requires an additional VENDOR=intel argument for intel compilers.

Any tips to make this work?

@zerothi
Copy link
Contributor

zerothi commented Mar 13, 2019

Both flook and aotus requires the VENDOR=intel flag, that should work.

@zerothi
Copy link
Contributor

zerothi commented Mar 13, 2019

Yeah, I agree I really need to fix the build system... It is just a mess with aotus which has the Lua sources shipped. Secondly, aotus has its own build-system (waf). So it is a bit tricky to streamline this... :(

@ocaisa
Copy link
Author

ocaisa commented Mar 13, 2019

The lua stuff is not too bad since it all C, so I can still link just fine. It's the fortran that's the problem because I need the .mod files with the right compiler.

@zerothi
Copy link
Contributor

zerothi commented Mar 13, 2019

Agreed, but it was more in terms of me doing another build-system. Then I need to create a build-system which uses different sub-build systems... :(

Well, just a complaint ;)

@zerothi
Copy link
Contributor

zerothi commented Mar 13, 2019

Actually the easiest is to do:

  1. Create an obj directory
  2. Create a setup.make file with this content:
CC = icc
FC = ifort
  1. Create a file Makefile with this content:
TOP_DIR =..
include ../Makefile
  1. Run make liball
  2. Run make install PREFIX=...

This should suffice, also for intel! :)

@ocaisa
Copy link
Author

ocaisa commented Mar 13, 2019

Yes, that works...now I just need to figure out how to tell the ESL bundle to do that!

@micaeljtoliveira
Copy link
Member

@ocaisa Sorry for the very late reply.

Yes, that works...now I just need to figure out how to tell the ESL bundle to do that!

That should not be too difficult, as one can tell jhbuild to apply a patch. I will create an issue for this.

@zerothi
Copy link
Contributor

zerothi commented May 21, 2019

Great! I'll close this for now.

@zerothi zerothi closed this as completed May 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants