From e7381bc7161af529069fb29d56beabfe534a85c1 Mon Sep 17 00:00:00 2001 From: Jiaxingla Date: Mon, 15 Jul 2024 01:27:21 -0700 Subject: [PATCH] rm redundancy code --- benchmarks/ampere/gemm_configuration.hpp | 2 +- include/cutlass/gemm/collective/intel_pvc_mma.hpp | 4 ++-- include/cutlass/relatively_equal.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/benchmarks/ampere/gemm_configuration.hpp b/benchmarks/ampere/gemm_configuration.hpp index 0c6dd60e77..484786567f 100644 --- a/benchmarks/ampere/gemm_configuration.hpp +++ b/benchmarks/ampere/gemm_configuration.hpp @@ -194,4 +194,4 @@ struct DefaultGemm_TensorOpSm80_OperandB struct DefaultGemm_TensorOpSm80_OperandB : DefaultGemm_TensorOpSm80_OperandA -{}; \ No newline at end of file +{}; diff --git a/include/cutlass/gemm/collective/intel_pvc_mma.hpp b/include/cutlass/gemm/collective/intel_pvc_mma.hpp index 8c03e9e74c..f59fc10231 100644 --- a/include/cutlass/gemm/collective/intel_pvc_mma.hpp +++ b/include/cutlass/gemm/collective/intel_pvc_mma.hpp @@ -5,8 +5,8 @@ * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * - * 1. Redistributions of source code must retain the above copyright notice, - *this list of conditions and the following disclaimer. + * 1. Redistributions of source code must retain the above copyright notice, this + * list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation diff --git a/include/cutlass/relatively_equal.h b/include/cutlass/relatively_equal.h index a3eee0405c..6926921be5 100644 --- a/include/cutlass/relatively_equal.h +++ b/include/cutlass/relatively_equal.h @@ -71,7 +71,7 @@ bool relatively_equal_float(T a, T b, T epsilon, T nonzero_floor) { return true; } else if (a == zero || b == zero || diff < nonzero_floor) { - return diff < (epsilon * nonzero_floor) || (diff / abs_B) < (T)0.001f; + return diff < (epsilon * nonzero_floor); } return diff < epsilon * (abs_A + abs_B);