From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) by sourceware.org (Postfix) with ESMTPS id E41353858D1E for ; Mon, 24 Apr 2023 17:27:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E41353858D1E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmx.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1682357249; i=anlauf@gmx.de; bh=J8W84SbgvpxJdedCrEQiOitHr/ZoR20BE8JCEF+8Y3g=; h=X-UI-Sender-Class:Date:Subject:To:References:From:In-Reply-To; b=IO4mA94JdWKBchWU5hEPWSRPj3eOuAzf2APQxhJZR4laAYINLj/B7FIdnjghd092M M+CK6u2onz2WL+mdPn8fkPHEbtJgooCen2k09LV1R1ajYlkWA4DW36+gDbF+pA0yoo r9Dnv8Lc5mlwjgWy/SCS6lZ8rZta1s4DLbXWN3pINKRa6xHkTCLHG/EXhN/MTdcsqA 4m1WJ8zcgfb/PH+DAqtSaDmBG8lalbu3J1NcQooSP0XLFtCaIZ5nZFajybmnOLgkKO MioTR1Tu62GeRAZCoxiJyvqqgQjJiFe2iFZsRJhjyGcIc7TPaWwTXTqMCnxIJ47ljs pdEHoLz7k4SlA== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [192.168.178.29] ([93.207.84.40]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MIMfW-1q32ft050W-00EKWE; Mon, 24 Apr 2023 19:27:29 +0200 Message-ID: Date: Mon, 24 Apr 2023 19:27:28 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 Subject: Re: (GCC) 13.0.1: internal compiler error To: Patrick Begou , "fortran@gcc.gnu.org" References: <138a36f7-8b1e-5955-1d3a-5713a0fcf5b6@univ-grenoble-alpes.fr> Content-Language: en-US From: Harald Anlauf In-Reply-To: <138a36f7-8b1e-5955-1d3a-5713a0fcf5b6@univ-grenoble-alpes.fr> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:nigpZiYmRK9Z2sIx38oF+ynST7SFn8XgQEbPGXjY/lDyGUGfVsR +0MGhJH9MzZHExAu00OhW8amWAqu6QDWcaUbi/AfMbssM5m6jzfse85PS5ggBRo7sfm9Q9k GJYSuLKNUaQVX2H9HDUT+7I49LpdTm/oyfz50Lx/yInGiSzFeqZKjk92P7e/qwPTYL1DLuk xW3IYlbnvTt4pkcH2xkkw== UI-OutboundReport: notjunk:1;M01:P0:J8Utm8SAP1A=;5sUgoaLvQr+WcyeBmP82UkXSQ9O 66/AHh+6eWO8EJu33ELaHw1oZZw211joGJW3talicRpX9nY0AXknAzcBi0fr8eaViYgj/TFyT icgc1ua8BuH1GAKHwZOPvaNpV2SvzlR5NQSeZ5ZdiAuxRtYcp5vU0Vi2lUmRflXgQBJeZ40IR W4RlBEj1AQfGTTUo/u0wDu8Jg5AWVmo4pFc9CauPv2lqHWE5Uxz21pH56KgS5LGqLwA4BqKWi hAJ+g8gJN3XBZLeTHCSe06PU+aYQnaKDg+l1hMzzI8IjnT5Qh0xEZMZoQnb9RKAlVGeKv2qsQ bXOmOMeQCWb1w5NQFCixwZ+jmWtHnkKIeofiUGS4BI9V+EBnDZuCHIsRytye7xkjlsHvYI3IH IhwSKw4GoqWzAHXIHjXfKhj6jry2Z8l73y+okIRP5rc0o+jRyejbueBJ/Htp2skMuBnqxOqet n+QUOZkXlOLu0k5F2A96C7lQ880ZVqcJwl0lD3dhQ/x9uHlMA5D8UgRLOz9JwDqvXKLfnU19I A22t8OcRakDpVvO5Z/jzlPY3Sp9iOKPyqRwVdEJ9Gjp2m4NUlRLGJguvSh/8pwHJbqgg8PkUP xfqM38JJB3tCvXOpRQgO3cBc1q3v0AIlYWspDlEQPILmdIz+xL+FYXaXvjpeiJYVXd/CNaVmO yDVGXJmkZKRG0OE4OFZnpQGGsPyA4kmgN8MCIgPRcj7iCeAEeipom3VbdiD0LIr4Yn53ATAuo 0uQ6EDS0wAKDB4Tfk7aSVz8oTOxG9pClbGoyohOo6pu+mengXcnoV9JAdwLU9+VpD+Wja2xwo 1LqBhoRcng7YAG4q7yCQMs07CCrrHgD/qy7m0A9yaxRrwjbJTB4DryukPPrHNqtQC+48Vp0en wQHMRjvDBd9zpx9nbZCe0G3CP0Wl8BIou0+n0ls41E1hpMCo6+7lmLFPJ4a/7gJWWius4WPin dvsw/MkWrEtRRHtLQOg0F/yhJeU= X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,BODY_8BITS,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE,WEIRD_PORT autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Hi Patrick, I did not see any similar report in bugzilla, so could you please open a PR and attach a self-contained reproducer? Ideally the reproducer would be reduced to simplify the analysis for those familiar with the status of the OpenACC implementation. Thanks, Harald Am 21.04.23 um 17:13 schrieb Patrick Begou: > Hi, > > I have built this morning the latest gfortran from a git clone: > > GNU Fortran (GCC) 13.0.1 20230421 (prerelease) > > I'm trying this compiler on a large and complexe Fortran90 code with > offloading using OpenACC. > > At this time: > > - code compiles with nvfortran and runs on A100 GPU. > > - code compiles with Cray Fortran (with some difficulties) but do not > run on MI250 GPU (we are tacking the problem, a segfault if openacc is > set on) > > - code compile with GNU GCC 13 without -fopenacc option and runs on cpu > (Epyc2 7302) > > - a basic test-code using OpenACC compiles and run on the GPU. > > - compiling my large code with gcc 13.0.1 using -fopenacc for A100 GPU > produce an internal error in the compiler : > > > transforms_defs_m.f90:354:53: > > =C2=A0 354 |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 !$acc enter data attach(atransform2%next) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ^ > internal compiler error: in omp_group_base, at gimplify.cc:9412 > 0xa830c6 omp_group_base > =C2=A0=C2=A0 =C2=A0../../gcc/gcc/gimplify.cc:9412 > 0xa830c6 omp_index_mapping_groups_1 > =C2=A0=C2=A0 =C2=A0../../gcc/gcc/gimplify.cc:9441 > 0xa833c7 omp_index_mapping_groups > =C2=A0=C2=A0 =C2=A0../../gcc/gcc/gimplify.cc:9502 > 0xa96a9a gimplify_scan_omp_clauses > =C2=A0=C2=A0 =C2=A0../../gcc/gcc/gimplify.cc:10802 > 0xa8660d gimplify_omp_target_update > =C2=A0=C2=A0 =C2=A0../../gcc/gcc/gimplify.cc:15563 > 0xa8660d gimplify_expr(tree_node**, gimple**, gimple**, bool > (*)(tree_node*), int) > =C2=A0=C2=A0 =C2=A0../../gcc/gcc/gimplify.cc:16928 > 0xa89826 gimplify_stmt(tree_node**, gimple**) > =C2=A0=C2=A0 =C2=A0../../gcc/gcc/gimplify.cc:7219 > 0xa875a3 gimplify_statement_list > =C2=A0=C2=A0 =C2=A0../../gcc/gcc/gimplify.cc:2019 > 0xa875a3 gimplify_expr(tree_node**, gimple**, gimple**, bool > (*)(tree_node*), int) > =C2=A0=C2=A0 =C2=A0../../gcc/gcc/gimplify.cc:16821 > 0xa89826 gimplify_stmt(tree_node**, gimple**) > =C2=A0=C2=A0 =C2=A0../../gcc/gcc/gimplify.cc:7219 > 0xa86e8a gimplify_and_add(tree_node*, gimple**) > =C2=A0=C2=A0 =C2=A0../../gcc/gcc/gimplify.cc:492 > 0xa86e8a gimplify_loop_expr > =C2=A0=C2=A0 =C2=A0../../gcc/gcc/gimplify.cc:1993 > 0xa86e8a gimplify_expr(tree_node**, gimple**, gimple**, bool > (*)(tree_node*), int) > =C2=A0=C2=A0 =C2=A0../../gcc/gcc/gimplify.cc:16581 > 0xa89826 gimplify_stmt(tree_node**, gimple**) > =C2=A0=C2=A0 =C2=A0../../gcc/gcc/gimplify.cc:7219 > 0xa875a3 gimplify_statement_list > =C2=A0=C2=A0 =C2=A0../../gcc/gcc/gimplify.cc:2019 > 0xa875a3 gimplify_expr(tree_node**, gimple**, gimple**, bool > (*)(tree_node*), int) > =C2=A0=C2=A0 =C2=A0../../gcc/gcc/gimplify.cc:16821 > 0xa89826 gimplify_stmt(tree_node**, gimple**) > =C2=A0=C2=A0 =C2=A0../../gcc/gcc/gimplify.cc:7219 > 0xa89d2b gimplify_bind_expr > =C2=A0=C2=A0 =C2=A0../../gcc/gcc/gimplify.cc:1430 > 0xa86d8e gimplify_expr(tree_node**, gimple**, gimple**, bool > (*)(tree_node*), int) > =C2=A0=C2=A0 =C2=A0../../gcc/gcc/gimplify.cc:16577 > 0xa89826 gimplify_stmt(tree_node**, gimple**) > =C2=A0=C2=A0 =C2=A0../../gcc/gcc/gimplify.cc:7219 > Please submit a full bug report, with preprocessed source (by using > -freport-bug). > > > Options used (I've just added=C2=A0 -fopenacc for moving from cpu versio= n to > OpenACC): > > -fopenacc -freport-bug -g -fpic -x f95-cpp-input -std=3Dgnu -ffree-form > -fall-intrinsics -fallow-argument-mismatch -Wall -Wextra -W > -Wno-unused-function -Wno-compare-reals -fno-omit-frame-pointer=C2=A0 -O= 3 > -ftree-vectorize -ffast-math -funroll-loops -pipe > > No additionnal files a produced with -freport-bug. > > In attachment the script used to build the compiler. > > Let me know how I can help with informations to improve Gnu fortran > compilers. > > Patrick