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

pfft on Android #38

Open
YSDC opened this issue Jan 6, 2023 · 1 comment
Open

pfft on Android #38

YSDC opened this issue Jan 6, 2023 · 1 comment

Comments

@YSDC
Copy link

YSDC commented Jan 6, 2023

Hello,
I try to compile PFFT for Android. I was expecting to build it for the multiple architecture that I have to support (armeabi-v7a and arm64-v8a) by adding first parameters to the configure command like this:

./configure CXX="/Users/XXX/Library/Android/sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ -target aarch64-linux-android" --prefix=/Users/XXX/Downloads/pfft-master/arm64-v8a

This command will replace gcc by clang as gcc is not able to compile for the two architectures that I need. the configure command works well but when I try to execute make, it complaines that symbol(s) not found for architecture x86_64.

I looked into the generated makefile and other files and it seems that gcc is used anyway, even if I pass clang in the CC parameters of the configure command.

Any idea on how I could generate the library for the two mentioned architectures?

@mpip
Copy link
Owner

mpip commented Jan 8, 2023

Hi,

do you have good reasons to use PFFT on mobile phones? I do not think that they are made for massively parallel computing via MPI. Do your already have FFTW with enabled MPI support for Android (since this is mandantory for PFFT).

Regarding your question: I never built PFFT with Android or llvm and I can not test it on my own but here are some hints:
Try to adapt the install script from https://www-user.tu-chemnitz.de/~potts/workgroup/pippig/software/install_pfft-1.0.8-alpha_gcc.sh at your needs -- or at least use the call of configure from this file. Note that you have to set the MPICC variable to make sure that the correct C-compiler is used. You also have to add the path to FFTW headers to CPPFLAGS and the path to the FFTW-MPI libs to LDFLAGS.

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

2 participants