From patchwork Tue Sep 26 11:46:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Marc_Poulhi=C3=A8s?= X-Patchwork-Id: 144833 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:cae8:0:b0:403:3b70:6f57 with SMTP id r8csp1848381vqu; Tue, 26 Sep 2023 04:48:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHcw0hajTc/K+wTVMP7bACKTkpElvtM1kISrvnve+S+CFG4CPjCB3HsZWEb+yMOLwqQilqD X-Received: by 2002:a17:907:7631:b0:9ae:3e2f:4d00 with SMTP id jy17-20020a170907763100b009ae3e2f4d00mr7610575ejc.70.1695728913048; Tue, 26 Sep 2023 04:48:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695728913; cv=none; d=google.com; s=arc-20160816; b=nHU2kl9MrctFKWJQWm4vbGob0oOjH7LgV+AARlZO3oIHI8pHqwzUgiOhDpevPqa6Gt P35zLYQu083+edRSBG4aiqxMfWAWyF35TERrRJSN9HjQEuPKe/IftvZhyt7A8S3odDdO NkkRTT1YJKhHrRF0AwLbRMw7ZFFPu2Y69dLP4WietS2YsfrZW9ijXRX2ZF7PR/4o2bPm FilEJ1HlvBYYqesgTRby11Fq0tRYuYuQhnM+pKcQiEiIsM08PUtwcGaivuwHIdQ/NKSu GBgII0sdwTnVcYXXpBw5Kp5nSuqIhaiIP6fv1NV2ORv0fFgI3/edfUQ7qd/bW+bQ1/r5 FBxQ== ARC-Message-Signature: i=1; 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-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature :dmarc-filter:delivered-to; bh=EvO0d6qcJwUbK8lzOYYxPzn4U9PBlADs5qOM6IqdD1U=; fh=/LGSvS9fKr8xUSOarN/hPHAOWzvFwgUy+6Y4FjnH2j4=; b=dRaK5BJzDrlEQSRV1g8RtWdZKPpq0cJM/9RNwaOKEHIE6ibD3FDFaqSVrmxd/PTlYc nRorJgk8gmNPMr8azCX+AqUQ9+BGQ6I+4ByibX9OKROmFwYTKyyIBbR06FknV8L5ATe9 VHlo76aKLSL0sMjJMmQzZDxu0h0SRgK7SNjPRJzZmxhq2F6mMQRmSPGmd2IfKKX117jR Hf8X4+q+cNO0xzEJ5kwNSUaY9f5AmBHMoSsz70vvmA2Bx1oB+2hUC0ffiyAdBCASsjQN m+HbyRpathtbuaJ/7WwvJLA0Z55XxN6zbtCD46mobb1nJ6P7uyZe9HQSMvGjxGJSjzB8 uV+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@adacore.com header.s=google header.b=afx4OUoJ; 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"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=adacore.com Received: from server2.sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id a11-20020a170906244b00b009882f2a8aabsi11388251ejb.551.2023.09.26.04.48.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 04:48:33 -0700 (PDT) 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; dkim=pass header.i=@adacore.com header.s=google header.b=afx4OUoJ; 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"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=adacore.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C72293882012 for ; Tue, 26 Sep 2023 11:46:49 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by sourceware.org (Postfix) with ESMTPS id E8C5138618E3 for ; Tue, 26 Sep 2023 11:46:22 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E8C5138618E3 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=adacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=adacore.com Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-4063e3ce085so5205865e9.2 for ; Tue, 26 Sep 2023 04:46:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1695728782; x=1696333582; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=EvO0d6qcJwUbK8lzOYYxPzn4U9PBlADs5qOM6IqdD1U=; b=afx4OUoJxeZvT+OfWQ+4Yj0YE4jYI9DPR1vLoU7VI4FJd2aTRET+1Q2lwZLUK1Y+1d 5td4VxXnPqkg5RZERdnZtPNR/DgcXHh7RLiIr5u43fZfj+dHXnbHMQS4tYptwpb90oU4 R/rQdfSpcWfKTJrd1W91tnp1ZdOU6eJpjY0N9Y1XcZt/DKU0FJlkHvFrD1f9wqxQDGZk f/kLPMeU2s7hM4wBu7+EWM7aHpQiYUtw+kmnAo6zWT/5ftqTME6+6dolZkmqYsYmY5vq rMi3PHR7g+azdYy1GYTWCVFHfz3izgY5OBd4Rnfnyi4YYVfCRQ9HTk/KXv1V+r71pfd8 d5YQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695728782; x=1696333582; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=EvO0d6qcJwUbK8lzOYYxPzn4U9PBlADs5qOM6IqdD1U=; b=s0Q6wDDa6rd5h+oLsbaBjPajNQvVbgOVkkAisEMOo8xU6I7zvjxbH1fPn5mNzizzNm HwvqJPsssljqqQ5QVsJdgK+sn3ks+dzR4is9KN98n3h3zzm1iH7N1eCQTB0zTM5ATkey JZzW+HBEdXntjShZQ8R5M7CJmF8iWrQIk13J+IMqMAdkYUpSasMY1HWASP5hl6HC96vF A7ohlizifCLF1OXnZk43zrILZ6UBY3Pfkx75f5m8Jq9iCntvLzxzxhKpgmCsT5ReUNPp xyZTz39GLc9cDA8/C3NJRdek6RMtK7iHZiDRn/BxzSNe73/b7VA+gxhHcTp0zpUtUYcS 6YvA== X-Gm-Message-State: AOJu0YzUz09rDfIV+WCLJz5/U5Gl69tZE4DBxYBPbDH86OHxdaUeF3uS PUKIk8B7suuLQ0MkjdMX0XUwYx5t0QLbTW+d4tUkSA== X-Received: by 2002:a05:600c:2613:b0:405:499a:7fc1 with SMTP id h19-20020a05600c261300b00405499a7fc1mr8310958wma.40.1695728781641; Tue, 26 Sep 2023 04:46:21 -0700 (PDT) Received: from localhost.localdomain ([2001:861:3382:1a90:27f0:a2f3:f97:f30e]) by smtp.gmail.com with ESMTPSA id d29-20020adfa41d000000b003197869bcd7sm9378730wra.13.2023.09.26.04.46.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 04:46:21 -0700 (PDT) From: =?utf-8?q?Marc_Poulhi=C3=A8s?= To: gcc-patches@gcc.gnu.org Cc: Ronan Desplanques Subject: [COMMITTED] ada: Make minor corrections to CUDA-related comments Date: Tue, 26 Sep 2023 13:46:20 +0200 Message-ID: <20230926114620.3272483-1-poulhies@adacore.com> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 X-Spam-Status: No, score=-13.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP 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: 1778100640874242250 X-GMAIL-MSGID: 1778100640874242250 From: Ronan Desplanques gcc/ada/ * exp_prag.adb: Make minor corrections in comments. * rtsfind.ads: Remove unused element from RTU_Id definition. Tested on x86_64-pc-linux-gnu, committed on master. --- gcc/ada/exp_prag.adb | 8 ++++---- gcc/ada/rtsfind.ads | 1 - 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/gcc/ada/exp_prag.adb b/gcc/ada/exp_prag.adb index 1cc4653a3b0..d2807cdc7ef 100644 --- a/gcc/ada/exp_prag.adb +++ b/gcc/ada/exp_prag.adb @@ -685,7 +685,7 @@ package body Exp_Prag is -- Blocks_Id'address, -- Mem_Id'address, -- Stream_Id'address), - -- CUDA.Runtime_Api.Launch_Kernel ( + -- CUDA.Internal.Launch_Kernel ( -- My_Proc'Address, -- Blocks_Id, -- Grids_Id, @@ -703,7 +703,7 @@ package body Exp_Prag is Decls : List_Id; Copies : Elist_Id); -- For each parameter in list Params, create an object declaration of - -- the followinng form: + -- the following form: -- -- Copy_Id : Param_Typ := Param_Val; -- @@ -755,8 +755,8 @@ package body Exp_Prag is Kernel_Arg : Entity_Id; Memory : Entity_Id; Stream : Entity_Id) return Node_Id; - -- Builds and returns a call to CUDA.Launch_Kernel using the given - -- arguments. Proc is the entity of the procedure passed to the + -- Builds and returns a call to CUDA.Internal.Launch_Kernel using the + -- given arguments. Proc is the entity of the procedure passed to the -- CUDA_Execute pragma. Grid_Dims and Block_Dims are entities of the -- generated declarations that hold the kernel's dimensions. Args is the -- entity of the temporary array that holds the arguments of the kernel. diff --git a/gcc/ada/rtsfind.ads b/gcc/ada/rtsfind.ads index 881f723dfa9..669f6df79cb 100644 --- a/gcc/ada/rtsfind.ads +++ b/gcc/ada/rtsfind.ads @@ -179,7 +179,6 @@ package Rtsfind is CUDA_Driver_Types, CUDA_Internal, - CUDA_Runtime_Api, CUDA_Vector_Types, -- Interfaces