changeset 527:7ee6a2701d90 multiprobeLSH

Added more debugging information: report numPairs returned from LSH bucket retrieval (pre-distance computation), entry/exit from audiodb_query_spec_qpointers(...)
author mas01mc
date Wed, 28 Jan 2009 18:55:46 +0000
parents cbd5841e6b70
children 561339c7fd26
files Makefile query-indexed.cpp query.cpp
diffstat 3 files changed, 15 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Wed Jan 28 17:54:18 2009 +0000
+++ b/Makefile	Wed Jan 28 18:55:46 2009 +0000
@@ -17,7 +17,7 @@
 MINORVERSION=0
 LIBRARY=lib$(EXECUTABLE).so.$(SOVERSION).$(MINORVERSION)
 
-override CFLAGS+=-O3 -g -fPIC
+override CFLAGS+=-ggdb -g -fPIC
 
 # set to DUMP hashtables on QUERY load
 #override CFLAGS+=-DLSH_DUMP_CORE_TABLES
--- a/query-indexed.cpp	Wed Jan 28 17:54:18 2009 +0000
+++ b/query-indexed.cpp	Wed Jan 28 18:55:46 2009 +0000
@@ -115,11 +115,21 @@
     return -1;
   }
 
+#ifdef _LSH_DEBUG_
+  cout << "spec_qpointers...";
+  cout.flush();
+#endif
+
   if(audiodb_query_spec_qpointers(adb, spec, &query_data, &query, &qpointers)) {
     delete [] database;
     return -1;
   }
 
+#ifdef _LSH_DEBUG_
+  cout << "done" << endl;
+  cout.flush();
+#endif
+
   uint32_t Nq = (qpointers.nvectors > ADB_LSH_MAXTRACKLEN ? ADB_LSH_MAXTRACKLEN : qpointers.nvectors) - sequence_length + 1;
   std::vector<std::vector<float> > *vv = audiodb_index_initialize_shingles(Nq, adb->header->dim, sequence_length);
 
--- a/query.cpp	Wed Jan 28 17:54:18 2009 +0000
+++ b/query.cpp	Wed Jan 28 18:55:46 2009 +0000
@@ -449,6 +449,10 @@
   double *dbdata = 0, *dbdata_pointer;
   Uns32T currentTrack = 0x80000000; // KLUDGE: Initialize with a value outside of track index range
   Uns32T npairs = qstate->exact_evaluation_queue->size();
+#ifdef _LSH_DEBUG_
+  cout << "Num vector pairs to evaluate: " << npairs << "..." << endl;
+  cout.flush();
+#endif  
   while(npairs--) {
     PointPair pp = qstate->exact_evaluation_queue->top();
     if(currentTrack != pp.trackID) {