Andrew Randrianasulu
2023-Oct-23 17:54 UTC
[Nouveau] How to enable OpenCL device in Clover ?
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!) -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/nouveau/attachments/20231023/f21200af/attachment.htm>
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: <built-in>: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