Codebase list kmc / 05abd9d
Refresh patches. Debian Janitor 2 years ago
7 changed file(s) with 72 addition(s) and 38 deletion(s). Raw diff Collapse all Expand all
44 makefile | 13 ++++++++++---
55 1 file changed, 10 insertions(+), 3 deletions(-)
66
7 Index: kmc/makefile
8 ===================================================================
79 --- kmc.orig/makefile
810 +++ kmc/makefile
911 @@ -1,4 +1,4 @@
1214
1315 KMC_BIN_DIR = bin
1416 KMC_MAIN_DIR = kmer_counter
15 @@ -9,6 +9,7 @@
17 @@ -9,6 +9,7 @@ PY_KMC_API_DIR = py_kmc_api
1618
1719 KMC_TOOLS_CXXFLAGS := $(CXXFLAGS) -Wall -O3
1820 KMC_TOOLS_LDFLAGS := $(LDFLAGS) -lm -O3 -lpthread -std=c++14 -lz -lbz2
2022
2123 CXXFLAGS += -Wall -O3
2224 LDFLAGS += -lm -O3 -lpthread -std=c++11 -lz -lbz2
23 @@ -97,6 +98,10 @@
25 @@ -97,6 +98,10 @@ py_kmc_api: $(PY_KMC_API_OBJS) $(PY_KMC_
2426 -I `python3 -c "import sysconfig;print(sysconfig.get_paths()['include'])"` \
2527 -o $(KMC_BIN_DIR)/$@`python3-config --extension-suffix`
2628
3133 clean:
3234 -rm -f $(KMC_MAIN_DIR)/*.o
3335 -rm -f $(KMC_API_DIR)/*.o
34 @@ -105,3 +110,4 @@
36 @@ -105,3 +110,4 @@ clean:
3537 -rm -f $(PY_KMC_API_DIR)/*.o
3638 -rm -f $(PY_KMC_API_DIR)/*.so
3739 -rm -rf bin
55 Last-Update: 2020-12-10
66 ---
77 This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
8 Index: kmc/makefile
9 ===================================================================
810 --- kmc.orig/makefile
911 +++ kmc/makefile
1012 @@ -1,4 +1,4 @@
44 makefile | 10 +++++-----
55 1 file changed, 5 insertions(+), 5 deletions(-)
66
7 Index: kmc/makefile
8 ===================================================================
79 --- kmc.orig/makefile
810 +++ kmc/makefile
9 @@ -7,12 +7,11 @@
11 @@ -7,12 +7,11 @@ KMC_DUMP_DIR = kmc_dump
1012 KMC_TOOLS_DIR = kmc_tools
1113 PY_KMC_API_DIR = py_kmc_api
1214
2325
2426 KMC_OBJS = \
2527 $(KMC_MAIN_DIR)/kmer_counter.o \
26 @@ -61,38 +60,38 @@
28 @@ -61,38 +60,38 @@ $(KMC_TOOLS_DIR)/fastq_writer.o \
2729 $(KMC_TOOLS_DIR)/percent_progress.o
2830
2931 $(KMC_OBJS) $(KMC_DUMP_OBJS) $(KMC_API_OBJS): %.o: %.cpp
00 Description: add required header for std::modf
11 Author: Sascha Steinbiss <sascha@steinbiss.name>
2 Index: kmc/kmc_dump/nc_utils.h
3 ===================================================================
24 --- kmc.orig/kmc_dump/nc_utils.h
35 +++ kmc/kmc_dump/nc_utils.h
46 @@ -11,6 +11,7 @@
00 Author: Michael R. Crusoe <crusoe@debian.org>
11 Description: support non-x86 systems via libsimde-dev
2 Index: kmc/kmer_counter/cpu_info.cpp
3 ===================================================================
24 --- kmc.orig/kmer_counter/cpu_info.cpp
35 +++ kmc/kmer_counter/cpu_info.cpp
4 @@ -38,6 +38,7 @@
6 @@ -38,6 +38,7 @@ static struct CpuInfoImpl {
57 string vendor, brand;
68 void cpuid(int *result, int function_id) const
79 {
911 #ifdef _MSC_VER
1012 __cpuidex(result, function_id, 0);
1113
12 @@ -53,10 +54,12 @@
14 @@ -53,10 +54,12 @@ static struct CpuInfoImpl {
1315 __asm__("cpuid\n\t"
1416 : "=a" (result[0]), "=b" (result[1]), "=c" (result[2]), "=d" (result[3]) : "0" (function_id), "c"(0));
1517 #endif
2224 array<int, 4> cpui = { -1 };
2325 cpuid(cpui.data(), 0);
2426 int nIds_ = cpui[0];
25 @@ -90,6 +93,9 @@
27 @@ -90,6 +93,9 @@ static struct CpuInfoImpl {
2628 std::bitset<32> EBX = data_[7][1];
2729 avx2 = EBX[5];
2830 }
3234 }
3335
3436 const string& GetVendor() const
35 @@ -145,4 +151,4 @@
37 @@ -145,4 +151,4 @@ bool CCpuInfo::SSE42_Enabled() { return
3638 bool CCpuInfo::AVX_Enabled() { return cpu_info_impl.avx; }
3739 bool CCpuInfo::AVX2_Enabled() { return cpu_info_impl.avx2; }
3840
3941 -// ***** EOF
4042 \ No newline at end of file
4143 +// ***** EOF
44 Index: kmc/kmer_counter/intr_copy.h
45 ===================================================================
4246 --- kmc.orig/kmer_counter/intr_copy.h
4347 +++ kmc/kmer_counter/intr_copy.h
4448 @@ -11,8 +11,8 @@
5256
5357 #ifndef WIN32
5458 typedef long long __int64;
55 @@ -27,7 +27,7 @@
59 @@ -27,7 +27,7 @@ inline void IntrCopy64fun(void *_dest, v
5660 __int64* src = (__int64 *)_src;
5761
5862 for (unsigned i = 0; i < size; ++i)
6165 }
6266
6367
64 @@ -41,7 +41,7 @@
68 @@ -41,7 +41,7 @@ template <unsigned SIZE> struct IntrCopy
6569 __int64* src = (__int64*)_src;
6670
6771 for (unsigned i = 0; i < SIZE; ++i)
7074 }
7175 };
7276
73 @@ -89,4 +89,4 @@
77 @@ -89,4 +89,4 @@ template <unsigned SIZE> struct IntrCopy
7478
7579 #endif
7680
7781 -// ***** EOF
7882 \ No newline at end of file
7983 +// ***** EOF
84 Index: kmc/kmer_counter/kmc.h
85 ===================================================================
8086 --- kmc.orig/kmer_counter/kmc.h
8187 +++ kmc/kmer_counter/kmc.h
82 @@ -1112,6 +1112,8 @@
88 @@ -1113,6 +1113,8 @@ template <unsigned SIZE> bool CKMC<SIZE>
8389 #ifdef __APPLE__
8490 sort_func = RadixSort::RadixSortMSD<CKmer<SIZE>, SIZE>;
8591 CSmallSort<SIZE>::Adjust(384);
8894 #else
8995 auto proc_name = CCpuInfo::GetBrand();
9096 bool is_intel = CCpuInfo::GetVendor() == "GenuineIntel";
97 Index: kmc/makefile
98 ===================================================================
9199 --- kmc.orig/makefile
92100 +++ kmc/makefile
93 @@ -30,11 +30,16 @@
101 @@ -30,11 +30,16 @@ $(KMC_MAIN_DIR)/kb_storer.o \
94102 $(KMC_MAIN_DIR)/kmer.o \
95103 $(KMC_MAIN_DIR)/splitter.o \
96104 $(KMC_MAIN_DIR)/kb_collector.o
107115
108116 KMC_DUMP_OBJS = \
109117 $(KMC_DUMP_DIR)/nc_utils.o \
110 @@ -66,6 +71,7 @@
118 @@ -66,6 +71,7 @@ $(KMC_OBJS) $(KMC_DUMP_OBJS) $(KMC_API_O
111119 $(KMC_TOOLS_OBJS): %.o: %.cpp
112120 $(CXX) $(CPPFLAGS) $(KMC_TOOLS_CXXFLAGS) -c $< -o $@
113121
115123 $(KMC_MAIN_DIR)/raduls_sse2.o: $(KMC_MAIN_DIR)/raduls_sse2.cpp
116124 $(CXX) $(CPPFLAGS) $(CXXFLAGS) -msse2 -c $< -o $@
117125 $(KMC_MAIN_DIR)/raduls_sse41.o: $(KMC_MAIN_DIR)/raduls_sse41.cpp
118 @@ -74,6 +80,10 @@
126 @@ -74,6 +80,10 @@ $(KMC_MAIN_DIR)/raduls_avx.o: $(KMC_MAIN
119127 $(CXX) $(CPPFLAGS) $(CXXFLAGS) -mavx -c $< -o $@
120128 $(KMC_MAIN_DIR)/raduls_avx2.o: $(KMC_MAIN_DIR)/raduls_avx2.cpp
121129 $(CXX) $(CPPFLAGS) $(CXXFLAGS) -mavx2 -c $< -o $@
126134
127135 kmc: $(KMC_OBJS) $(RADULS_OBJS)
128136 -mkdir -p $(KMC_BIN_DIR)
137 Index: kmc/kmer_counter/splitter.cpp
138 ===================================================================
129139 --- kmc.orig/kmer_counter/splitter.cpp
130140 +++ kmc/kmer_counter/splitter.cpp
131 @@ -350,7 +350,7 @@
141 @@ -363,7 +363,7 @@ bool CSplitter::GetSeq(char *seq, uint32
132142 if (!both_strands && is_rev_comp) //if read is reversed and kmc was run to count all (not only canonical) kmers read must be transformed back
133143 {
134144 //static const char rev_maping[] = "=TGMCRSVAWYHKDBN";
137147 uint32 n_bytes = l_seq / 2;
138148 uint64_t pos_after = pos + l_seq;
139149 pos = pos_after;
140 @@ -369,7 +369,7 @@
150 @@ -382,7 +382,7 @@ bool CSplitter::GetSeq(char *seq, uint32
141151 }
142152 else
143153 {
146156 uint32 n_bytes = l_seq / 2;
147157 for (uint32_t ii = 0; ii < n_bytes; ++ii)
148158 {
149 @@ -956,4 +956,4 @@
159 @@ -991,4 +991,4 @@ template bool CSplitter::ProcessReadsSma
150160 template class CWSmallKSplitter<uint32>;
151161 template class CWSmallKSplitter<uint64>;
152162
153163 -// ***** EOF
154164 \ No newline at end of file
155165 +// ***** EOF
166 Index: kmc/kmer_counter/raduls.h
167 ===================================================================
156168 --- kmc.orig/kmer_counter/raduls.h
157169 +++ kmc/kmer_counter/raduls.h
158 @@ -23,7 +23,7 @@
170 @@ -23,7 +23,7 @@ namespace RadulsSort
159171 {
160172 template<typename KMER_T>
161173 void RadixSortMSD_SSE2(KMER_T* kmers, KMER_T* tmp, uint64 n_recs, uint32 byte, uint32 n_threads, CMemoryPool* pmm_radix_buf);
164176 template<typename KMER_T>
165177 void RadixSortMSD_SSE41(KMER_T* kmers, KMER_T* tmp, uint64 n_recs, uint32 byte, uint32 n_threads, CMemoryPool* pmm_radix_buf);
166178
167 @@ -32,8 +32,9 @@
179 @@ -32,8 +32,9 @@ namespace RadulsSort
168180
169181 template<typename KMER_T>
170182 void RadixSortMSD_AVX2(KMER_T* kmers, KMER_T* tmp, uint64 n_recs, uint32 byte, uint32 n_threads, CMemoryPool* pmm_radix_buf);
176188 -// ***** EOF
177189 \ No newline at end of file
178190 +// ***** EOF
191 Index: kmc/kmer_counter/raduls_impl.h
192 ===================================================================
179193 --- kmc.orig/kmer_counter/raduls_impl.h
180194 +++ kmc/kmer_counter/raduls_impl.h
181 @@ -730,7 +730,7 @@
195 @@ -730,7 +730,7 @@ namespace RadulsSort
182196 #define RADULS_RADIX_SORT_FUNNAME RadixSortMSD_AVX
183197 #elif defined(__SSE4_1__)
184198 #define RADULS_RADIX_SORT_FUNNAME RadixSortMSD_SSE41
187201 #define RADULS_RADIX_SORT_FUNNAME RadixSortMSD_SSE2
188202 #endif
189203
190 @@ -769,4 +769,4 @@
204 @@ -769,4 +769,4 @@ namespace RadulsSort
191205
192206 #endif
193207
33 Last-Update: 2020-12-10
44 ---
55 This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
6 Index: kmc/kmc_tools/kmc2_db_reader.h
7 ===================================================================
68 --- kmc.orig/kmc_tools/kmc2_db_reader.h
79 +++ kmc/kmc_tools/kmc2_db_reader.h
8 @@ -1532,7 +1532,7 @@
10 @@ -1532,7 +1532,7 @@ desc(desc)
911 my_fseek(kmc_pre, 4, SEEK_SET);
1012 if (fread(LUTS, sizeof(uint64), lut_recs, kmc_pre) != lut_recs)
1113 {
1416 exit(1);
1517 }
1618 fclose(kmc_pre);
17 @@ -2026,7 +2026,7 @@
19 @@ -2026,7 +2026,7 @@ template<unsigned SIZE> CKMC2DbReader<SI
1820 db_reader_counters_only = std::make_unique<CKMC2DbReaderCountersOnly<SIZE>>(header, desc);
1921 break;
2022 default: //should never be here
2325 exit(1);
2426 }
2527 }
28 Index: kmc/kmc_tools/parameters_parser.cpp
29 ===================================================================
2630 --- kmc.orig/kmc_tools/parameters_parser.cpp
2731 +++ kmc/kmc_tools/parameters_parser.cpp
28 @@ -150,7 +150,7 @@
32 @@ -150,7 +150,7 @@ void CParametersParser::read_input_fastq
2933 config.filtering_params.input_file_type = CFilteringParams::file_type::fastq;
3034 break;
3135 default:
3438 exit(1);
3539 break;
3640 }
37 @@ -220,7 +220,7 @@
41 @@ -220,7 +220,7 @@ void CParametersParser::read_filter_para
3842 }
3943 else
4044 {
4347 }
4448 ++pos;
4549 }
46 @@ -264,7 +264,7 @@
50 @@ -264,7 +264,7 @@ void CParametersParser::read_input_desc(
4751 }
4852 else
4953 {
5256 exit(1);
5357 }
5458 }
55 @@ -534,7 +534,7 @@
59 @@ -534,7 +534,7 @@ bool CParametersParser::read_output_desc
5660 }
5761 else
5862 {
6165 Usage();
6266 exit(1);
6367 }
64 @@ -594,7 +594,7 @@
68 @@ -594,7 +594,7 @@ void CParametersParser::Parse()
6569 }
6670 else
6771 {
7074 Usage();
7175 exit(1);
7276 }
73 @@ -614,7 +614,7 @@
77 @@ -614,7 +614,7 @@ void CParametersParser::Parse()
7478 read_output_fastq_desc();
7579 if (config.filtering_params.use_float_value && config.filtering_params.filter_mode != CFilteringParams::FilterMode::normal)
7680 {
7983 exit(1);
8084 }
8185 }
82 @@ -851,4 +851,4 @@
86 @@ -851,4 +851,4 @@ void CParametersParser::SetThreads()
8387
8488
8589
8690 -// ***** EOF
8791 \ No newline at end of file
8892 +// ***** EOF
93 Index: kmc/kmc_tools/parser.cpp
94 ===================================================================
8995 --- kmc.orig/kmc_tools/parser.cpp
9096 +++ kmc/kmc_tools/parser.cpp
91 @@ -141,7 +141,7 @@
97 @@ -141,7 +141,7 @@ void CParser::parseInputLine(const std::
9298 desc.cutoff_max = atoi(tmp.c_str() + 3);
9399 continue;
94100 }
97103 exit(1);
98104 }
99105
100 @@ -220,7 +220,7 @@
106 @@ -220,7 +220,7 @@ void CParser::parseOtuputParamsLine()
101107 config.output_desc.counter_max = atoi(tmp.c_str() + 3);
102108 continue;
103109 }
106112 exit(1);
107113 }
108114 }
109 @@ -241,4 +241,4 @@
115 @@ -241,4 +241,4 @@ bool CParser::nextLine(std::string& line
110116 }
111117 }
112118
55 makefile | 8 ++------
66 2 files changed, 6 insertions(+), 10 deletions(-)
77
8 Index: kmc/kmer_counter/fastq_reader.h
9 ===================================================================
810 --- kmc.orig/kmer_counter/fastq_reader.h
911 +++ kmc/kmer_counter/fastq_reader.h
1012 @@ -16,8 +16,8 @@
1820
1921 using namespace std;
2022
23 Index: kmc/makefile
24 ===================================================================
2125 --- kmc.orig/makefile
2226 +++ kmc/makefile
23 @@ -36,10 +36,6 @@
27 @@ -36,10 +36,6 @@ $(KMC_MAIN_DIR)/raduls_sse41.o \
2428 $(KMC_MAIN_DIR)/raduls_avx2.o \
2529 $(KMC_MAIN_DIR)/raduls_avx.o
2630
3135 KMC_DUMP_OBJS = \
3236 $(KMC_DUMP_DIR)/nc_utils.o \
3337 $(KMC_DUMP_DIR)/kmc_dump.o
34 @@ -64,10 +60,6 @@
38 @@ -64,10 +60,6 @@ $(KMC_TOOLS_DIR)/fastq_reader.o \
3539 $(KMC_TOOLS_DIR)/fastq_writer.o \
3640 $(KMC_TOOLS_DIR)/percent_progress.o
3741
4246 $(KMC_OBJS) $(KMC_DUMP_OBJS) $(KMC_API_OBJS): %.o: %.cpp
4347 $(CC) $(CFLAGS) -c $< -o $@
4448
49 Index: kmc/kmc_tools/fastq_reader.h
50 ===================================================================
4551 --- kmc.orig/kmc_tools/fastq_reader.h
4652 +++ kmc/kmc_tools/fastq_reader.h
4753 @@ -17,8 +17,8 @@
5561
5662
5763 using namespace std;
58 @@ -96,4 +96,4 @@
64 @@ -96,4 +96,4 @@ public:
5965
6066 #endif
6167