Is there any documentation that explains that this threshold is? Is there any external control? We are seeing far more pivoting using these functions that our own code.
There isn't any threshold in getrf. The algorithm is just looking for the maximal element in a column and places it to diagonal before factorizing this column.
For more complete information about compiler optimizations, see our Optimization Notice.