Build fixes for clang 10 (#339)
* Build fixes for clang 10 fixes build warnings in clang10 * source formatting (clang-format v11) (#340) Co-authored-by: bwelton <bwelton@users.noreply.github.com> --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: bwelton <bwelton@users.noreply.github.com>
Bu işleme şunda yer alıyor:
işlemeyi yapan:
GitHub
ebeveyn
199f0b5421
işleme
0dd0cad2e4
@@ -176,6 +176,8 @@ if(ROCPROFILER_UNSAFE_NO_VERSION_CHECK)
|
|||||||
INTERFACE ROCPROFILER_UNSAFE_NO_VERSION_CHECK)
|
INTERFACE ROCPROFILER_UNSAFE_NO_VERSION_CHECK)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
rocprofiler_target_compile_definitions(rocprofiler-build-flags INTERFACE YY_NO_INPUT)
|
||||||
|
|
||||||
# ----------------------------------------------------------------------------------------#
|
# ----------------------------------------------------------------------------------------#
|
||||||
# user customization
|
# user customization
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -100,7 +100,7 @@ TEST(evaluate_ast, counter_expansion)
|
|||||||
: metric.expression().c_str());
|
: metric.expression().c_str());
|
||||||
yyparse(&ast);
|
yyparse(&ast);
|
||||||
ASSERT_TRUE(ast);
|
ASSERT_TRUE(ast);
|
||||||
asts.emplace(val, std::move(EvaluateAST({.handle = metric.id()}, metrics, *ast, "gfx9")));
|
asts.emplace(val, EvaluateAST({.handle = metric.id()}, metrics, *ast, "gfx9"));
|
||||||
yy_delete_buffer(buf);
|
yy_delete_buffer(buf);
|
||||||
delete ast;
|
delete ast;
|
||||||
}
|
}
|
||||||
@@ -135,7 +135,7 @@ TEST(evaluate_ast, counter_expansion_multi_derived)
|
|||||||
: metric.expression().c_str());
|
: metric.expression().c_str());
|
||||||
yyparse(&ast);
|
yyparse(&ast);
|
||||||
ASSERT_TRUE(ast);
|
ASSERT_TRUE(ast);
|
||||||
asts.emplace(val, std::move(EvaluateAST({.handle = metric.id()}, metrics, *ast, "gfx9")));
|
asts.emplace(val, EvaluateAST({.handle = metric.id()}, metrics, *ast, "gfx9"));
|
||||||
yy_delete_buffer(buf);
|
yy_delete_buffer(buf);
|
||||||
delete ast;
|
delete ast;
|
||||||
}
|
}
|
||||||
@@ -170,7 +170,7 @@ TEST(evaluate_ast, counter_expansion_order)
|
|||||||
: metric.expression().c_str());
|
: metric.expression().c_str());
|
||||||
yyparse(&ast);
|
yyparse(&ast);
|
||||||
ASSERT_TRUE(ast);
|
ASSERT_TRUE(ast);
|
||||||
asts.emplace(val, std::move(EvaluateAST({.handle = metric.id()}, metrics, *ast, "gfx9")));
|
asts.emplace(val, EvaluateAST({.handle = metric.id()}, metrics, *ast, "gfx9"));
|
||||||
yy_delete_buffer(buf);
|
yy_delete_buffer(buf);
|
||||||
delete ast;
|
delete ast;
|
||||||
}
|
}
|
||||||
@@ -204,7 +204,7 @@ TEST(evaluate_ast, counter_expansion_function)
|
|||||||
: metric.expression().c_str());
|
: metric.expression().c_str());
|
||||||
yyparse(&ast);
|
yyparse(&ast);
|
||||||
ASSERT_TRUE(ast) << metric.expression() << " " << metric.name();
|
ASSERT_TRUE(ast) << metric.expression() << " " << metric.name();
|
||||||
asts.emplace(val, std::move(EvaluateAST({.handle = metric.id()}, metrics, *ast, "gfx9")));
|
asts.emplace(val, EvaluateAST({.handle = metric.id()}, metrics, *ast, "gfx9"));
|
||||||
yy_delete_buffer(buf);
|
yy_delete_buffer(buf);
|
||||||
delete ast;
|
delete ast;
|
||||||
}
|
}
|
||||||
@@ -256,8 +256,8 @@ TEST(evaluate_ast, counter_constants)
|
|||||||
yyparse(&ast);
|
yyparse(&ast);
|
||||||
ASSERT_TRUE(ast) << metric.expression() << " " << metric.name();
|
ASSERT_TRUE(ast) << metric.expression() << " " << metric.name();
|
||||||
asts.emplace("gfx9", std::unordered_map<std::string, EvaluateAST>{})
|
asts.emplace("gfx9", std::unordered_map<std::string, EvaluateAST>{})
|
||||||
.first->second.emplace(
|
.first->second.emplace(val,
|
||||||
val, std::move(EvaluateAST({.handle = metric.id()}, metrics, *ast, "gfx9")));
|
EvaluateAST({.handle = metric.id()}, metrics, *ast, "gfx9"));
|
||||||
yy_delete_buffer(buf);
|
yy_delete_buffer(buf);
|
||||||
delete ast;
|
delete ast;
|
||||||
}
|
}
|
||||||
@@ -448,8 +448,8 @@ TEST(evaluate_ast, evaluate_simple_counters)
|
|||||||
yyparse(&ast);
|
yyparse(&ast);
|
||||||
ASSERT_TRUE(ast) << metric.expression() << " " << metric.name();
|
ASSERT_TRUE(ast) << metric.expression() << " " << metric.name();
|
||||||
asts.emplace("gfx9", std::unordered_map<std::string, EvaluateAST>{})
|
asts.emplace("gfx9", std::unordered_map<std::string, EvaluateAST>{})
|
||||||
.first->second.emplace(
|
.first->second.emplace(val,
|
||||||
val, std::move(EvaluateAST({.handle = metric.id()}, metrics, *ast, "gfx9")));
|
EvaluateAST({.handle = metric.id()}, metrics, *ast, "gfx9"));
|
||||||
yy_delete_buffer(buf);
|
yy_delete_buffer(buf);
|
||||||
delete ast;
|
delete ast;
|
||||||
}
|
}
|
||||||
@@ -544,8 +544,8 @@ run_reduce_test(
|
|||||||
yyparse(&ast);
|
yyparse(&ast);
|
||||||
ASSERT_TRUE(ast) << metric.expression() << " " << metric.name();
|
ASSERT_TRUE(ast) << metric.expression() << " " << metric.name();
|
||||||
asts.emplace("gfx9", std::unordered_map<std::string, EvaluateAST>{})
|
asts.emplace("gfx9", std::unordered_map<std::string, EvaluateAST>{})
|
||||||
.first->second.emplace(
|
.first->second.emplace(val,
|
||||||
val, std::move(EvaluateAST({.handle = metric.id()}, metrics, *ast, "gfx9")));
|
EvaluateAST({.handle = metric.id()}, metrics, *ast, "gfx9"));
|
||||||
yy_delete_buffer(buf);
|
yy_delete_buffer(buf);
|
||||||
delete ast;
|
delete ast;
|
||||||
}
|
}
|
||||||
@@ -975,8 +975,8 @@ TEST(evaluate_ast, evaluate_mixed_counters)
|
|||||||
yyparse(&ast);
|
yyparse(&ast);
|
||||||
ASSERT_TRUE(ast) << metric.expression() << " " << metric.name();
|
ASSERT_TRUE(ast) << metric.expression() << " " << metric.name();
|
||||||
asts.emplace("gfx9", std::unordered_map<std::string, EvaluateAST>{})
|
asts.emplace("gfx9", std::unordered_map<std::string, EvaluateAST>{})
|
||||||
.first->second.emplace(
|
.first->second.emplace(val,
|
||||||
val, std::move(EvaluateAST({.handle = metric.id()}, metrics, *ast, "gfx9")));
|
EvaluateAST({.handle = metric.id()}, metrics, *ast, "gfx9"));
|
||||||
yy_delete_buffer(buf);
|
yy_delete_buffer(buf);
|
||||||
delete ast;
|
delete ast;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -639,7 +639,7 @@ tool_init(rocprofiler_client_finalize_t fini_func, void* tool_data)
|
|||||||
void
|
void
|
||||||
tool_fini(void* tool_data)
|
tool_fini(void* tool_data)
|
||||||
{
|
{
|
||||||
static auto _once = std::atomic_flag{ATOMIC_FLAG_INIT};
|
static std::atomic_flag _once = ATOMIC_FLAG_INIT;
|
||||||
if(_once.test_and_set()) return;
|
if(_once.test_and_set()) return;
|
||||||
|
|
||||||
stop();
|
stop();
|
||||||
|
|||||||
Yeni konuda referans
Bir kullanıcı engelle