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

Why Julia benchmark #2

Open
ashwinvis opened this issue Mar 4, 2020 · 0 comments
Open

Why Julia benchmark #2

ashwinvis opened this issue Mar 4, 2020 · 0 comments

Comments

@ashwinvis
Copy link
Member

ashwinvis commented Mar 4, 2020

Regarding #1, no backends can work suitably as of now... Apart from a transonic parsing issue of numpy.fft subpackage (https://foss.heptapod.net/fluiddyn/transonic/issues/32):

  • pythran: misses complex fft and ifft support. Changing to real FFT - which is wrong makes it run without throwing any errors (b8e0e84) which should not have happened - numba and cython detects the size of arrays mismatch. (not reproducible)
  • numba: cannot deal with from numpy import * imports. Pythran can handle it though!
  • cython: throws a strange error:
 Traceback (most recent call last):
  File "ksbenchmark.py", line 115, in <module>
    ksbenchmark(int(sys.argv[1]), printnorm=True)
  File "ksbenchmark.py", line 36, in ksbenchmark
    u = ksintegrate(u0,Lx,dt, Nt)
  File "/home/avmo/.pyenv/versions/fluiddyn/lib/python3.8/site-packages/transonic/justintime.py", line 363, in type_collector
    backend_module = import_from_path(
  File "/home/avmo/.pyenv/versions/fluiddyn/lib/python3.8/site-packages/transonic/util.py", line 340, in import_from_path
    spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 1109, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "ksintegrate_f448e7c6f0b2bbbb4871b2eaa9eed713_5a2836f0f345d7dbb5ce1e10d750daaa.py", line 1, in init ksintegrate_f448e7c6f0b2bbbb4871b2eaa9eed713_5a2836f0f345d7dbb5ce1e10d750daaa
TypeError: Cannot overwrite C type array
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

1 participant