From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E5EE6C25B48 for ; Fri, 27 Oct 2023 05:35:14 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 64BA010E921; Fri, 27 Oct 2023 05:35:14 +0000 (UTC) Received: from ciao.gmane.io (ciao.gmane.io [116.202.254.214]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6091B10E921 for ; Fri, 27 Oct 2023 05:35:12 +0000 (UTC) Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1qwFV0-0007EP-3b for nouveau@lists.freedesktop.org; Fri, 27 Oct 2023 07:35:10 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: nouveau@lists.freedesktop.org From: Timothy Maden Date: Fri, 27 Oct 2023 08:35:05 +0300 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit User-Agent: Mozilla Thunderbird Content-Language: en-US In-Reply-To: Subject: Re: [Nouveau] How to enable OpenCL device in Clover ? X-BeenThere: nouveau@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Nouveau development list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: nouveau-bounces@lists.freedesktop.org Sender: "Nouveau" On 10/23/23 20:54, Andrew Randrianasulu wrote: > I think you can use > NOUVEAU_ENABLE_CL=1 clpeak for example > > it skips memory-hungry bandwidth test but then runs partially: > > Platform: Clover >   Device: NV106 >     Driver version  : 23.3.0-devel (Linux x86) >     Compute units   : 1 >     Clock frequency : 512 MHz > SPIR-V WARNING: >     In file ../src/compiler/spirv/spirv_to_nir.c:4681 >     Unsupported SPIR-V capability: SpvCapabilityLinkage (5) >     28 bytes into the SPIR-V binary > >     Global memory bandwidth (GBPS) >       float   : nve4_launch_grid:905 - Failed to launch grid ! > > [..] > > Single-precision compute (GFLOPS) >       float   : 80.74 >       float2  : 41.38 >       float4  : 50.49 >       float8  : 51.32 >       float16 : 53.58 > > on unreclocked NVIDIA GK208B (2gb ddr3 memory - ha!) Oh, thank you ! Maybe this variable should be documented, like for example the new variable I_WANT_A_BROKEN_VULKAN_DRIVER is documented. I have a GK208B chip, that I replaced with a GA102. When I try to use the OpenCL device I get the following error on GA102: Build Log: :1:10: fatal error: 'opencl-c.h' file not found this happens with both Mesa 23.2.1 and latest Mesa 24.0.0-devel from git. The missing header in the message is found in clang-libs package on Fedora for example, and if I add the needed -I flag to clBuildProgram(), the error goes away. So it looks like a missing include directory inside Clover ... ? Unfortunately I can not add the missing -I flag to OpenCL compiler when using clpeak or LuxMark ... without recompiling. Is there an environment variable or some other way ? -- Thank you, Timothy Madden