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

Added flang compiler #28

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Added flang compiler #28

wants to merge 1 commit into from

Conversation

ydesgagn
Copy link

@ydesgagn ydesgagn commented Feb 4, 2024

This is an incomplete draft to enable flang compiling, but a team effort will be required here to complete the work.

The setup-iOS.sh file is modified to build the docker image that will be used to compile the Fortran part of Scipy or any other package.

The main build script must be modified to put the newly added bin folder first in the path of the build environment so the makefile can see gfortran, which is actually a Python script that will call the docker container.

Next just create the recipe for scipy. Add dependencies as required like openblas and patch the setup/makefile as required like any other recipe. Scipy will build the c part at the beginning and after a few minutes it will hit the fortan part. At that point, the compilation will become really slow because of the file copy to the docker container and the terminal might be strange with broken CR/LF. After a few minutes, the fortran part will complete and the wheel will be packed as usual.

When I do that on my side with a repository pre-dating the first chaquopy iOS build system, it does work but I was only building the iphoneos wheel, not the fat wheel for the simulator.

@ydesgagn ydesgagn mentioned this pull request Feb 4, 2024
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

Successfully merging this pull request may close these issues.

1 participant