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

Integrating 2decomp C interface #43

Open
G-Ragghianti opened this issue Apr 18, 2022 · 0 comments
Open

Integrating 2decomp C interface #43

G-Ragghianti opened this issue Apr 18, 2022 · 0 comments
Assignees

Comments

@G-Ragghianti
Copy link
Contributor

I have imported the 2decomp c interface code into my branch at https://github.com/icl-utk-edu/fiber/tree/gragghia/2decomp

I think that we need to add cmake support to reproduce what the make is doing (external/2decompFFT_c_iface/Makefile) to compile lib2decomp_fft_iface.a:

gfortran   -o build/decomp_2d_ciface.o -I /home/gragghia/spack/opt/spack/linux-centos7-broadwell/gcc-9.2.0/2decomp-1.5.847-doqto43oprkxzqw36pd2nrgagvbvqsg6/include -c decomp_2d_ciface.F90
ar vr ./lib/lib2decomp_fft_iface.a build/decomp_2d_ciface.o
r - build/decomp_2d_ciface.o
ranlib ./lib/lib2decomp_fft_iface.a

Then we need the main fiber CMakeLists.txt to link to lib2decomp_fft_iface.a.

Should the build of the library be done in a separate CMakeLists.txt within external/2decompFFT_c_iface/ or can this be done in the fiber CMakeLists.txt? Help is appreciated.

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

4 participants