diff --git a/CMakeLists.txt b/CMakeLists.txt index 440bb55b1dc..639add6d097 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -178,7 +178,6 @@ rocm_enable_clang_tidy( -bugprone-easily-swappable-parameters -bugprone-implicit-widening-of-multiplication-result -bugprone-macro-parentheses - -bugprone-multi-level-implicit-pointer-conversion -bugprone-signed-char-misuse -bugprone-unchecked-optional-access # Disable the aliased reserved identifiers diff --git a/src/targets/cpu/include/migraphx/cpu/dnnl.hpp b/src/targets/cpu/include/migraphx/cpu/dnnl.hpp index 877eab95398..332a6c12f85 100644 --- a/src/targets/cpu/include/migraphx/cpu/dnnl.hpp +++ b/src/targets/cpu/include/migraphx/cpu/dnnl.hpp @@ -167,9 +167,9 @@ struct dnnl_op : auto_register_op auto desc = prim.get_primitive_desc(); const char* str = nullptr; #ifdef MIGRAPHX_ENABLE_ZENDNN - zendnn_primitive_desc_query(desc, zendnn_query_impl_info_str, 0, &str); + zendnn_primitive_desc_query(desc, zendnn_query_impl_info_str, 0, reinterpret_cast(&str)); #else - dnnl_primitive_desc_query(desc, dnnl_query_impl_info_str, 0, &str); + dnnl_primitive_desc_query(desc, dnnl_query_impl_info_str, 0, reinterpret_cast(&str)); #endif return str == nullptr ? "" : str; } diff --git a/src/targets/gpu/kernel.cpp b/src/targets/gpu/kernel.cpp index f43c0979da4..a7c79bded60 100644 --- a/src/targets/gpu/kernel.cpp +++ b/src/targets/gpu/kernel.cpp @@ -134,7 +134,7 @@ void kernel::launch(hipStream_t stream, hipEvent_t stop) const { assert(impl != nullptr); - void* kernargs = args.data(); + void* kernargs = reinterpret_cast(args.data()); std::size_t size = args.size() * sizeof(void*); launch_kernel(impl->fun, stream, global, local, kernargs, size, start, stop); diff --git a/test/include/test.hpp b/test/include/test.hpp index b8740e82ddb..c0112bb8e57 100644 --- a/test/include/test.hpp +++ b/test/include/test.hpp @@ -229,7 +229,15 @@ struct lhs_expression std::string op = Operator::as_string(); if(not op.empty()) s << Operator::as_string() << " "; - s << self.lhs; + if constexpr(std::is_pointer_v) + { + s << static_cast(self.lhs); + } + else + { + // NOLINTNEXTLINE + s << self.lhs; + } return s; }