Closed ahbarnett closed 2 years ago
duh, just read README. Trying C++ now... ok, tests pass but no timing performance done here.
Try pip install pybind11
?
The Python installation is the only way the benchmarks are run right now (via bench/bench.py
). I think I just forgot pybind11
in setup.py
. Will fix it tomorrow!
Thanks! I guess I'd assumed the local pip would install any needed pkgs, but that's my ignorance. Works now! ryzen laptop:
(py310) alex@ross /home/alex/physics/nufft-ls> ./bench/bench.py
Running with N=3554, M=100000, dtype float64
baseline took 6.058 sec
winding baseline took 0.209 sec
astropy took 17.17 sec
baseline vs winding
frac isclose 100%
max frac err 8.861e-10
winding vs astropy
frac isclose 100%
max frac err 4.642e-10
Not your fault, I forgot to add a dependency on that package! Glad it's working now.
I'm not a py expert but this fails for me on a fresh conda env. Some pybind11 issue w/ gcc (I have gcc 10 in pop!os21.04):
Here goes (after I did conda update conda, I needed to update beyond my old 3.7):
Is there a C++ only makefile test?