From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 36588489E8 for ; Mon, 22 Jan 2024 20:31:53 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 9F9D268C84E; Mon, 22 Jan 2024 22:31:50 +0200 (EET) Received: from mail-wr1-f47.google.com (mail-wr1-f47.google.com [209.85.221.47]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id A613768C338 for ; Mon, 22 Jan 2024 22:31:44 +0200 (EET) Received: by mail-wr1-f47.google.com with SMTP id ffacd0b85a97d-339289fead2so2795361f8f.3 for ; Mon, 22 Jan 2024 12:31:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jkqxz-net.20230601.gappssmtp.com; s=20230601; t=1705955504; x=1706560304; darn=ffmpeg.org; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=hVj5J01/4oVNpNDa6LJ7Fv1JZioDBiElp+EkPtV45fU=; b=j5DDPPELFDBEkzLgy1DjHeyIudIdUoHiqpbpGX4jVv4GwFRkhBckWdAQ9LTMo1CjUP zA1+vVzt8aHrQslMInwOJOfuj5tlLIG7B5FdOjhQSBPsAuhbAIjznmZI02e0av5iUO6S iw5j57G8eDPiwCoB5m0XVib4dhWP0TVbL0sxnsGORRodNvvH1edvpWsW/mf830O/rr3D WyTkpjZ7nBK4es+K+03B/S7mO20SsTpE2+7LZnt9nO9jhaZJUjGTEZ0wHTF0p3r3b8gf E5j4L/C3lUbGyK/WALfUIrg8UaCVr+/G10M54h81h7YhXudvd3zg1SAL2Xw8JrvlFbrc hzlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705955504; x=1706560304; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=hVj5J01/4oVNpNDa6LJ7Fv1JZioDBiElp+EkPtV45fU=; b=me7h1uzLjdkDziukPxtHO2tR7qzU+sP00At4sOWCurNUHZIHBLRWuVOmqQMtlwyRj6 yufXFKleTjHVn+8kZwzhpnZrc9tOchzX0C9Oy9bnHVGcZzCeTH3zp/zS49/P0/MThrS3 0BokiC7QE7j4btAkwZGsQdy/tNyBu6JQWdYSo+1IHfuAsryzzAAxxdm4CBR2MBdHnUfp A1w5dev4x+g0b+FcUJ6lROZgtWRrAxQS2nWceOFy8vfsyzDOGSlgkmcFsMfg9DL8/xVV Sg6hmAlaoSKI1CS9SOMakBquBWfob0gWeT2EF/1zarOr5DsDFb9rzncHztBvuvLkLvI5 zkaw== X-Gm-Message-State: AOJu0YyvBYjCnwhRbJipmnpndCiXfwIlZglACvxs9KUksSt8OXAMGbyh R5aAPlKd15eoFtIrCJ4qKZJlXhlP0kIh+l/6KK1emiv4DX5nn4eaUGFIdqHTk0sEgrAhDhH3U9j A X-Google-Smtp-Source: AGHT+IGvnOIi3gOKE9FUXtbUHMJDw11yeLyIWFKWHnytqla1ZjHesMSc7NWitxE6KxCUYiJru+th5A== X-Received: by 2002:a7b:c4d5:0:b0:40e:46d9:cb60 with SMTP id g21-20020a7bc4d5000000b0040e46d9cb60mr2477093wmk.62.1705955503657; Mon, 22 Jan 2024 12:31:43 -0800 (PST) Received: from [192.168.0.15] (cpc92302-cmbg19-2-0-cust1183.5-4.cable.virginm.net. [82.1.212.160]) by smtp.gmail.com with ESMTPSA id h5-20020a05600c350500b0040eac0721edsm5884382wmq.3.2024.01.22.12.31.43 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 22 Jan 2024 12:31:43 -0800 (PST) Message-ID: Date: Mon, 22 Jan 2024 20:32:12 +0000 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: ffmpeg-devel@ffmpeg.org References: <20240117073637.1352890-1-haihao.xiang@intel.com> From: Mark Thompson In-Reply-To: <20240117073637.1352890-1-haihao.xiang@intel.com> Subject: Re: [FFmpeg-devel] [PATCH] hwcontext_opencl: choose the first device if multiple devices are available X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: On 17/01/2024 07:36, Xiang, Haihao wrote: > From: Haihao Xiang > > This makes '-init_hw_device opencl' work in a multiple-device system. Under what circumstances is this more useful than the existing behaviour which prompts the user to select the device they intend? There is no particular ordering to devices, the first one is just random. Having your process fail with an opaque message (because the device picked lacks some operation) or run many times slower than expected (because the smallest device happened to be first in the list) or do something different on a machine which looks the same (because it has an extra driver for something else) rather than just saying up front that there are multiple devices and the user needs to pick seems worse to me, since it is much harder to see where the problem is. Thanks, - Mark _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".