From patchwork Fri Feb 21 14:45:27 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frederik Harwath X-Patchwork-Id: 1242168 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-519902-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha1 header.s=default header.b=SajiCdrI; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48PDmd32TWz9sRs for ; Sat, 22 Feb 2020 01:46:23 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to :from:subject:message-id:date:mime-version:content-type; q=dns; s=default; b=LzLsbuWghHJHk6mw6H0baHkQvzslhM1oSPl9s4D5FDCIAUVVMT FTdK2oAgGkJjiWejr8d3S5trLkiXLmNV3MZNRgVMdFGEKZ6u1kzkbsMsDdeh6MGt Ujsgb2b3KmjaWhT6GdsmYuAMlfDSe+EY98dD187mgn002MVhBABzr54NI= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to :from:subject:message-id:date:mime-version:content-type; s= default; bh=ndgq40OcwjYYqVy5iFAJCVNarx8=; b=SajiCdrIwD7qqGKa9ac6 +mUiD/THSBqjL22EnM+xM/aKXwd7AfietrUSYmzmP1S741rrEo0XmbGFoUqsOwX3 RL/FOsZf22HsTxOMY0WJt/KYVPRDWhchZ80vsoxsa/wO5CYWjgygiU5y6lNRhde2 PxTzOq6+DIz0XTsHlqJR2Qo= Received: (qmail 120893 invoked by alias); 21 Feb 2020 14:46:06 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 120773 invoked by uid 89); 21 Feb 2020 14:45:51 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-21.4 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_PASS autolearn=ham version=3.3.1 spammy=sk:r10672, sk:r10-672, c_size_t, sk:acc_dev X-HELO: esa3.mentor.iphmx.com Received: from esa3.mentor.iphmx.com (HELO esa3.mentor.iphmx.com) (68.232.137.180) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 21 Feb 2020 14:45:40 +0000 IronPort-SDR: Q0Sd9H0G8QVhv3+GEABnDS8/5h4Z5r7xAaaYG2dwEwK9SMruZHx5sF5qIbOwF86LJ1ucNCiT3n VxUEX8IOEX490qPR9wQWWMaGq+gCV+5xt677kG37I+9Bn/zGg2vETQiDtXs3nOxIS82jzjBGk6 eg/hfmRmi6/wZS6WJ92zBz8LPnCu048AGsOA21mkgihyc4ZjftdiT3udXgPp0w5jtd2ks4hnUm TWl4La5QDbe9RKl5sSRlnw9HllWFqJH+3X7o0+E0d4h2vx60jCWsMiNUos3wupk0r1UMU5cAQa +t0= Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa3.mentor.iphmx.com with ESMTP; 21 Feb 2020 06:45:39 -0800 IronPort-SDR: KbOKq86fldhYzhDSatiuYxtn0Sql+30YbLje4b7eakXig5yjz4nvTNe4RaMxM5yH0buVFPy4fW yQ19lmnEJ3E+WkzK1DgclmjclyIpQeEDAzFk/8tUd6dW8mG5+P8hIQnAa4ALr/hLFnSTd8kkaG VmoMRkqeXPmVVC6/qZud8iroZ3lLaXc3Dy1XfILAF3aNBj5tyzmfQZPFvILHgtS7pMuVziZD5g Gc5SKLyikWUoIEMr5V8058kieOVSjQzH9KhD2uyILfxNCGDRak8CAvznB2o47VLDQKhIphD/pD QBY= To: Thomas Schwinge , Tobias Burnus , "Stubbs, Andrew" , Jakub Jelinek , GCC Patches From: "Harwath, Frederik" Subject: [PATCH, committed][OpenACC] Adapt libgomp acc_get_property.f90 test X-Pep-Version: 2.0 Message-ID: <4637edb9-a83f-0f1e-0410-79e8a3907bda@codesourcery.com> Date: Fri, 21 Feb 2020 15:45:27 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 X-IsSubscribed: yes Hi, The commit r10-6721-g8d1a1cb1b816381bf60cb1211c93b8eba1fe1472 has changed the name of the type that is used for the return value of the Fortran acc_get_property function without adapting the test acc_get_property.f90. This obvious patch fixes that problem. Committed as r10-6782-g83d45e1d7155a5a600d8a4aa01aca00d3c6c2d3a. Best regards, Frederik From 83d45e1d7155a5a600d8a4aa01aca00d3c6c2d3a Mon Sep 17 00:00:00 2001 From: Frederik Harwath Date: Fri, 21 Feb 2020 15:26:02 +0100 Subject: [PATCH] Adapt libgomp acc_get_property.f90 test The commit r10-6721-g8d1a1cb1b816381bf60cb1211c93b8eba1fe1472 has changed the name of the type that is used for the return value of the Fortran acc_get_property function without adapting the test acc_get_property.f90. 2020-02-21 Frederik Harwath * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Adapt to changes from 2020-02-19, i.e. use integer(c_size_t) instead of integer(acc_device_property) for the type of the return value of acc_get_property. --- libgomp/ChangeLog | 7 +++++++ .../testsuite/libgomp.oacc-fortran/acc_get_property.f90 | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index 3c640c7350b..bff3ae58c9a 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -1,3 +1,10 @@ +2020-02-21 Frederik Harwath + + * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Adapt to + changes from 2020-02-19, i.e. use integer(c_size_t) instead of + integer(acc_device_property) for the type of the return value of + acc_get_property. + 2020-02-19 Tobias Burnus * .gitattributes: New; whitespace handling for Fortran's openacc_lib.h. diff --git a/libgomp/testsuite/libgomp.oacc-fortran/acc_get_property.f90 b/libgomp/testsuite/libgomp.oacc-fortran/acc_get_property.f90 index 80ae292f41f..1af7cc3b988 100644 --- a/libgomp/testsuite/libgomp.oacc-fortran/acc_get_property.f90 +++ b/libgomp/testsuite/libgomp.oacc-fortran/acc_get_property.f90 @@ -26,13 +26,14 @@ end program test ! and do basic device independent validation. subroutine print_device_properties (device_type) use openacc + use iso_c_binding, only: c_size_t implicit none integer, intent(in) :: device_type integer :: device_count integer :: device - integer(acc_device_property) :: v + integer(c_size_t) :: v character*256 :: s device_count = acc_get_num_devices(device_type) -- 2.17.1