diff --git a/src/quantization.cpp b/src/quantization.cpp index 7e02ae66685..bb0836d5273 100644 --- a/src/quantization.cpp +++ b/src/quantization.cpp @@ -158,10 +158,7 @@ void quantize_8bits(program& prog, } run_passes(prog, - {quantize_8bits_pass{precision, *quant_8bit_params}, - simplify_qdq{}, - optimize_module{}, - dead_code_elimination{}}, + {quantize_8bits_pass{precision, *quant_8bit_params}, dead_code_elimination{}}, quant_tracer()); } @@ -198,23 +195,7 @@ void quantize_fp8(program& prog, const target& t, const std::vectorname()); } } - auto gfx_has_fp8fnuz = [&]() { - if(t.name() == "gpu") - { - auto context_value = t.get_context().to_value(); - auto device_name = context_value["gfx_name"].to(); - return (starts_with(device_name, "gfx9") and device_name >= "gfx940"); - } - return false; - }; - if(gfx_has_fp8fnuz()) - { - quantize_8bits(prog, t, shape::fp8e4m3fnuz_type, calibration, supported_ins_names); - } - else - { - quantize_8bits(prog, t, shape::fp8e4m3fn_type, calibration, supported_ins_names); - } + quantize_8bits(prog, t, shape::fp8e4m3fn_type, calibration, supported_ins_names); } } // namespace MIGRAPHX_INLINE_NS } // namespace migraphx diff --git a/src/targets/gpu/include/migraphx/gpu/context.hpp b/src/targets/gpu/include/migraphx/gpu/context.hpp index 960e6ed55a0..8f9dedd6798 100644 --- a/src/targets/gpu/include/migraphx/gpu/context.hpp +++ b/src/targets/gpu/include/migraphx/gpu/context.hpp @@ -311,7 +311,6 @@ struct context value result; result["events"] = events.size(); result["streams"] = current_device->nstreams(); - result["gfx_name"] = get_current_device().get_gfx_name(); return result; } diff --git a/test/gpu/context_serialize.cpp b/test/gpu/context_serialize.cpp index d0c6072180f..57f7f974ba5 100644 --- a/test/gpu/context_serialize.cpp +++ b/test/gpu/context_serialize.cpp @@ -41,9 +41,6 @@ TEST_CASE(gpu_context_serialize) EXPECT(v.contains("streams")); EXPECT(v.at("streams").without_key().to() == 3); - EXPECT(v.contains("gfx_name")); - EXPECT(not v.at("gfx_name").without_key().to().empty()); - migraphx::gpu::context g_ctx; g_ctx.from_value(v);