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 8BC1DA0C4B; Mon, 8 Nov 2021 22:39:42 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 73917410FB; Mon, 8 Nov 2021 22:39:42 +0100 (CET) Received: from NAM04-MW2-obe.outbound.protection.outlook.com (mail-mw2nam08on2079.outbound.protection.outlook.com [40.107.101.79]) by mails.dpdk.org (Postfix) with ESMTP id A6582410FB for ; Mon, 8 Nov 2021 22:39:41 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CKY5rUS3QatU5/kG8DyhbE83bxSnpp5Y3fcz8yc7N5UxgM6i02eEmqH3At6huafDNjPCLpL0JEyjotSUe3nhjLHPucM6KzmyUyxmaCrYfcKE+Qaz0uK1YAurcuUltzBz39BJOtfNZB/+HiQQOtklSwuqTsSYgnZ0c6TIg/7iEX0mZPt7EiGgu0opXgiABabWiS0DVydWW1XwKkN45m1MHRyWf73inTMdWZuqgfq8Qj5T1dNeeSCL6rADQDv4NncZ1/EN5bTQyoKVVRGkVZxPnKsyVU1ziLdgq6/3GfycrPopnL3zNFcoXx53DzoW7uzQSVdRbyjW1ERp8yfmSyM/uQ== 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=z8AUOqeC/0n7CwyRfvNtl2bfTh0SDMRC+/pKsBDosT4=; b=YL/KT2A5VJ0uQCLP7KsCKR/MB735JS03wUZzQnJHledGBIqyH78qWpjepwOPYRMOcjxtHpTw6kHifeK4vcjzVT+dr5jU2K3Dl7TiZR6UI992LNWVvVDbonNAlATxaNcVHbl+O9Rtr5N9fdML9ucXSiZez4F3oAUxk5QBfqHYs613bEt5w1oLMW2nn1viye38joS81nVRAHLuaGP1inGVjAihyLdKkCDve0KIG7RXPVILg1GE1hoqZxcups2aT+k9hMYCHWK7ZkSptLERrExQavB+YwqQzVHpYuy9gPyQCm3L7RdZ2Uuua7QrzDXoPx+0wPLOGf2EzDvTiQ6+byzeVA== 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=z8AUOqeC/0n7CwyRfvNtl2bfTh0SDMRC+/pKsBDosT4=; b=XrzsIsSlycSdfTd3iUDnohrq27Z5m0G/8RKamo4STO5CGOPyHgSe7hY4JTXW/x4TUHXWPp4ZcdwNBPaIYnB6bBRsXa1Q06RD6nqe5ILZ8RVxWMuvUi5KmbWWt2JCINKA8WxPZaLoIcnl0LM4uzSvh2KPvs6KE7n0KQXv2lg+FY4rkWNcegehsgZpxdLDRgLdDtvBkYFW1/TrWm1dB/vJJyveTTl7naDHrLRVdFmbax7J619im4l6BdXMaZPQ+I0eqlh33N29JO8zuPtwxY94ArLcKTwWPJUxM9rMHhqMNsvTL1jIiE9vgcMqnU2Ow7Z3pLZN2xwIVRUZp/Y0Cp2m+w== Received: from BN9PR03CA0686.namprd03.prod.outlook.com (2603:10b6:408:10e::31) by DM8PR12MB5447.namprd12.prod.outlook.com (2603:10b6:8:36::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4669.10; Mon, 8 Nov 2021 21:39:40 +0000 Received: from BN8NAM11FT067.eop-nam11.prod.protection.outlook.com (2603:10b6:408:10e:cafe::20) by BN9PR03CA0686.outlook.office365.com (2603:10b6:408:10e::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4669.11 via Frontend Transport; Mon, 8 Nov 2021 21:39:40 +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 BN8NAM11FT067.mail.protection.outlook.com (10.13.177.159) 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 21:39:39 +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 21:39:36 +0000 From: To: CC: Elena Agostini Date: Tue, 9 Nov 2021 05:50:40 +0000 Message-ID: <20211109055041.942-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: 0e79e513-de7a-41a7-0ed0-08d9a30044dd X-MS-TrafficTypeDiagnostic: DM8PR12MB5447: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:5236; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: pMIeT4/KFUy2dAWGdbd1Bs2BmhSjQJoEskokVQq4qTaco7Nsc3K9qy1LDYQaIn7eE+8+Aie7gzK0ZSWeZr7KlyVBH4VUoN2t35NgcZfbJLwYGQIr/2kDEyQIkGVj+Cu+OG1ZNgjwhh/LZonEJxPj+15843xjRkcsyQPEsZ8AWlEmoBrN1b02vpG5qzS3Hs3K8oCTYNuk31EB9iSVlezFYOSeD84Qiv7nIyRO1fILjDE1tAfAXVlA6p8FHa/38kS1uU/PcRyJNfMSZz7Q22hOf3GFII4kFtGG+4iUTp3U+F1qZrKD2ZLsizLdKnKAzSaA5efgC9o2VdpoNa0YuaPsc+SS2ceI+A6RZ/izqrGVBcz1u5s+sGy6S4NF/ZL1hNNZMpZgTQ+cbAz7xCq60WHEzkMsHEdcfZVM4giGanGjdoYLwN6YOLSaCRF/vd69vH65VTHu2NYeqa9Iao30VIkc+bcSRPOVsIg0h5aZoOXICKWyOWg+Ph7PH8Or335Jj34FXe1UH2vATV1wDzmd7aut6xOiBGualEGs7al+6DACbN7iBeTe+nq/usYpWwpUUi7xPgwS1wdI5T8E+rWwPlUuRdV0lRizpuKiiGJmz8ivD68bKijXuFCSYhnTrpZaY85jewpwwyF1LV1hz4TFYstf9+OmeY/fZuX7vTEIDbM+bqtUqw56OI/7uMKAA9O0dQ2TGmMFSlxJiy6yNdkb06laKQ== 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)(16526019)(8936002)(86362001)(7636003)(36860700001)(186003)(2616005)(6286002)(426003)(8676002)(508600001)(47076005)(2876002)(70206006)(5660300002)(4326008)(70586007)(316002)(6666004)(2906002)(26005)(82310400003)(107886003)(356005)(4744005)(83380400001)(36756003)(336012)(36906005)(1076003)(6916009)(55016002)(7696005); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Nov 2021 21:39:39.8602 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0e79e513-de7a-41a7-0ed0-08d9a30044dd 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: BN8NAM11FT067.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM8PR12MB5447 Subject: [dpdk-dev] [PATCH v4 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 - CUDA driver is optional: not built if CUDA >= 11.4 not found 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 | 813 +++++++++++++++++++++++++++++++++++ drivers/gpu/cuda/meson.build | 20 + drivers/gpu/cuda/version.map | 3 + drivers/gpu/meson.build | 2 +- 6 files changed, 948 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