From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id AE4E5A0032; Tue, 16 Nov 2021 13:37:00 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6DBE340141; Tue, 16 Nov 2021 13:37:00 +0100 (CET) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2079.outbound.protection.outlook.com [40.107.94.79]) by mails.dpdk.org (Postfix) with ESMTP id AC9A740040 for ; Tue, 16 Nov 2021 13:36:58 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dJ2DeKS/AMb2JuJGhVbquzP797DmgI/gih3rmUrg+8S35LPLnt4xdqy2iO+IiZC/mjwNfbvJC0xJW9DbBpljNDkYZfEZwDu9JgRqZBFDsrizAWCTMvbA8njw2haidWpX6hNMtGRdyKYc32LMjyM7UcdxiVzcg8gmXV9gJQrJpMXmJ7Aczn6uGt6VW2GnpCGLp2BaxWSqCJ4IoGSsXmXiv9OHejIdytJrONyt3+fHH+QJX+ZrPu4hVQayhqgS2BJM8R50WZSejNiVn9heZlU3OXpOGzHGQMNjmzoGU1NkGWqE3uVe9nrpHq08/+HO1aChaK5k3+Pc4vl5/A3NXhUQJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=FQE8/XypzdglVwDsxqmFe0Xay/u4IS1rKc3rSMugheQ=; b=T7bXDQk1XKqz515HuLpPM5YRXWCclZkwQrvosHUlrrKfd3IcqYSNHlprfuePEDRvDLJDMCe74a6a7kq0zf0tgt+UmerMym1a6Hes3NdPAKRdPzzqSAabGrSw6FCLRpnx5zmAW6bKSn3gV3GPrbuJdKGbRzD5AanZV8lJRV4JvHZCPGEUx4uHrcBb+btcFmccx0pE6gJ6/VjEA7R/Xc+V7VyTKm76u6dXVN+YD5NQrtp+AQntotCfB/8raS+Eocw+k9TFIF4j6PpKPNu577LpU9ijx4f6111o0fLkGL7mWgADFM7285DVmuFXlw9rFhMJNogMqrKVNJV0MIGFBYNdUg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=dpdk.org smtp.mailfrom=nvidia.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=FQE8/XypzdglVwDsxqmFe0Xay/u4IS1rKc3rSMugheQ=; b=HNTmnQx7j0/tb4n096QLAauy7f+UjndhbSVR3fiLd2edToKYszakKVyU5F/JadU9QQsNPVsLY8DF8yXbozrHJGlbj5Uk1HNBvgndJxvk0U+8tBDXP1n/bo+W6tvC7jHmw42IfJfVM1PDLK1jicLJRBi7kAPdMvumc6kpwg3cXlwIjaL4BgbkkO0cfugFNQZQrTNcXdSBbPoDJGBO8TpF1Ro7S55l0mPJqzSF3aGg/onK0De4iL/cML/VUbSeDTPHw3PgSZh768lRR6oMjtr3JdzqcMMtICNQh6YX9XOKJ3+Qr9ArjdO5vxmW+qoSpvULjQCtZizwiAB/vygO2pRQPA== Received: from DM3PR12CA0136.namprd12.prod.outlook.com (2603:10b6:0:51::32) by DM6PR12MB3692.namprd12.prod.outlook.com (2603:10b6:5:14a::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4690.27; Tue, 16 Nov 2021 12:36:55 +0000 Received: from DM6NAM11FT064.eop-nam11.prod.protection.outlook.com (2603:10b6:0:51:cafe::c7) by DM3PR12CA0136.outlook.office365.com (2603:10b6:0:51::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4690.26 via Frontend Transport; Tue, 16 Nov 2021 12:36:55 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.112.34 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.112.34; helo=mail.nvidia.com; Received: from mail.nvidia.com (216.228.112.34) by DM6NAM11FT064.mail.protection.outlook.com (10.13.172.234) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4690.15 via Frontend Transport; Tue, 16 Nov 2021 12:36:55 +0000 Received: from nvidia.com (172.20.187.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Tue, 16 Nov 2021 12:36:54 +0000 From: To: CC: Elena Agostini Subject: [PATCH v6 0/1] gpu/cuda: introduce CUDA driver Date: Tue, 16 Nov 2021 20:47:24 +0000 Message-ID: <20211116204725.27897-1-eagostini@nvidia.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20211005224905.13505-1-eagostini@nvidia.com> References: <20211005224905.13505-1-eagostini@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [172.20.187.5] X-ClientProxiedBy: HQMAIL111.nvidia.com (172.20.187.18) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d8914f1c-ac31-472a-c631-08d9a8fdc622 X-MS-TrafficTypeDiagnostic: DM6PR12MB3692: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6790; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: eRDLJvRMJM8BXSm30ulsEllGnCbiIXXseKoaiDsEjR6lj7jAM6GoJroA69dsUpA4A7Tz2RMAwTk68XRdMq/X/ncRlG+zFVgre6mkPkBSYTWcL5b2HyQSaBpqfh1VIZn48f8NIjqlqFWz8InqX8S1KRSc8/ow/NGIbBJ7npnKARq0BJtHsx+oW9z/Q9wYduTLqdHqAfjBfdZCDwYAn6Qbv/Y2ReU7Y/hhjtkseTk4VSezh5izWiMeUQrMPdVudNvfU1+iDJQeO7UjUI8d8VyWvpVnouq6NilCBkS2wg+08VhS1S+BZ0qz7ufoipEdEt8nsLzju29ag7nlp3JGTtDtDdoPLbV2AWynsJlL4iTBSwKES2cT29iA0bWG3G5oUxsPXV9VVZO2yGY2RzhRMXJ17QS3bD8CGO0Hzj3/cGGNDdW+1Au8chBdTDVBN9BCbIr+7WwHs9zPfpwWbF4ffYZsI+x0ahSph2Jo6dJaW8AK1o/ScKidp47BWRzsfz0nvabF46BbbXYOvGKJtJlSixUIS4bDFENhdLl4HOcm5w9fVn7MPUVfj/C6npo/lVr2OWYT414ka/IfXHqB1c6i4is5vau/No6V+ixAQ6W4YQCum3B8GFCs3w+4PSK2CGJG2m+puPZY0JZiNVj1U057iGDlo9BfYMYCuG06ZGz/zapVoBvLOpuMpJod4dpKiCfzRRK3FMXCFoGS7EQcaALslmxSMQ== X-Forefront-Antispam-Report: CIP:216.228.112.34; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:schybrid03.nvidia.com; CAT:NONE; SFS:(4636009)(36840700001)(46966006)(8676002)(508600001)(82310400003)(107886003)(70586007)(356005)(2876002)(7636003)(55016002)(86362001)(47076005)(36756003)(70206006)(8936002)(36906005)(336012)(6916009)(316002)(1076003)(5660300002)(4326008)(6666004)(2906002)(7696005)(2616005)(16526019)(36860700001)(186003)(6286002)(426003)(83380400001)(26005); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Nov 2021 12:36:55.2956 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d8914f1c-ac31-472a-c631-08d9a8fdc622 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.112.34]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT064.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB3692 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org From: Elena Agostini This is the CUDA implementation of the gpudev library. Funcitonalities implemented through CUDA Driver API are: - Device probe and remove - Manage device memory allocations - Register/unregister external CPU memory in the device memory area Changelog: - CUDA driver implementation of the GPU write memory barrier - Fixed styling reported by checkpatch - CUDA driver shared library libcuda.so is not required at build time - CUDA driver shared library libcuda.so is loaded at runtime - CUDA driver headers are required at build time - Documentation updated Elena Agostini (1): gpu/cuda: introduce CUDA driver doc/guides/gpus/cuda.rst | 151 ++++ doc/guides/gpus/index.rst | 1 + doc/guides/rel_notes/release_21_11.rst | 2 + drivers/gpu/cuda/cuda.c | 1145 ++++++++++++++++++++++++ drivers/gpu/cuda/meson.build | 18 + drivers/gpu/cuda/version.map | 3 + drivers/gpu/meson.build | 2 +- 7 files changed, 1321 insertions(+), 1 deletion(-) create mode 100644 doc/guides/gpus/cuda.rst create mode 100644 drivers/gpu/cuda/cuda.c create mode 100644 drivers/gpu/cuda/meson.build create mode 100644 drivers/gpu/cuda/version.map -- 2.17.1