What is a .digest file (fpm)

Dear all:

Recently I realized that the array I am allocating memory to might be too big, so I am digging into the ./build/gfortran_randomnumber/myprojectname/, and found out the .digest file with some positive number and negative numbers in each module. What are these files supposed to mean?

HJ

A digest is the output of a hash function, and in this case it is being used to check whether any of the source files have been changed since the last compilation (so that FPM can avoid recompiling files that haven’t changed).

Relevant parts of the FPM code are here (reading the cached digests), here (calculating the new digest), and here (saving the new digests).

3 Likes

Hi @seamsay, thanks for the detailed reply!

1 Like