Message ID | 20211029171941.4161172-1-skpgkp2@gmail.com |
---|---|
Headers |
Return-Path: <libc-alpha-bounces+patchwork=sourceware.org@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id CEEC83857C72 for <patchwork@sourceware.org>; Fri, 29 Oct 2021 17:20:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CEEC83857C72 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1635528005; bh=75emh0z5W2FUk4EfRAN132wRahosGp5KygP/TsNs8KQ=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=I60t/qbTc/DLelVmR/HftiX5evRSnyFUnDnhJ4J3WJkcahpAz+4P8KIfNczDPvtQk 4ATgH4TacAGp75DshOU0xW5NDll2fnStLl2/G33vve16XtKUdOYqKZ21KSl7HAoan/ GosCUIUcVNrZylFi3wzZNBWvW5LgXR0Tl7oEq1pw= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by sourceware.org (Postfix) with ESMTPS id BBE053858439 for <libc-alpha@sourceware.org>; Fri, 29 Oct 2021 17:19:43 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org BBE053858439 X-IronPort-AV: E=McAfee;i="6200,9189,10152"; a="230570595" X-IronPort-AV: E=Sophos;i="5.87,193,1631602800"; d="scan'208";a="230570595" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Oct 2021 10:19:42 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.87,193,1631602800"; d="scan'208";a="448183971" Received: from scymds01.sc.intel.com ([10.148.94.138]) by orsmga006.jf.intel.com with ESMTP; 29 Oct 2021 10:19:42 -0700 Received: from gskx-1.sc.intel.com (gskx-1.sc.intel.com [172.25.149.211]) by scymds01.sc.intel.com with ESMTP id 19THJfMH021212; Fri, 29 Oct 2021 10:19:42 -0700 To: libc-alpha@sourceware.org Subject: [PATCH 00/12] benchtests: Add float version of math functions to bench-math Date: Fri, 29 Oct 2021 10:19:29 -0700 Message-Id: <20211029171941.4161172-1-skpgkp2@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <CAMe9rOra4Gb4tW=178Y9JxCBVJmUY7veUVNMe+TCm-_Nmjp1CQ@mail.gmail.com> References: <CAMe9rOra4Gb4tW=178Y9JxCBVJmUY7veUVNMe+TCm-_Nmjp1CQ@mail.gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, FORGED_GMAIL_RCVD, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, HK_RANDOM_ENVFROM, HK_RANDOM_FROM, KAM_DMARC_NONE, KAM_DMARC_STATUS, NML_ADSP_CUSTOM_MED, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_SOFTFAIL, TXREP autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list <libc-alpha.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/libc-alpha/> List-Post: <mailto:libc-alpha@sourceware.org> List-Help: <mailto:libc-alpha-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=subscribe> From: Sunil K Pandey via Libc-alpha <libc-alpha@sourceware.org> Reply-To: Sunil K Pandey <skpgkp2@gmail.com> Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org Sender: "Libc-alpha" <libc-alpha-bounces+patchwork=sourceware.org@sourceware.org> |
Series |
benchtests: Add float version of math functions to bench-math
|
|
Message
Sunil Pandey
Oct. 29, 2021, 5:19 p.m. UTC
Add float version of math functions to bench-math and copy input files to benchtests. Motivation for this patch is to prepare for upcoming libmvec new functions. Float and double version of libmvec functions stays together. Float input files generated from existing double input files using following scaling formula: f = d * (FLT_MAX/DBL_MAX) Where d is input(double) and f is output(float). If scaled float value is duplicate in new input file, nextafterf() function used to find next float value, ensuring no duplicates. Sunil K Pandey (12): benchtests: Add acoshf function to bench-math benchtests: Add asinf function to bench-math benchtests: Add asinhf function to bench-math benchtests: Add atanf function to bench-math benchtests: Add atanhf function to bench-math benchtests: Add cbrtf function to bench-math benchtests: Add coshf function to bench-math benchtests: Add erfcf function to bench-math benchtests: Add erff function to bench-math benchtests: Add log10f function to bench-math benchtests: Add sinhf function to bench-math benchtests: Add tanhf function to bench-math benchtests/Makefile | 12 + benchtests/acoshf-inputs | 303 +++++ benchtests/asinf-inputs | 2508 ++++++++++++++++++++++++++++++++++++++ benchtests/asinhf-inputs | 303 +++++ benchtests/atanf-inputs | 806 ++++++++++++ benchtests/atanhf-inputs | 203 +++ benchtests/cbrtf-inputs | 1004 +++++++++++++++ benchtests/coshf-inputs | 403 ++++++ benchtests/erfcf-inputs | 795 ++++++++++++ benchtests/erff-inputs | 794 ++++++++++++ benchtests/log10f-inputs | 1004 +++++++++++++++ benchtests/sinhf-inputs | 303 +++++ benchtests/tanhf-inputs | 203 +++ 13 files changed, 8641 insertions(+) create mode 100644 benchtests/acoshf-inputs create mode 100644 benchtests/asinf-inputs create mode 100644 benchtests/asinhf-inputs create mode 100644 benchtests/atanf-inputs create mode 100644 benchtests/atanhf-inputs create mode 100644 benchtests/cbrtf-inputs create mode 100644 benchtests/coshf-inputs create mode 100644 benchtests/erfcf-inputs create mode 100644 benchtests/erff-inputs create mode 100644 benchtests/log10f-inputs create mode 100644 benchtests/sinhf-inputs create mode 100644 benchtests/tanhf-inputs
Comments
Ok for trunk? On Fri, Oct 29, 2021 at 10:19 AM Sunil K Pandey via Libc-alpha < libc-alpha@sourceware.org> wrote: > Add float version of math functions to bench-math and copy input files > to benchtests. > > Motivation for this patch is to prepare for upcoming libmvec new > functions. Float and double version of libmvec functions stays > together. > > Float input files generated from existing double input files using > following scaling formula: > > f = d * (FLT_MAX/DBL_MAX) > > Where d is input(double) and f is output(float). If scaled float value > is duplicate in new input file, nextafterf() function used to find next > float value, ensuring no duplicates. > > > Sunil K Pandey (12): > benchtests: Add acoshf function to bench-math > benchtests: Add asinf function to bench-math > benchtests: Add asinhf function to bench-math > benchtests: Add atanf function to bench-math > benchtests: Add atanhf function to bench-math > benchtests: Add cbrtf function to bench-math > benchtests: Add coshf function to bench-math > benchtests: Add erfcf function to bench-math > benchtests: Add erff function to bench-math > benchtests: Add log10f function to bench-math > benchtests: Add sinhf function to bench-math > benchtests: Add tanhf function to bench-math > > benchtests/Makefile | 12 + > benchtests/acoshf-inputs | 303 +++++ > benchtests/asinf-inputs | 2508 ++++++++++++++++++++++++++++++++++++++ > benchtests/asinhf-inputs | 303 +++++ > benchtests/atanf-inputs | 806 ++++++++++++ > benchtests/atanhf-inputs | 203 +++ > benchtests/cbrtf-inputs | 1004 +++++++++++++++ > benchtests/coshf-inputs | 403 ++++++ > benchtests/erfcf-inputs | 795 ++++++++++++ > benchtests/erff-inputs | 794 ++++++++++++ > benchtests/log10f-inputs | 1004 +++++++++++++++ > benchtests/sinhf-inputs | 303 +++++ > benchtests/tanhf-inputs | 203 +++ > 13 files changed, 8641 insertions(+) > create mode 100644 benchtests/acoshf-inputs > create mode 100644 benchtests/asinf-inputs > create mode 100644 benchtests/asinhf-inputs > create mode 100644 benchtests/atanf-inputs > create mode 100644 benchtests/atanhf-inputs > create mode 100644 benchtests/cbrtf-inputs > create mode 100644 benchtests/coshf-inputs > create mode 100644 benchtests/erfcf-inputs > create mode 100644 benchtests/erff-inputs > create mode 100644 benchtests/log10f-inputs > create mode 100644 benchtests/sinhf-inputs > create mode 100644 benchtests/tanhf-inputs > > -- > 2.31.1 > >
On Mon, Nov 1, 2021 at 6:33 AM Sunil Pandey via Libc-alpha <libc-alpha@sourceware.org> wrote: > > Ok for trunk? Carlos will try to review these patches. > On Fri, Oct 29, 2021 at 10:19 AM Sunil K Pandey via Libc-alpha < > libc-alpha@sourceware.org> wrote: > > > Add float version of math functions to bench-math and copy input files > > to benchtests. > > > > Motivation for this patch is to prepare for upcoming libmvec new > > functions. Float and double version of libmvec functions stays > > together. > > > > Float input files generated from existing double input files using > > following scaling formula: > > > > f = d * (FLT_MAX/DBL_MAX) > > > > Where d is input(double) and f is output(float). If scaled float value > > is duplicate in new input file, nextafterf() function used to find next > > float value, ensuring no duplicates. > > > > > > Sunil K Pandey (12): > > benchtests: Add acoshf function to bench-math > > benchtests: Add asinf function to bench-math > > benchtests: Add asinhf function to bench-math > > benchtests: Add atanf function to bench-math > > benchtests: Add atanhf function to bench-math > > benchtests: Add cbrtf function to bench-math > > benchtests: Add coshf function to bench-math > > benchtests: Add erfcf function to bench-math > > benchtests: Add erff function to bench-math > > benchtests: Add log10f function to bench-math > > benchtests: Add sinhf function to bench-math > > benchtests: Add tanhf function to bench-math > > > > benchtests/Makefile | 12 + > > benchtests/acoshf-inputs | 303 +++++ > > benchtests/asinf-inputs | 2508 ++++++++++++++++++++++++++++++++++++++ > > benchtests/asinhf-inputs | 303 +++++ > > benchtests/atanf-inputs | 806 ++++++++++++ > > benchtests/atanhf-inputs | 203 +++ > > benchtests/cbrtf-inputs | 1004 +++++++++++++++ > > benchtests/coshf-inputs | 403 ++++++ > > benchtests/erfcf-inputs | 795 ++++++++++++ > > benchtests/erff-inputs | 794 ++++++++++++ > > benchtests/log10f-inputs | 1004 +++++++++++++++ > > benchtests/sinhf-inputs | 303 +++++ > > benchtests/tanhf-inputs | 203 +++ > > 13 files changed, 8641 insertions(+) > > create mode 100644 benchtests/acoshf-inputs > > create mode 100644 benchtests/asinf-inputs > > create mode 100644 benchtests/asinhf-inputs > > create mode 100644 benchtests/atanf-inputs > > create mode 100644 benchtests/atanhf-inputs > > create mode 100644 benchtests/cbrtf-inputs > > create mode 100644 benchtests/coshf-inputs > > create mode 100644 benchtests/erfcf-inputs > > create mode 100644 benchtests/erff-inputs > > create mode 100644 benchtests/log10f-inputs > > create mode 100644 benchtests/sinhf-inputs > > create mode 100644 benchtests/tanhf-inputs > > > > -- > > 2.31.1 > > > >