@@ -326,13 +326,11 @@ void GeneticTunerHarness::doCompile(ExecutorType& engine) {
326
326
pConf->optionalCompilationHandle =
327
327
std::unique_ptr<size_t >(new size_t (handle));
328
328
} catch (const std::exception& e) {
329
- if (FLAGS_debug_tuner) {
330
- LOG (WARNING) << " [TUNER][COMPILE] failed compilation: " << e.what ();
331
- std::stringstream ssWarning;
332
- MappingOptionsCppPrinter warningPrinter (ssWarning);
333
- warningPrinter << options;
334
- LOG_LINE_BY_LINE (WARNING, ssWarning);
335
- }
329
+ LOG (WARNING) << " [TUNER][COMPILE] failed compilation: " << e.what ();
330
+ std::stringstream ssWarning;
331
+ MappingOptionsCppPrinter warningPrinter (ssWarning);
332
+ warningPrinter << options;
333
+ LOG_LINE_BY_LINE (WARNING, ssWarning);
336
334
pConf->invalid = true ;
337
335
}
338
336
CHECK (pConf->invalid || pConf->optionalCompilationHandle )
@@ -413,14 +411,12 @@ void GeneticTunerHarness::doGpuWork(
413
411
engine.clear (handle);
414
412
}
415
413
} catch (std::exception& e) {
416
- if (FLAGS_debug_tuner) {
417
- LOG (WARNING) << " Runtime error gpu " << gpu << " : " << e.what ();
418
- std::stringstream ssWarning;
419
- MappingOptionsCppPrinter warningPrinter (ssWarning);
420
- warningPrinter << options;
421
- LOG (WARNING) << " Aborted execution on gpu " << gpu;
422
- LOG_LINE_BY_LINE (WARNING, ssWarning);
423
- }
414
+ LOG (WARNING) << " Runtime error gpu " << gpu << " : " << e.what ();
415
+ std::stringstream ssWarning;
416
+ MappingOptionsCppPrinter warningPrinter (ssWarning);
417
+ warningPrinter << options;
418
+ LOG (WARNING) << " Aborted execution on gpu " << gpu;
419
+ LOG_LINE_BY_LINE (WARNING, ssWarning);
424
420
while (cudaGetLastError () != cudaSuccess) {
425
421
// In case of errors in the generated, we cannot rely on deviceReset to
426
422
// set the GPU in a clean state. So instead we just pop and discard all
0 commit comments