-
Notifications
You must be signed in to change notification settings - Fork 18
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
pyccel acceleration does not seem to work in C #431
Comments
Some of these errors seem to be addressed in the Struphy psydac fork https://github.com/spossann/stefan-psydac, see for instance the commits Enable compilation with language C and Comment jacobian matrix eval kernels; lists not supported yet for c-c |
I replaced the python lists in I can successfully use For |
@campospinto @spossann @maxlin-ipp: Why do you want to use the C backend instead of the Fortran one? As of Pyccel 1.11.2, the Fortran backend is much better than the C one, both in terms of coverage of the Python language, and of performance of the accelerated functions. Therefore I still recommend Pyccel users to choose In the next version of Pyccel (1.11.3 or 2.0.0) the C backend will certainly be much more competitive. It should be able to translate the Psydac kernels out of the box. (cc: @EmilyBourne) |
I don't think As I mentioned to Stefan at the time a more helpful solution would be to help add support for this in Pyccel to benefit the community generally (if this had been done it would have worked out of the box for you). I don't currently have min/max/matmul on the roadmap for v2.0.0 but they can be added to make this a priority. As mentioned by Yaman we are currently improving the implementation of arrays in C. None of the improvements can therefore be looked at until pyccel/pyccel#1969 is completed. Hopefully some of these things may be easier to implement once that is done. |
current README mentions possibility of selecting C as pyccel backend, but not always possible, see issue #431 --------- Co-authored-by: Yaman Güçlü <[email protected]>
Clarify in the `README.md` file that, although the C backend may be selected for accelerating the kernel files with Pyccel, this is not fully working yet. Hence the Fortran backend (which is the default) is the only one available. A future version of Pyccel will certainly provide a C backend as capable as the Fortran one. See issue #431. Co-authored-by: Martin Campos Pinto <[email protected]>
We have just noticed that |
Clarify in the `README.md` file that, although the C backend may be selected for accelerating the kernel files with Pyccel, this is not fully working yet. Hence the Fortran backend (which is the default) is the only one available. A future version of Pyccel will certainly provide a C backend as capable as the Fortran one. See issue #431. Co-authored-by: Martin Campos Pinto <[email protected]>
The pyccelization of some kernels does not seem to work in C.
For instance, with the current version of devel, the command
python psydac_accelerate.py --language c
yields the following errors:and
I am running this on Mac OS but the error seems also present on other machines
The text was updated successfully, but these errors were encountered: