Integer 4 or integer 8?

@gardhor, just noticed this thread -

FYI we’ve just completed templating the integer kind for stdlib’s internal BLAS and LAPACK implementation, so it now offers both 32- and 64-bit integer sizes for all procedures.

All interfaces are now templated, which means you can i.e. call gemm(...) agnostically with either integer kind, and it will just work.

Then if you have an external library, you can link against it and then either the 32- or the 64-bit implementtaions will be replaced with calls to the external library.

Because there’s a lot more code, we’ve made a special branch that you can quickly check out with fpm as

[dependencies]
stdlib = { git="https://github.com/fortran-lang/stdlib", branch="stdlib-fpm-ilp64"}

or just use CMake (turning 64-bit integer support on), see readme.

5 Likes

This is 100% pure gold.

1 Like

I don’t think large 64-bit arrays will be a corner case for much longer !
This is a short sighted approach which needs to change.

Thanks for the “short-sighted”.

But please don’t quote out of context and by forgetting all the points I have developed.