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 A2F22A0032; Mon, 15 Nov 2021 15:25:35 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6492E40E25; Mon, 15 Nov 2021 15:25:35 +0100 (CET) Received: from NAM04-MW2-obe.outbound.protection.outlook.com (mail-mw2nam08on2057.outbound.protection.outlook.com [40.107.101.57]) by mails.dpdk.org (Postfix) with ESMTP id 3277140141 for ; Mon, 15 Nov 2021 15:25:33 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=D2euuGh4P1OxB8+oY+GBlh/qlYznT91rwmwlBm8TgFRw8wTt3CyFBlEXrIrW1+4WvgvGPtpYPCaIloMPnLiWBOq2pgZPLqWIJwOl1MQXi3gtDSWDLIaJlHJanZUWXgMOuKkPwm2Taa9kJO7/+rBfLdAsZs+F6gXgCL61nsuM2eRPqZ73ochpMlKH6zSY7++3d0PoS5wCPiX2HpEhfyAyNCoMegA5LoUBizPWmaxgGSBLiuozEZ7EO9oIsIekLs0Kwszsn2D8I+LjKIr3Br2/2SZ6TtBg1LeP87/zRg9IvDoo8nCmlO48HhqcIBgjpQA1tC/tdEj/1YWv1LvCX6qeVQ== 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=L9HQxMSnw47/BI15oP25VIt0y8BeiHwy/w7frRh/OQs=; b=XIyXKGok4sLsPc8bzJxthPc7kFXPQla0Y5fLv2wCXfzHZQSJW5q57tN0jafqn+Fzpk+zMWz4ANbrwrgcHoWEbTjYaS+K+T3znJ7Lj41RPADfkLuf9BMo24yIA6mxz9VwP7wxSFcKPiH8F+AToZfbZwH4lSWnVHw9+ZfPAe3+q5sdwuTYPCY+0kG5mjKnRmeQT61E5JpoLGN2AzlmEkqhQWMqVFdNJl5PQAOTDkXJI5FV3bgFLCnY8wk2DD9uxXvbC7dYCjy2kvB578mnuRHZzg76BlWGNJ6/PGmYJ4OAGn1/cyMxAYXK22G/ZuUM3/vEE1wnGLGZRiMg7t3rNY4NBg== 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=L9HQxMSnw47/BI15oP25VIt0y8BeiHwy/w7frRh/OQs=; b=p4g5niLBNdND21RUK9pt8bSm0XVcZT4r6yA+Ug3Uaz+WjqNv/fUeFarfovZyB/Ou/tUT+Iv8AJp1shr7vtYEAEb+OioIxi8CgxurOKS9NWCnXfawDtf3ppDbTctMbC9dBzJxDP8vyaVnwwpQPTaUBF1bnFBoiP7rEmFb/n55w0RU10yM8YHo5vmAaaRqArW7UIUvu0LqR4xa0jnz7BAo9wTfcvuvnnNuRjbxfvlnkLHYq4RNGVPHVv5sWi03BtVSOEY0ssnkUOa0yW5kveKaIH1y9lktgtKNyLPTlqazxVVBhk/oM/fE1LfECxvdDKTgIfYGvbQ+m9ogMPzd1I5ndA== Received: from MWHPR12CA0053.namprd12.prod.outlook.com (2603:10b6:300:103::15) by CH2PR12MB4103.namprd12.prod.outlook.com (2603:10b6:610:7e::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4690.26; Mon, 15 Nov 2021 14:25:31 +0000 Received: from CO1NAM11FT029.eop-nam11.prod.protection.outlook.com (2603:10b6:300:103:cafe::bc) by MWHPR12CA0053.outlook.office365.com (2603:10b6:300:103::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4690.26 via Frontend Transport; Mon, 15 Nov 2021 14:25:31 +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 CO1NAM11FT029.mail.protection.outlook.com (10.13.174.214) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4690.15 via Frontend Transport; Mon, 15 Nov 2021 14:25:31 +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; Mon, 15 Nov 2021 14:25:30 +0000 From: To: CC: Elena Agostini Subject: [PATCH v5 0/1] gpu/cuda: introduce CUDA driver Date: Mon, 15 Nov 2021 22:36:01 +0000 Message-ID: <20211115223602.18189-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: 3b8e1af0-5378-47f9-738d-08d9a843c789 X-MS-TrafficTypeDiagnostic: CH2PR12MB4103: 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: 9G6i3zKFUhrBzkVOlHlezz0Uhx2cd4CM3xpZ34mKXVmkqrKf6rXPjErM3RrC4BdAkljTRR0arUa5WvmZnKOpCKaWI9Zs+OZnUlLeU84V6/nihAkPHsuJxo3LxAs1xAmgvwUF4IWZjI7y8OH87WRKwlJJbCGu4OsL/Qi+a5iL5ybn6BuYmiVgZTd6E6v5YA9bjtFxNHH8vDcoXE/RnVbGSVsFqzNUkMFW8kTKqMVY+MA/cbMLth0CrujlgwLVJAbivZ79qOTYgYvQKeGlFY/d9R73n+p1xscOyWSF/Yba6AyybiaKU2jXS7c0xWn1jDepHYosRfzq5Nezukt5PYnLQ3r/zB1XspdEzVavoCG+TTFSe7jYS3ipl7YnhjYYEJPwvDZRyrwTJwVDrDyptsSmr1H9gYquCYppj7QsgN2KKreU5wPbidOMq3DlfiTcz/J472X6lEfJOCTLAOqZarxdHeta9KTuW+esIgm6rNxufbBZ/XfgxQIVirjMfFFFWrBoxVV5rhKWxi2daQWBZOTY+JqiYUpeKL/w5/mJu2KBx7ZO9E8DeLpqRAJwT3/PfBhyUFxsvlEMd4PX39ix4x0np8GtRsjF5DQR5cOfWplsGHE/vvZ4/WhaHb6mHaOXzueubPWRsBVjLE0CgEUvV3byZgtTaPkNRth7rt+3g87pdvf1xtJ1u3+yAVlHZ9jF+K02fCYoYJj5vj3XdvSIKhj6Jw== 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)(46966006)(36840700001)(36756003)(1076003)(16526019)(186003)(82310400003)(36860700001)(7696005)(2906002)(26005)(356005)(316002)(7636003)(47076005)(83380400001)(36906005)(2876002)(6286002)(336012)(107886003)(6666004)(508600001)(8676002)(8936002)(70586007)(6916009)(5660300002)(2616005)(86362001)(426003)(4326008)(55016002)(70206006); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Nov 2021 14:25:31.2555 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3b8e1af0-5378-47f9-738d-08d9a843c789 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: CO1NAM11FT029.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR12MB4103 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 library not required at build time - CUDA driver library is loaded at runtime through dlopen - Documentation updated Elena Agostini (1): gpu/cuda: introduce CUDA driver doc/guides/gpus/cuda.rst | 127 +++ doc/guides/gpus/index.rst | 1 + doc/guides/rel_notes/release_21_11.rst | 2 + drivers/gpu/cuda/cuda.c | 1132 ++++++++++++++++++++++++ drivers/gpu/cuda/cuda_loader.h | 301 +++++++ drivers/gpu/cuda/meson.build | 10 + drivers/gpu/cuda/version.map | 3 + drivers/gpu/meson.build | 2 +- 8 files changed, 1577 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/cuda_loader.h create mode 100644 drivers/gpu/cuda/meson.build create mode 100644 drivers/gpu/cuda/version.map -- 2.17.1