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 19090A0C4E; Mon, 8 Nov 2021 19:17:12 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0F7FC40E5A; Mon, 8 Nov 2021 19:17:11 +0100 (CET) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2078.outbound.protection.outlook.com [40.107.237.78]) by mails.dpdk.org (Postfix) with ESMTP id 8BCE440DF7 for ; Mon, 8 Nov 2021 19:17:08 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ewCFTiMw5xy0twilFUmXpo0HX0T6PxN5rSrbv/UQfEiNqHg49pdZh68b+sO1tlLxM6CTubbAhCzRvDtfvZWOxAUkMNGl2kZFAge5M9BjtovrqVNh4tsJSg57Xz39TUQjeqSj1lfepmwhQJ4d8NT1zWwcyOl4YgTOYT3/z3/r82sjHkCR+HH8n+TgqQKEPGwIK3AaYjRKS4+i4g0hCkGEHCar2GgK+nFoUiRiyoaknBMjqUG8tjxTGbeYw0H4T3f59OAEd9pIfqmVF5ONKD0GfwT2Zijy8IsnvmCHd0a4lwaxBf4Ee1U0N3ScJvz9CZlA/KRpUKeGHgKyBPOZ2BJHtw== 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=+wYc0YJP+LxRqQmteEpJxJaIQXWGq75u+lmNV1cVc6Q=; b=Ve92ehfLddAqEyitI9vtDqYs3igvhMNVHuddlE5PARd6dCf/asZLyyQhmiSehDwDraqtvSUEUo4sdW8gRMbveSFyW7qy/y3WLO761CaCO8g2gvhwyAVY4l1am9lOZth9HKsV2vsIA5Ry+Oey7YXRlthhJhW4RSZvdeiCuwPnOQQ5ix2WeYMkc0/npxnHOrOC47euwZjdsRA50De9g5geU8yTnxogDfUpJwxytJYdcPLOUUp4U3U2ZFl3NsctlrP2wtxxqDGyPOa1qqZreP+0VaUWZfOkXTgd3VQS0bBvDyVzXy1F8moslhf6Q+oQRiLKPpuCikW+8+fMi66yfxH/Cg== 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=+wYc0YJP+LxRqQmteEpJxJaIQXWGq75u+lmNV1cVc6Q=; b=HXK7IBgmuX6XPrSAu59h9PYrY5vf8fvVFPsMwYLocpUtx6PEHZiTEan9j1sAGP3nLxAnphUjgx7X6rhCwJw+wVBx1irB+Kdfv43WWys4ns73t450moSaF0AcogxaugvH5prdj9FdvtajcRWdAAwUhAFTXUBMXMa1x+J9WVTZDCm0L3Y2BX2pu8ftSU+9nuglX1E0XW0xG8b6vyxaUbfV+pYjIsJ/CxWKUyP4mustVfKwh0kNUNfLVVbCKlwfbujjN6vOPTcxJjiEXIuC//e0b1nn9sYVOUpVbs32pPWCYQwcxJ2zAmyQDH33kDAcBiGqGU+Tdbh03hDxnco7Uj9B2g== Received: from BN6PR13CA0064.namprd13.prod.outlook.com (2603:10b6:404:11::26) by CH0PR12MB5185.namprd12.prod.outlook.com (2603:10b6:610:b8::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4649.14; Mon, 8 Nov 2021 18:17:07 +0000 Received: from BN8NAM11FT051.eop-nam11.prod.protection.outlook.com (2603:10b6:404:11:cafe::85) by BN6PR13CA0064.outlook.office365.com (2603:10b6:404:11::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4690.7 via Frontend Transport; Mon, 8 Nov 2021 18:17:07 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; 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 BN8NAM11FT051.mail.protection.outlook.com (10.13.177.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4669.10 via Frontend Transport; Mon, 8 Nov 2021 18:17:04 +0000 Received: from nvidia.com (172.20.187.6) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Mon, 8 Nov 2021 18:17:04 +0000 From: To: CC: Elena Agostini Date: Tue, 9 Nov 2021 02:28:05 +0000 Message-ID: <20211109022806.9224-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.6] X-ClientProxiedBy: HQMAIL105.nvidia.com (172.20.187.12) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 24cda2c9-2f88-400a-4ce8-08d9a2e3f7bf X-MS-TrafficTypeDiagnostic: CH0PR12MB5185: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:4125; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: y0X8DGLRyibRBzp91t05JEulwzpk5YFvjLW9o3iN+e7oYED/w6IqUUJC3O6jBUJN2i/7Nso+BczHE1Glu3dKGlfiCHAi4N1gad28YebLnPH+i5eADRCrLY1XxOERxU9AnfzRZIEbXgiWSOqGsrvV7kS1/QBDFzs5VFQEZYZtaTle8QVD9BGu6IhbcJmF/zfqSHcByNAxKLLx0DapUzROrqlzFg0jnmrynPYYL/DiG12blaYbOBqSpbFS1E1H/4QRWITZp1SM0GSKJedCImq3zAs9hAkvWH4OWrJqDED1aJBGNbfVe0My8YX5TKW4oMsk6k1Yra5q/ZjwmvqBG9EsBbiZpA2PN+QJobdiUWQQhaqyA8eKzeusnCyZ1oLh/RV0pfpBR1V8FzbKQYK5VfYwfYoXwFQvi+4zr2Ykwd/XRvD/mgwVH8QaIGj8K54/Iah+OOPNouyhGxWN4Rhbw8XKJyoykbCejZ9btgcfUIjSQ2/Hr/5+Yjfm6LiwoNTiYSids3/5uZj825Vi0my589c15+c2oBJqaF17SRk74U3tuAh+Z1ZlY8b1ltbppEiDM9A1zXt6asQkcdFeu10rsZCmidyvfc8F0ahWcXnMR0zBOXi6EINfbWdaW4ZmPLNvLzUHu3D2JquqNfv2h7+AZwy0VdqVlYvy2yWzFHdfBj9Y9shMlten96sJl6houu65NDc4jwwcG+WVO7w7viauY2KzNg== 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)(70206006)(70586007)(336012)(426003)(508600001)(186003)(356005)(6286002)(26005)(4744005)(6916009)(36860700001)(1076003)(82310400003)(86362001)(5660300002)(16526019)(107886003)(8676002)(2616005)(2906002)(8936002)(36756003)(47076005)(316002)(55016002)(2876002)(7696005)(83380400001)(7636003)(4326008); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Nov 2021 18:17:04.5602 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 24cda2c9-2f88-400a-4ce8-08d9a2e3f7bf 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: BN8NAM11FT051.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH0PR12MB5185 Subject: [dpdk-dev] [PATCH v3 0/1] gpu/cuda: introduce CUDA driver 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 Sender: "dev" 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 Elena Agostini (1): gpu/cuda: introduce CUDA driver doc/guides/gpus/cuda.rst | 110 +++++ doc/guides/gpus/index.rst | 1 + drivers/gpu/cuda/cuda.c | 801 +++++++++++++++++++++++++++++++++++ drivers/gpu/cuda/meson.build | 13 + drivers/gpu/cuda/version.map | 3 + drivers/gpu/meson.build | 2 +- 6 files changed, 929 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