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 8C8ADA0C41; Wed, 17 Nov 2021 14:28:32 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 799CB40687; Wed, 17 Nov 2021 14:28:32 +0100 (CET) Received: from NAM04-MW2-obe.outbound.protection.outlook.com (mail-mw2nam08on2054.outbound.protection.outlook.com [40.107.101.54]) by mails.dpdk.org (Postfix) with ESMTP id 8AFF840040 for ; Wed, 17 Nov 2021 14:28:30 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OfchGwu+J0jiffJLs2LZsd4LS/tY9XWEF8UqZnja48IIAi19tfMwnBP1DAaAAzS3tEMdBiTbOChdm8Q+z/+8m4uVU4HuuiVlNQDhbHfg2NRDVbunV8rdeDYgZq/ZmHhYxyfkbuC1ufMjBnYoYIo7pasDEuLXgusg2G6ztWpokRUxpOFlMeu1wPYqKnfdcORXulsIliLepVb9s/pkcEPKofl1mpnnZA9mRCtOJv7RyiiP/x0NZ7oYqsfqk7XRbHDb/ockFMKX9TBtiA6O5qYc6CVvRyErvc2ezef8pe1P9fmR7W76K/x/z2tNLGpXNpMcr1TAuOlgC78ejRiEoP7Nxg== 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=JfZi4kKyeaJ/sp+N4iWh7S/Eo5b06vgbhkMB9SXuRqQ=; b=CgWb1JUdUBGjsqcF8EZc9AGFxsB65+8nrqqtQvCT+wa6McJb1cr19RmffFzVgK+sDfbGBRwfPB/qha9mU/o3T+G9V6rTknntoY2h4BXyd08qf4I7DwM9G911u1CZ6D4FKDA6Dg5MtRUXiMqDDjsU3yknUGhGDF2oAEd9n6jDpGFuK/U0wC1aIL+vJTYqoVdSHqT2Lq4C0a8XCE+ioVEBBOj8LzwP2npUNVZz7ClbCoGPZeNNyEhuc1PjnxxBymgYMPylujWoPsMmFG0pwGpAkWE8dvDDwXi74H1UN9kP6jXd/7+TlgeSKudjSVn18AC071DjVFO98Zq2SzRpeLhfng== 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=JfZi4kKyeaJ/sp+N4iWh7S/Eo5b06vgbhkMB9SXuRqQ=; b=c0ahdMGKcHdiO88BKK1uciiwVzA/6x2VtwBmDRttSz0Zdl2TsOpK5DfxWFPjhQj6LP/d4W6AOSxkhZ9CuP09w9YruwkV/md7ApUesfVZcBZaiQPFaZyTocUFsNDgSs44OksvYW5nprPgu1T7GxGpglfkogX9kwue2+lz0rxYzLmd5wnlhcbImvycnbXp/gl3fnY5uWZx5yotZJYykor3btxUI5w2ojQa7e/LL10WMJKXbBGAb+EDqBpqvm3kDAvnfSDmYX7j+2I3xzuAdmTFNTL/ecJw6C9vq6/AsOZbtm/Jb9QDJr7JfV7pXVJm4pmpCnxHx8yODwLIBKbJaeLWJw== Received: from BN9PR03CA0975.namprd03.prod.outlook.com (2603:10b6:408:109::20) by BYAPR12MB4742.namprd12.prod.outlook.com (2603:10b6:a03:9f::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4690.27; Wed, 17 Nov 2021 13:28:28 +0000 Received: from BN8NAM11FT038.eop-nam11.prod.protection.outlook.com (2603:10b6:408:109:cafe::2d) by BN9PR03CA0975.outlook.office365.com (2603:10b6:408:109::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4713.19 via Frontend Transport; Wed, 17 Nov 2021 13:28:28 +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 BN8NAM11FT038.mail.protection.outlook.com (10.13.176.246) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4690.15 via Frontend Transport; Wed, 17 Nov 2021 13:28:27 +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, 17 Nov 2021 13:28:27 +0000 From: To: CC: Elena Agostini Subject: [PATCH v2] build: make gpudev optional Date: Wed, 17 Nov 2021 21:39:01 +0000 Message-ID: <20211117213901.26021-1-eagostini@nvidia.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20211117203351.6087-1-eagostini@nvidia.com> References: <20211117203351.6087-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: d9649ef1-9680-4717-f03b-08d9a9ce23ed X-MS-TrafficTypeDiagnostic: BYAPR12MB4742: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6430; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: byu+fnadtnbVZqLopGU8DSyfMV56AxeQxozHK+QuhgmV+xkaIq2+oCnyeV7sezP06tJVI2ADBMD5jU+6sQ62Q5+kIGHyz/KJ9NJ94mEXq0SwrkOdG2vgCzjeyRkPYtQ8SNVZkDmi1rVdLOXfLydAqpcmKcTYSRILZPDYOhQZ5LyfXj5AhDVZImE+/4xOdXtFjhwVzmr7+s7OWkHvr+82iFWghXf+xhW1Yj0OqZHNLAna57aW1Tt4j/B4ht/+g/vhuo7b6ahYpdiQkfxee3R/vUiCzeOprD5pETqM0wEC0iLIK9uD9XAYhmfPdKpZVpxLSsZDbgIjfS45lD7iXcmAaqyqK5X8StK9/CdidrIimbUISimQpqYWD2T8fgEQ83ziGg9LxsNPkOD4Nv24d0Z0yWUxogjFmw3KWV2h2uIQ2hZhUrOW/fQczUmIUcSrP0pPcZWdkH4iRfzqwZsmawmmF3d8g+VL//9ym85x9abVKPQe6N6RI4DprT1TdCoIFQWi73cZnMUx475nPusFYOQ3TosTMu8IvHnaRAohtJbRztnPO/86oBT03101p0sYBSVWCbmwbX1Gu+iG0HWYXsiJDz8q8cM4oF9NVeDbJACyQ0UpFTeEaOymp3M8pu9+1Vv1IAdIG6JUacmKsHRhBDG+albzj+L8tLOEhoATiyZdCCoEOXcqu9R/jdfes2g/8LMCPkZLcHanTq9VEeuTeyzZdg== 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)(4326008)(7636003)(2906002)(82310400003)(508600001)(36756003)(7696005)(1076003)(70206006)(2616005)(336012)(426003)(36860700001)(8936002)(2876002)(6916009)(5660300002)(55016002)(316002)(6286002)(16526019)(83380400001)(6666004)(26005)(186003)(47076005)(356005)(70586007)(107886003)(36906005)(8676002)(86362001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Nov 2021 13:28:27.8980 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d9649ef1-9680-4717-f03b-08d9a9ce23ed 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: BN8NAM11FT038.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR12MB4742 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 library can be made optional. drivers/gpu and app/test-gpudev depend on this library, so there is a check for dependencies. Signed-off-by: Elena Agostini --- app/test-gpudev/meson.build | 1 + doc/guides/prog_guide/gpudev.rst | 1 + drivers/gpu/meson.build | 1 + lib/meson.build | 1 + 4 files changed, 4 insertions(+) diff --git a/app/test-gpudev/meson.build b/app/test-gpudev/meson.build index 17bdef3646..02286d3a6a 100644 --- a/app/test-gpudev/meson.build +++ b/app/test-gpudev/meson.build @@ -3,3 +3,4 @@ sources = files('main.c') deps = ['gpudev', 'ethdev'] + diff --git a/doc/guides/prog_guide/gpudev.rst b/doc/guides/prog_guide/gpudev.rst index e464109d35..8970c43865 100644 --- a/doc/guides/prog_guide/gpudev.rst +++ b/doc/guides/prog_guide/gpudev.rst @@ -23,6 +23,7 @@ Out of scope of this library is to provide a wrapper for GPU specific libraries on the device or create GPU specific objects (e.g. CUDA Driver context or CUDA Streams in case of NVIDIA GPUs). +This library is set as optional and can be disabled with ``-Ddisable_libs=gpudev``. Features -------- diff --git a/drivers/gpu/meson.build b/drivers/gpu/meson.build index 601bedcd61..1e68a7746d 100644 --- a/drivers/gpu/meson.build +++ b/drivers/gpu/meson.build @@ -2,3 +2,4 @@ # Copyright (c) 2021 NVIDIA Corporation & Affiliates drivers = [ 'cuda' ] + diff --git a/lib/meson.build b/lib/meson.build index dad9fce14d..018976df17 100644 --- a/lib/meson.build +++ b/lib/meson.build @@ -67,6 +67,7 @@ libraries = [ optional_libs = [ 'bitratestats', + 'gpudev', 'gro', 'gso', 'kni', -- 2.17.1