From patchwork Thu Feb 1 19:20:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John David Anglin X-Patchwork-Id: 195447 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2719:b0:106:209c:c626 with SMTP id hl25csp393326dyb; Thu, 1 Feb 2024 11:21:43 -0800 (PST) X-Google-Smtp-Source: AGHT+IHStqQYwE+7yHhoRyDuK2BimCWOT7+ojXS3xYrOw1xV3writE0IfIJQamnkjLZEbNQ7ZD34 X-Received: by 2002:ac8:5c01:0:b0:429:cb6b:f9a2 with SMTP id i1-20020ac85c01000000b00429cb6bf9a2mr6049732qti.38.1706815303430; Thu, 01 Feb 2024 11:21:43 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706815303; cv=pass; d=google.com; s=arc-20160816; b=iQY8FJabo7/13lfhc4gVlClDn7gWXr269nl85An8pEzTinK1VjGfPDhWqq1a94vrqa /sVappL4tbG+ln3+wfS4AsIugRd3RSafTFST3ZRxF6hFLNv++F7mQrCtBXA1MRVyZyRr lfaCaa71sLuZ2zKRLq+b2dfEV8H9q0WNAM1YAyv9F6Qi48M5le07tIaWrbmlfq+EJLLp 6VwFU12q/NevrGmGq8vGJ/Ehm3SJmXo0GXAcyqVCtNnkXDEAHoRUhvRDWWhadFDDs5ax JD6nwt6QM0RIL7v+xeB6A8DRETaJ+gXZuSpNGoCrvqk+ZXy0IfYlsKzI32z9upuU7pNR /SVw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-disposition :mime-version:message-id:subject:to:from:date:arc-filter :dmarc-filter:delivered-to; bh=In+0or7bNzf/blWxaYMSRCTp4WwH+vahUijAauA4TDo=; fh=AIhe3Q2DxBfgZ4SMO0EQD+leq+1p8PB5ZwRIonYH4A0=; b=oBup5oGOMB8dkMweMSjSQnrdLr9prefyDaUIYn2zEUeE6o8y/N/G+swsPeYC9wO5AY ZwpLH1/Nmlukef1u2xjQ+cEHf+eeSpqr6yRkmJwX4udkORq6IAhfTosNDROX1beSBxZN SRrVnbbBZjWKk4VbaHNsUqGykYWIyfMShq79a5nhqNN95/JwTzdSGtfHxhHV5byx2nub nhVyk9uqifi3VGDIMnofvmuL5E4IhLuEPAXwnBQON8aWGstVIoF/o05QrmS4l5kLHybK j1p6hhpvV70zTdJfpirfm6ZNO7MV8s53ZXW08tCzg3HqymF4yoQ7FTA5MqCd0+J6Z+pa KCJg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" X-Forwarded-Encrypted: i=1; AJvYcCXtGRJLOJeVZvKFjs/myPM1XHivOLqYsQtVYsPW7Xy2HjXOfvZhpsMhaYP94DFAkcoieQIyIidAhXSzSOzESFyAKu2iXw== Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id k15-20020ac85fcf000000b0042aa9314400si139251qta.505.2024.02.01.11.21.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 11:21:43 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 180FE38582BB for ; Thu, 1 Feb 2024 19:21:43 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from dellerweb.de (unknown [IPv6:2a02:c207:3003:236::1]) by sourceware.org (Postfix) with ESMTPS id 210B63858C62 for ; Thu, 1 Feb 2024 19:21:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 210B63858C62 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=parisc-linux.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=parisc-linux.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 210B63858C62 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a02:c207:3003:236::1 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706815262; cv=none; b=SxOMR00fXSaxd6JT6gpdUZljL3N76ZKUPGo1OiOGewUbh38dzb+zBxSs14zBtmvVQRZMohTHMSCCuPCod1jlENTbkjSoKVQdgaLA7ApeXL4nZpxn4Q56XcC0C3Rn0HqoNki9aPdvOy3iNOoV/x2Z7CO80e6WDNSrBN4TYfT8Q38= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706815262; c=relaxed/simple; bh=SokXKxj25IROixv0fZSXsDtKTwxXcKSrHGKyq44IIR4=; h=Date:From:To:Subject:Message-ID:MIME-Version; b=irjsHVu3w//10VD7UqjnJCQQdk0Xai9bxO7HjwErAoaEAnLJ27Stf32/bUEg4dm2J+1eM9JOca2cN0nG/IiaHlqoH/Il2irhmkfpwIRLVdrPICu14GWrhn4wDHJALWbHwnJdeC7a0xTw5oV3gbt43Df2UUgSIF1ihTARQzi2O18= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from mx3210.localdomain (bras-base-otwaon0906w-grc-03-142-126-114-79.dsl.bell.ca [142.126.114.79]) by dellerweb.de (Postfix) with ESMTPSA id 18CEC160002E; Thu, 1 Feb 2024 20:20:59 +0100 (CET) Received: by mx3210.localdomain (Postfix, from userid 1000) id AF78522012D; Thu, 1 Feb 2024 19:20:57 +0000 (UTC) Date: Thu, 1 Feb 2024 19:20:57 +0000 From: John David Anglin To: GCC Patches Subject: [committed] Set num_threads to 50 on 32-bit hppa in two libgomp loop tests Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789725563533154830 X-GMAIL-MSGID: 1789725563533154830 Tested on hppa-unknown-linux-gnu. Committed to trunk. Dave --- Set num_threads to 50 on 32-bit hppa in two libgomp loop tests We support a maximum of 50 threads on 32-bit hppa. 2024-02-01 John David Anglin libgomp/ChangeLog: * testsuite/libgomp.c++/loop-3.C: Set num_threads to 50 on 32-bit hppa. * testsuite/libgomp.c/omp-loop03.c: Likewise. diff --git a/libgomp/testsuite/libgomp.c++/loop-3.C b/libgomp/testsuite/libgomp.c++/loop-3.C index fa50f099f3f..3f460f114bf 100644 --- a/libgomp/testsuite/libgomp.c++/loop-3.C +++ b/libgomp/testsuite/libgomp.c++/loop-3.C @@ -1,3 +1,9 @@ +#if defined(__hppa__) && !defined(__LP64__) +#define NUM_THREADS 50 +#else +#define NUM_THREADS 64 +#endif + extern "C" void abort (void); int a; @@ -19,7 +25,7 @@ foo () int main (void) { -#pragma omp parallel num_threads (64) +#pragma omp parallel num_threads (NUM_THREADS) foo (); return 0; diff --git a/libgomp/testsuite/libgomp.c/omp-loop03.c b/libgomp/testsuite/libgomp.c/omp-loop03.c index 7bb9a194331..9879981cf4a 100644 --- a/libgomp/testsuite/libgomp.c/omp-loop03.c +++ b/libgomp/testsuite/libgomp.c/omp-loop03.c @@ -1,3 +1,9 @@ +#if defined(__hppa__) && !defined(__LP64__) +#define NUM_THREADS 50 +#else +#define NUM_THREADS 64 +#endif + extern void abort (void); int a; @@ -19,7 +25,7 @@ foo () int main (void) { -#pragma omp parallel num_threads (64) +#pragma omp parallel num_threads (NUM_THREADS) foo (); return 0;