@@ -94,8 +94,7 @@ int main(int argc, char *argv[])
9494 clock_t start_init, end_init;
9595 // read the file the first time
9696 if (bBufferFileExist == false ){
97- dataReader.GetDataInfo (strFileName, numFea, numIns, numFeaValue);
98- // numFea = 28; numIns = 11000000; numFeaValue = 283685620;//for higgs
97+ dataReader.GetDataInfo (strFileName, numFea, numIns, numFeaValue);
9998 dataReader.ReadLibSVMAsSparse (v_vInsSparse, v_fLabel, strFileName, numFea, numIns);
10099 trainer.m_vvInsSparse = v_vInsSparse;// later used in sorting values for each feature
101100 trainer.m_vTrueValue = v_fLabel;
@@ -176,16 +175,6 @@ if(alwaysRle == true)
176175 }
177176 bagManager.m_pTrueLabel_h = pTrueLabel;
178177
179- // print instance information
180- int insId = 10444952 ;
181- long start = plInsStartPos[insId];
182- long end = plInsStartPos[insId + 1 ] - 1 ;
183- printf (" %f " , pTrueLabel[insId]);
184- for (int i = start; i <= end; i++){
185- printf (" %d:%f\t " , pFeaId[i], pfFeaValue[i]);
186- }
187- printf (" \n " );
188-
189178if (testNaiveCsr == true ){
190179checkCudaErrors (cudaMallocHost ((void **)&fvalue_d, sizeof (real) * numFeaValue));
191180checkCudaErrors (cudaMallocHost ((void **)&fvalue_org_d, sizeof (real) * numFeaValue));
0 commit comments