Replies: 3 comments 8 replies
-
That's only one reference point. But here is what OpenBLAS is doing with respect to 32-bit vs. 64-bit Fortran integers: The installed files for both versions can be seen, e.g. at the bottom of these pages (without the optional library prefix or suffix): ARPACK doesn't need to follow the same logic. But these switches seem to work for them. The advantage of their approach is imho that the name of both package "flavors" is predictable (for pkg-config or cmake users) independent of the distribution. |
Beta Was this translation helpful? Give feedback.
-
Not convinced by "automatic" stuff as explained. We may set a relevant default value for
Lots of packages add suffixes to pc files (MKL and others) |
Beta Was this translation helpful? Give feedback.
-
Please, let me try to describe a use-case that would be nice if ARPACK supported it out of the box: Imho, it would be nice if ARPACK would allow to do something similar. So, in the above example ARPACK would be library B and some other project would be library A.
As far as I can tell, these requirements aren't met currently (apart from partly 1.). I hope it would be possible to adapt ARPACK so that it could meet those requirements. PS: The |
Beta Was this translation helpful? Give feedback.
-
What install do we want / need ? What should be the standard way to install arpack-ng?
CMake regular install looks like this:
CMake LIBSUFFIX=64 install looks like this:
CMake ITFSUFFIX=ILP64 install looks like this (note include directory name changes are #define in headers changes):
CMake ITFSUFFIX=ILP64 LIBSUFFIX=64 install looks like this:
Note that:
there is always only one
arpackng-config.cmake
: it doesn't behave likearpack*.pc
files: do cmake and pc files must behave the same way?having several
arpack*.pc
files means you need to know which one you need to use: this may change (code change) the way you call pkg-config. note that some packages work this way: mkl-intel provides several pc files, and, to use mkl you must know which mkl flavor you want to use.autotools (configure) does not provide cmake files (all of the above is generated by CMake).
If you have to maintain only "one
local
directory" for all flavors of arpack-ng, you may not be able to cope with everything.But using module-environment (
module avail; module load what-I-need
), you don't have to bother with this: the admin who installed it can hide all this for you.I have no idea what standards are on the topic (I use module-environment): if you know what's best to do, speak-up!
Beta Was this translation helpful? Give feedback.
All reactions