Skip to content

Commit e192ef8

Browse files
committed
Print when wisdom file is found in process_wisdom_file
1 parent 2909f0c commit e192ef8

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/wisdom.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,8 @@ static bool process_wisdom_file_impl(
204204
return false;
205205
}
206206

207+
log_debug() << "wisdom file found, processing file: " << path << "\n";
208+
207209
std::string line;
208210
if (!std::getline(stream, line)) {
209211
log_debug() << "error while reading wisdom file: " << path << "\n";
@@ -217,8 +219,8 @@ static bool process_wisdom_file_impl(
217219
try {
218220
parse_header(path, line, tuning_key, space, params, objective_key);
219221
} catch (const std::exception& e) {
220-
log_warning() << path << ":1: file is ignored, error while parsing: "
221-
<< e.what() << "\n";
222+
log_warning() << "error while parsing header of wisdom file: " << path
223+
<< ": " << e.what() << "\n";
222224
return false;
223225
}
224226

@@ -286,7 +288,8 @@ Config load_best_config(
286288
ProblemSize best_problem_size;
287289
uint64_t best_distance = std::numeric_limits<uint64_t>::max();
288290

289-
log_debug() << "parsing " << tuning_key << "\n";
291+
log_debug() << "searching wisdom file for kernel " << tuning_key << "\n";
292+
290293
auto callback = [&](const WisdomRecord& record) {
291294
double score = record.objective();
292295
const std::string& row_device = record.device_name();

0 commit comments

Comments
 (0)