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 3B24BA0032; Tue, 16 Nov 2021 15:39:49 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 27DB1411B6; Tue, 16 Nov 2021 15:39:49 +0100 (CET) Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2084.outbound.protection.outlook.com [40.107.243.84]) by mails.dpdk.org (Postfix) with ESMTP id DEB97411AE for ; Tue, 16 Nov 2021 15:39:47 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Q8U4zmTLZhuENqU9srm7s13V6kNk+7B0oDQA3ZkUzbWaXsyEK+ancnzbgFFLnsU8aaMqeG5c4kKNXMwiOz78lew/WylV2fAoaKQsKD5fZD/HW19EmaF9jKHTtCi174DnIFDBOaIX9F7CeO4myAffjX1rNc9XMon9d5sm+owcBe2QcvlfAN0JStDG6qZFZjMHKkJXNL1ODYIARAadLpzKw073KkoNd0eENk3nWbCTejJqbq15xKr2649rqye7DMkw9gHz/pcr3oTLqJsEoAshYf7KjDWvIMZhztDCTA8/C3A03iBpUIG9vduIIemT5QCP2mGVxOV2V9ys0n+lm6eADg== 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=9nmQNT4yVtE7SdvS40TSo4bKGpk6XEwtin6hg9y5kGw=; b=OlY4KnVoSL33wOilXKiCdnJPqHOSrqg6WwXqp8aSOeRN1j51eK7deCRa7av5vX5QDx6h0o/Anv6/ZZf+A/IPNz4FGhnJ0IUyjhp6l/QUBmfgnoOpSCl91tIEuOv/7uB6kv+4FgcIsJUgbx0hSukrQlsyob+pkCiKxgJzP8VgV6PMAhT1jxZL6MpFBGoJ/KXy7yITQfw0aR5NC+/ZItnBsPesP07fu5IbRWJTFiVPMZ1bLb27NCS2ZiqO3juXV75FeFfBg9gKWa2ZsvFt5LGR+HZtdiXTxAJC4AON5IZASq1R1FrImlsZoHOjSYU/DLGlr54/9ICmPgIvkv3KiJM4/Q== 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=9nmQNT4yVtE7SdvS40TSo4bKGpk6XEwtin6hg9y5kGw=; b=clbdkU3YeMcY2d5n/nAlO4GmRdQ5wRfXOo8zNU7rb924R0iv0yU0pyKq8lxTrieFgvAu8Kp5d3D+jZTKpcEl5CZLiQe0l0hzammtGKDC2Oo/4tvgZjYlC0HDhVlebafdTnd3d0BLKv6ih7bpdCup/+ki/gO2flCyUot4LP/NjsuEF7GVD0EDxbE5lWZL4l/O1bEuAZXOEeUgSuy20Qcmj04Ll2W6lc4m40/KbWj2cLww4Pa/w9tPc1X1EhwscaA+bVfgGGc3yIEZ+P9h7fQAhRPECjsG3dovHVWzMtmjH79Vib4eewu8/x4cAiBt1mQv0SQYVG93AeBEQDNnzjHNhg== Received: from MW4P220CA0026.NAMP220.PROD.OUTLOOK.COM (2603:10b6:303:115::31) by CY4PR1201MB0215.namprd12.prod.outlook.com (2603:10b6:910:1d::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4690.26; Tue, 16 Nov 2021 14:39:46 +0000 Received: from CO1NAM11FT032.eop-nam11.prod.protection.outlook.com (2603:10b6:303:115:cafe::80) by MW4P220CA0026.outlook.office365.com (2603:10b6:303:115::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4713.19 via Frontend Transport; Tue, 16 Nov 2021 14:39:46 +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 CO1NAM11FT032.mail.protection.outlook.com (10.13.174.218) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4690.19 via Frontend Transport; Tue, 16 Nov 2021 14:39:46 +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 14:39:45 +0000 From: To: CC: Elena Agostini Subject: [PATCH v7 0/1] gpu/cuda: introduce CUDA driver Date: Tue, 16 Nov 2021 22:50:17 +0000 Message-ID: <20211116225018.27411-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: 77d8bcbb-aebd-4ca9-ebcf-08d9a90eef7c X-MS-TrafficTypeDiagnostic: CY4PR1201MB0215: 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: 2JW2arqdr00Likr3Zor3urzKfb8rZLv/v6tmCQTYuOTddzbNMPvJPft5b0C9y1IUzpML9TKztGNYdbETGBT2zksLVNl9ahgY73vLNRCRmBT3G/RBJAifiRFMH7grNkkIRwn1ff8h2WhGCbLWeGm9Cf6NFL3NXZn0lsCFK4p/QSBH7mXEbVFOERkChpE+nDPq0BJulVlRKsUXQL7aGDZbQxGsKZCdUtxrk84DJPwdPGojmeHuzc11APM8kD7FhesBOy+nQ51XNkz+GU5/VYBR8Fe9NL4LYm10A9rzTsY6h//t007OFbZ3Siena2EqxJTs9ftFRwlXxdFMf16tXKuartSz0I9taNQ2i//Tp1aB8xmVaWRgq665uDhSDhKMKfHqacUx7rCh7MIIo9hDgomTGfjUxE4OtP4gIWmNPEKjRHhMRdO1SnndbSfcMpjhU84cdmRbsPwPRHSV4moyxOomwg3ViRzdEautZZnOcWhTONKtXNbCYeVmTLf4TFXNOQGJK0WWAdzUhuiQQCrGG5e4wIjsj0EDRwTpqOLUka1heZk6RZ4Ehqc7etRF/BENUY8AEB7dllefUTJfdOvdSqeAU4UuNNkvi3rq4FkymVYrnXJTaxPMcXkgJyu90Ji0pf4sJ2nEPGsaboQ4Ub/CGy7ii9SdDbrOp1cFjDSVIvP9hYfmomVoxt1PiNqUaS9RgTeK9RIM54EmQ1dLX94k8zZ2YQ== 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)(70586007)(8676002)(55016002)(6916009)(86362001)(1076003)(2906002)(2616005)(336012)(8936002)(16526019)(186003)(5660300002)(36756003)(6286002)(6666004)(2876002)(26005)(508600001)(426003)(47076005)(4326008)(82310400003)(316002)(107886003)(356005)(83380400001)(7636003)(70206006)(36906005)(7696005)(36860700001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Nov 2021 14:39:46.1204 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 77d8bcbb-aebd-4ca9-ebcf-08d9a90eef7c 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: CO1NAM11FT032.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR1201MB0215 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 - NVIDIA GPU T4 support added Elena Agostini (1): gpu/cuda: introduce CUDA driver doc/guides/gpus/cuda.rst | 152 ++++ doc/guides/gpus/index.rst | 1 + doc/guides/rel_notes/release_21_11.rst | 2 + drivers/gpu/cuda/cuda.c | 1150 ++++++++++++++++++++++++ drivers/gpu/cuda/meson.build | 18 + drivers/gpu/cuda/version.map | 3 + drivers/gpu/meson.build | 2 +- 7 files changed, 1327 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