Skip to content

Why Julia benchmark #2

@ashwinvis

Description

@ashwinvis

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions