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 B7DA7A0C47; Wed, 3 Nov 2021 18:51:24 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A82B241103; Wed, 3 Nov 2021 18:51:24 +0100 (CET) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2072.outbound.protection.outlook.com [40.107.223.72]) by mails.dpdk.org (Postfix) with ESMTP id 2669140E5A for ; Wed, 3 Nov 2021 18:51:23 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GfF+JDQ/cBnhY6jb/aunaNFtZ37qMO4JX3wcj10J+Zs5MWcgQ9ihZBMWcjapTw0s7E84dCCPZUS5Sf+d9p5zx2k3TZljI3lo4ZphPXXTA3C9zAoBqNVgmtlWC2MTJqY04KLDsMTpHB2F+Ey+hmqagvz4OjSzcfsKxjSqOqxC5CKjO8+nt5JPf+NDA3YAlCd//0D/MyIZZe2kDYFx4gLmb/MTVzc9WtHRbiWaMev1iww4xd5DQ2Xr7NdMZFHv768z82c+9WtoaMnlrbdLCKAVzNnTucHDQv/AgQ0fHjWuTLmJjYv/+4rYjmNp11aUAsUk1prkqyZ4jvLfvncs+SD1Pw== 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=UtshbCfCGbglUoTewmAkZkr9Vrz+VDX+WwJXCrnMY68=; b=C/IJLYIhNn8Dd+L8Q6tj9dltSpCuCmnyY2DHgy0OvNbAyn3j2/zD5DowTmIF7m6E5YmKV5l+Qna8Oa+grDn1TKnqHJAV8jThpsjUAAPumOZvsXoFAnJAw3sFN6tT9Y9/I1Kzx/JVwUy4smpfnn/fxd9rXgSk2x7x8LXZv3uMdJRIgfJRqyVJNa9BI4mgD8pz/vmPVPY9mxdRUqqrLpdlzaM3qseY8mQZ/vI/LfmjBXTvP/2aeZSF1WjF6YE0z3CLPHsL3gzt98eLDG4lAuP2nMlAx4kagei2OfVn5/Tk9uJtyXTE0kcl1CvhSXGWyvWPe3du30f5v7WJK51yRxzBSg== 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=UtshbCfCGbglUoTewmAkZkr9Vrz+VDX+WwJXCrnMY68=; b=JK/rt+yxZC1Utqu8MWcjEAlqNqvqjIfNpHPxVDmAzd9S0i20rsv+u8IgiqA7REJy1AWJosQkvNb1qRJx8zYB9q6ceChIfE9Q3I1hmj05JQbcxrwSmYLW6Z3w+p3wQFoPsNFhS5nW1PxNwLhMNSbq6CcGPW5PRAjhV4qLiOTQDKVDy+E9HTsp2lTF/hShacAGbYKLiqnOxZUtkp/A5+7CHSixq4TeqrWUtQBIplb5fAdjSmF18Ht5+g/tUchJoXr5TPoUI0ikS6dpOnDZMGnlWX2n+sLVg0sel9KCTFMoRMp7jiS1+NYx8hftgRZgaTtIIPjcFNN3Szf+wS1XLvR0iw== Received: from BN9PR03CA0885.namprd03.prod.outlook.com (2603:10b6:408:13c::20) by DM6PR12MB4943.namprd12.prod.outlook.com (2603:10b6:5:1bc::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4649.15; Wed, 3 Nov 2021 17:51:21 +0000 Received: from BN8NAM11FT042.eop-nam11.prod.protection.outlook.com (2603:10b6:408:13c:cafe::48) by BN9PR03CA0885.outlook.office365.com (2603:10b6:408:13c::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4669.10 via Frontend Transport; Wed, 3 Nov 2021 17:51:21 +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 BN8NAM11FT042.mail.protection.outlook.com (10.13.177.85) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4669.10 via Frontend Transport; Wed, 3 Nov 2021 17:51:21 +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; Wed, 3 Nov 2021 17:50:26 +0000 From: To: CC: Elena Agostini Date: Thu, 4 Nov 2021 02:01:27 +0000 Message-ID: <20211104020128.13165-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: 165f52ce-c483-4080-9c48-08d99ef28bb9 X-MS-TrafficTypeDiagnostic: DM6PR12MB4943: 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: HLrY9it+TpOQIAsqArj2iu3jHhDoSK2T3CvxX1f9P7yQ47D9EZ8Mo3vzbYhrmZZYmOXxRWb2JwR5S+/ZQ0AmxOiG4XHmbCWbMOXkgrVSrDgJoFFTjF2QZBZy7872H8RciPl7dPSx5KgJ6OSnagd+IWzpB+9Ky++r/F9Ytdtw9RfSM4hLoJ0puKEj2qj46wQwKPE5ynhw4FQdYM7QckGrUo2nvg+Zuv3XrefhH1gqST/E4TH093sCXP46NZXgePO3f24612CgD/k2tpbMcu2OkCdVab1peKrG9LQoiFtvcPQrP3CPSfuUOjygseFvnh0lCZC+jlHtp2+Z/FBhR2+D8QxoHemkc0dokWVm8yta7cQ+D560R/PcoSdbJalOAIJtM6LuVNKFKGkscPTWxIchzn7wBZDvsLtoX4J+kPvx0Q9MbXDwVYacMtCy0sTBRX1xufszo010vybx8pcLlwAGjr9GUJvT6OPHvBVsoRsvVBR891N9ejTC6YAWQ2b0pVJZsE4ki8ziaG1BKQXcg8HsoWelh//nkoaPfPCGw+X7P0tTHEs3D7yaYUaE8XjNlE6i78lPoUtW6+59rVtXRmo941Y9JHqbaoZCZ68AfGjzsgHfIkNlJ1V1kCkztD2251V+HZoT/ht25zjMBJFsWaxPUh3KGpup5nNRMtj6S74PECY2pTsWvYzAagTHkilZGJVur/UUn4Pw3ENJDhrRBLcjBQ== 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)(47076005)(86362001)(426003)(82310400003)(36860700001)(2906002)(316002)(36906005)(2876002)(336012)(5660300002)(1076003)(6286002)(4744005)(6916009)(8676002)(4326008)(107886003)(83380400001)(7636003)(55016002)(8936002)(70206006)(2616005)(70586007)(36756003)(356005)(7696005)(16526019)(186003)(26005)(508600001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Nov 2021 17:51:21.1418 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 165f52ce-c483-4080-9c48-08d99ef28bb9 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: BN8NAM11FT042.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB4943 Subject: [dpdk-dev] [PATCH v2 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: - Checkpatch validation - GPU CUDA driver docs Elena Agostini (1): gpu/cuda: introduce CUDA driver doc/guides/gpus/cuda.rst | 91 +++++ doc/guides/gpus/index.rst | 1 + drivers/gpu/cuda/cuda.c | 716 +++++++++++++++++++++++++++++++++++ drivers/gpu/cuda/meson.build | 30 ++ drivers/gpu/cuda/version.map | 3 + drivers/gpu/meson.build | 2 +- 6 files changed, 842 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