* [Nouveau] How to enable OpenCL device in Clover ?
@ 2023-10-08 2:09 Timothy Madden
0 siblings, 0 replies; 3+ messages in thread
From: Timothy Madden @ 2023-10-08 2:09 UTC (permalink / raw)
To: nouveau
Hello,
I can see from the mesamatrix page at:
https://mesamatrix.net/
that NVC0 should support OpenCL 1.2, without the optional image formats
and device partitioning.
But I have never seen and OpenCL device in Clover for my NVIDIA cards,
am I missing something ?
I have the following chips:
- Fermi GF117 (GeForce 710M)
- Kepler GK208B (GeForce GT 710)
- Turing TU102 (RTX 2080 Ti)
- Ampere GA102 (RTX 3090)
(of these, the GF117 chip actually falls in the NVC0 family according to
the web page for CodeNames: https://nouveau.freedesktop.org/CodeNames.html)
For my latest NVIDIA card (3090) I compiled mesa from git, with the
OpenCL frontend and spirV option set tot true, and I still get no OpenCL
device from Clover.
Do I need some specific hardware, and only that is supposed to work ? Do
I need some option I do not know about ?
--
Thank you,
Timothy Madden
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Nouveau] How to enable OpenCL device in Clover ?
@ 2023-10-23 17:54 Andrew Randrianasulu
2023-10-27 5:35 ` Timothy Maden
0 siblings, 1 reply; 3+ messages in thread
From: Andrew Randrianasulu @ 2023-10-23 17:54 UTC (permalink / raw)
To: nouveau
[-- Attachment #1: Type: text/plain, Size: 728 bytes --]
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!)
[-- Attachment #2: Type: text/html, Size: 1434 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [Nouveau] How to enable OpenCL device in Clover ?
2023-10-23 17:54 Andrew Randrianasulu
@ 2023-10-27 5:35 ` Timothy Maden
0 siblings, 0 replies; 3+ messages in thread
From: Timothy Maden @ 2023-10-27 5:35 UTC (permalink / raw)
To: 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: <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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-10-27 5:35 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-08 2:09 [Nouveau] How to enable OpenCL device in Clover ? Timothy Madden
-- strict thread matches above, loose matches on Subject: below --
2023-10-23 17:54 Andrew Randrianasulu
2023-10-27 5:35 ` Timothy Maden
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.