Commit 75f3a868 authored by Paul's avatar Paul
Browse files

Fix warnings and tidy checks

parent 263579c2
......@@ -53,6 +53,8 @@ rocm_enable_clang_tidy(
-hicpp-no-array-decay
-hicpp-special-member-functions
-hicpp-use-override
# This check is broken
-hicpp-use-auto
-llvm-header-guard
-llvm-include-order
-misc-macro-parentheses
......
......@@ -27,7 +27,7 @@ struct null_deleter
}
};
template <class T, class F, F f>
template <class T, class F, F f> // NOLINT
using manage_ptr = std::unique_ptr<T, manage_deleter<F, f>>;
template <class T>
......
......@@ -17,8 +17,6 @@ struct cpu_convolution
{
argument result{output_shape};
visit_all(result, args[0], args[1])([&](auto output, auto input, auto weights) {
auto in_n = input.get_shape().lens()[0];
auto in_c = input.get_shape().lens()[1];
auto in_h = input.get_shape().lens()[2];
auto in_w = input.get_shape().lens()[3];
......
......@@ -33,7 +33,7 @@ struct hip_free
check_shapes{inputs}.has(1);
return {};
}
argument compute(shape output_shape, std::vector<argument> args) const
argument compute(shape, std::vector<argument> args) const
{
// TODO: Check return status
hipFree(args.front().data());
......@@ -176,8 +176,8 @@ struct miopen_relu
struct miopen_apply
{
program* prog;
instruction_ref handle;
program* prog = nullptr;
instruction_ref handle{};
void apply()
{
......
......@@ -116,8 +116,9 @@ void test1()
{
auto x = cpu();
auto y = gpu();
// TODO: Use expect
if(x == y)
printf("FAILED\n");
std::cout << "FAILED" << std::endl;
}
int main() { test1(); }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment