Files
guru/sci-libs/CombBLAS/files/CombBLAS-1.16.0_p20220331-rename-THRESHOLD.patch
Alessandro Barbieri a73a94e93e sci-libs/CombBLAS/files: rename patches
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
2022-05-25 21:21:46 +02:00

25 lines
892 B
Diff

--- a/include/CombBLAS/dcsc.cpp
+++ b/include/CombBLAS/dcsc.cpp
@@ -1223,7 +1223,7 @@
template<class VT>
void Dcsc<IT,NT>::FillColInds(const VT * colnums, IT nind, std::vector< std::pair<IT,IT> > & colinds, IT * aux, IT csize) const
{
- if ( aux == NULL || (nzc / nind) < THRESHOLD) // use scanning indexing
+ if ( aux == NULL || (nzc / nind) < COMBBLAS_THRESHOLD) // use scanning indexing
{
IT mink = std::min(nzc, nind);
std::pair<IT,IT> * isect = new std::pair<IT,IT>[mink];
--- a/include/CombBLAS/SpDefs.h
+++ b/include/CombBLAS/SpDefs.h
@@ -122,8 +122,8 @@
#define ALIGN 8
#endif
-#ifndef THRESHOLD
-#define THRESHOLD 4 // if range1.size() / range2.size() < threshold, use scanning based indexing
+#ifndef COMBBLAS_THRESHOLD
+#define COMBBLAS_THRESHOLD 4 // if range1.size() / range2.size() < threshold, use scanning based indexing
#endif
#ifndef MEMORYINBYTES