Core 0x22 is unable to detect OpenCL device (bad work unit)

If you think it might be a driver problem, see viewforum.php?f=79

Moderators: Site Moderators, FAHC Science Team

calxalot
Site Moderator
Posts: 1405
Joined: Sat Dec 08, 2007 1:33 am
Location: San Francisco, CA
Contact:

Re: Core 0x22 is unable to detect OpenCL device (bad work unit)

Post by calxalot »

libfah is private source because it has confidential stuff in it. Possibly the private key used to sign cores.

I think the core wrappers are private because they use libfah and developer doesn’t have time to audit them.
arisu
Posts: 176
Joined: Mon Feb 24, 2025 11:11 pm

Re: Core 0x22 is unable to detect OpenCL device (bad work unit)

Post by arisu »

I assumed libfah just had some sort of proprietary anti-cheat sanity checks. I hope it doesn't have the private key in it. If libfah is statically included inside core then that means that the private key could be pulled out from the binaries.

Anyway I will keep working on core22 to see if there is a relatively simple fix.
calxalot
Site Moderator
Posts: 1405
Joined: Sat Dec 08, 2007 1:33 am
Location: San Francisco, CA
Contact:

Re: Core 0x22 is unable to detect OpenCL device (bad work unit)

Post by calxalot »

libfah is also used by private tools.
I don’t expect crypto keys get compiled into cores.

To be clear, confidential stuff may be in the repository, not the compiled lib.
calxalot
Site Moderator
Posts: 1405
Joined: Sat Dec 08, 2007 1:33 am
Location: San Francisco, CA
Contact:

Re: Core 0x22 is unable to detect OpenCL device (bad work unit)

Post by calxalot »

If you become aware of any security issues, please report it to email on page
https://foldingathome.org/contact-us/

Please do not announce publicly here or on github.
arisu
Posts: 176
Joined: Mon Feb 24, 2025 11:11 pm

Re: Core 0x22 is unable to detect OpenCL device (bad work unit)

Post by arisu »

Of course! I didn't mean to suggest that I know of any security issues.

Back to the core22 issue, what exactly is it about newer glibc that is causing it to be unable to find the GPU resource? Is it even known?
calxalot
Site Moderator
Posts: 1405
Joined: Sat Dec 08, 2007 1:33 am
Location: San Francisco, CA
Contact:

Re: Core 0x22 is unable to detect OpenCL device (bad work unit)

Post by calxalot »

I believe they are unrelated issues.
A version mismatch with the expected glibc causes the core to crash at launch.
arisu
Posts: 176
Joined: Mon Feb 24, 2025 11:11 pm

Re: Core 0x22 is unable to detect OpenCL device (bad work unit)

Post by arisu »

It didn't crash like that when I tested it (using strace). It initialized OpenCL and found only two compute platforms (Reference and CPU) and not the third (OpenCL). So it exited and the client dumped the WU thinking that it was bad (even though it's the core that is "bad").

Unless that's what you mean by it crashing? But it isn't like it failed to execute or load libraries like would be expected for a symbol mismatch.
Post Reply