3 ms·
That's a 6 year old documentation page, modern numpy does not use fortran in any way except that maybe you have a particular BLAS reference implementation.
by whimsicalism 4y ago
That's a 6 year old documentation page, modern numpy does not use fortran in any way except that maybe you have a particular BLAS reference implementation.
- adastra22 4y agoNumpy is basically a wrapper to BLAS and LAPACK though, so it seems a bit odd to ignore the fact that those system libraries are usually written in Fortran.
- whimsicalism 4y agoThe reference implementation is written in Fortran, but I'm not sure about the implementations actually used. OpenBLAS has fortran components, but I believe cuBLAS and MKL are vast majority C/C++.
- taeric 4y agoThis is a very fair challenge. My understanding was that the main ones in use were fortran and it is very interesting to see that may not be the case. Love to see any benchmark or other comparisons on the options, if you know of any good links.
- adastra22 4y agocuBLAS is not Fortran because it targets NVIDIA GPUs. Despite what the grandparent says, MKL does include some Fortran in its codebase. Most other vendor-provided BLAS and LAPACK libraries are based on the reference Fortran implementation. Even OpenBLAS, the open-source reimplementation, has large parts written in Fortran.
- taeric 4y agoI did link to the old one.... but if you follow the link to the new, it still has that section? I'm confused.
- whimsicalism 4y agoThe old one says you need a fortran compiler to build numpy, the other one explicitly says you don't need a fortran compiler to build numpy.
- taeric 4y agoThe new one says it auto selects. I don't think they got rid of using the fortran if it is there. They just automated a lot of that in the build.