spcl / dace

DaCe - Data Centric Parallel Programming
http://dace.is/fast
BSD 3-Clause "New" or "Revised" License
494 stars 128 forks source link

Benchmark against other frameworks with Python/numpy frontend #669

Open learning-chip opened 3 years ago

learning-chip commented 3 years ago

Hi, this is very cool work.

This repository https://github.com/dionhaefner/pyhpc-benchmarks compares several Python-HPC frameworks such as JAX, Numba, CuPy, PyTorch, etc. Would be useful to add DaCe to the comparison.

Related: dionhaefner/pyhpc-benchmarks#6

tbennun commented 3 years ago

Thanks! This looks very interesting and we would be happy to help. Is there a particular problem with implementing the benchmark?

learning-chip commented 3 years ago

Is there a particular problem with implementing the benchmark?

Thanks, @dionhaefner would be the expert to talk with😃

I am currently busy with other stuff and will try implementing some tests myself when time allows.

dionhaefner commented 3 years ago

I tried to apply @dace.program to the EOS benchmark, but got some errors that multiplications between floats are not implemented.

If you can get DaCe to support this, or supply me with a working implementation of the benchmark, I am happy to crunch the numbers on our hardware and add it to the repo.

tbennun commented 3 years ago

Interesting, thanks! I tried EOS with the latest master branch yesterday and it compiled successfully (I didn't run anything because of the __init__.py setup). I added import dace and decorated gsw_dHdT with @dace.program(auto_optimize=True).

This could be because of the released version being outdated. Since we'd like to release the latest version (which has improved Python support), it'd be great if we first make sure all three benchmarks run beforehand. What are the changes required to add an implementation to pyhpc-benchmarks?

dionhaefner commented 3 years ago

I've added instructions on how to add a new backend to pyhpc-benchmarks. Don't worry, it's really simple :)

Looking forward to your PR!

tbennun commented 3 years ago

That's great, thanks!