Jason Gross
Jason Gross
ENH: improve `scipy.special.log_softmax` accuracy in edge cases by a factor of `2**126` to `2**1022`
Sorry it's taken me so long to respond. > We should try to get your local dev environment working correctly. The missing `` suggests a missing or incompatible `glibc`. Can...
ENH: improve `scipy.special.log_softmax` accuracy in edge cases by a factor of `2**126` to `2**1022`
It's weird that this it can't find the header though, because it exists on my system: ``` $ sudo find /usr/include /usr/local/include -name 'timesize.h' /usr/include/x86_64-linux-gnu/bits/timesize.h ```
ENH: improve `scipy.special.log_softmax` accuracy in edge cases by a factor of `2**126` to `2**1022`
I guess the (low-level) problem is that `-I` is not recursive and `/usr/include/x86_64-linux-gnu/bits/timesize.h` won't be found with `-I /usr/include` when `/usr/include/features-time64.h` has `#include `?
ENH: improve `scipy.special.log_softmax` accuracy in edge cases by a factor of `2**126` to `2**1022`
echo | gcc -v -E - ``` Reading specs from /home/jgross/.local64/mambaforge/envs/scipy-dev/bin/../lib/gcc/x86_64-conda-linux-gnu/12.3.0/specs could not find specs file conda.specs COLLECT_GCC=gcc Target: x86_64-conda-linux-gnu Configured with: ../configure --prefix=/home/conda/feedstock_root/build_artifacts/gcc_compilers_1699751145211/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeho --with-slibdir=/home/conda/feedstock_root/build_artifacts/gcc_compilers_1699751145211/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeho/lib --libdir=/home/conda/feedstock_root/build_artifacts/gcc_compilers_1699751145211/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeho/lib --mandir=/home/conda/feedstock_root/build_artifacts/gcc_compilers_1699751145211/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeho/man --build=x86_64-conda-linux-gnu --host=x86_64-conda-linux-gnu --target=x86_64-conda-linux-gnu...
ENH: improve `scipy.special.log_softmax` accuracy in edge cases by a factor of `2**126` to `2**1022`
But maybe you wanted me to mimic the call invoked by ninja $ echo | /home/jgross/.local64/mambaforge/envs/scipy-dev/bin/x86_64-conda-linux-gnu-c++ -Iscipy/stats/_stats_pythran.cpython-311-x86_64-linux-gnu.so.p -Iscipy/stats -I../scipy/stats -I../../../../.local64/mambaforge/envs/scipy-dev/lib/python3.11/site-packages/pythran -I../../../../.local64/mambaforge/envs/scipy-dev/lib/python3.11/site-packages/numpy/core/include -I/usr/include -I/home/jgross/.local64/mambaforge/envs/scipy-dev/include/python3.11 -fvisibility=hidden -fvisibility-inlines-hidden -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c++17...
ENH: improve `scipy.special.log_softmax` accuracy in edge cases by a factor of `2**126` to `2**1022`
> it seems like `mambaforge/envs/scipy-dev/lib/gcc/x86_64-conda-linux-gnu/include` should have a functional glibc. Is there no `timesize.h` there? There is no bits/, nor timesize.h. find ~/.local64/mambaforge/envs/scipy-dev/lib/gcc/x86_64-conda-linux-gnu/*/include ``` /home/jgross/.local64/mambaforge/envs/scipy-dev/lib/gcc/x86_64-conda-linux-gnu/12.3.0/include /home/jgross/.local64/mambaforge/envs/scipy-dev/lib/gcc/x86_64-conda-linux-gnu/12.3.0/include/stdatomic.h /home/jgross/.local64/mambaforge/envs/scipy-dev/lib/gcc/x86_64-conda-linux-gnu/12.3.0/include/quadmath.h /home/jgross/.local64/mambaforge/envs/scipy-dev/lib/gcc/x86_64-conda-linux-gnu/12.3.0/include/iso646.h /home/jgross/.local64/mambaforge/envs/scipy-dev/lib/gcc/x86_64-conda-linux-gnu/12.3.0/include/cet.h /home/jgross/.local64/mambaforge/envs/scipy-dev/lib/gcc/x86_64-conda-linux-gnu/12.3.0/include/gcov.h...
ENH: improve `scipy.special.log_softmax` accuracy in edge cases by a factor of `2**126` to `2**1022`
I will try venv and report back. Btw, with regards to > you follow all the steps [here](https://docs.scipy.org/doc/scipy/building/index.html) There seems to be a typo, `python -m pip sphinx` and `python...
ENH: improve `scipy.special.log_softmax` accuracy in edge cases by a factor of `2**126` to `2**1022`
Trying with venv instead: ``` $ git clean -xfd . $ python -m venv venv $ source venv/bin/activate ``` python -m pip install numpy cython pythran pybind11 meson ninja pydevtool...
ENH: improve `scipy.special.log_softmax` accuracy in edge cases by a factor of `2**126` to `2**1022`
Also the CI seems to pass with my updated code.
ENH: improve `scipy.special.log_softmax` accuracy in edge cases by a factor of `2**126` to `2**1022`
Ah, sorry, I guess I was premature with the CI before. Btw, you might want to update the build instructions, I had to do ``` python -m pip install hypothesis...