signum-node icon indicating copy to clipboard operation
signum-node copied to clipboard

error shutting down a node - NoSuchFileException: genscoop.cl

Open josergc opened this issue 1 year ago • 6 comments

node v3.8.0 using H2. From the log I only could get these last lines, the rest is at the screenshot

[INFO] 2024-01-29 13:55:55 brs.db.sql.Db - H2 defragmentation started, this can take a while
[INFO] 2024-01-29 13:59:19 brs.db.sql.Db - Database shutdown completed.
[INFO] 2024-01-29 13:59:20 brs.OCLPoC - Platform 0: AMD Accelerated Parallel Processing
[INFO] 2024-01-29 13:59:20 brs.OCLPoC - Choosing Platform 0 - DeviceId: 0

image

josergc avatar Jan 29 '24 07:01 josergc

Im surprised this wasn't noticed sooner, as i cant remember that file being around for a long time...

Anyways file appears to have been deleted at some point. Two temporary fixes available:

  1. Turn off gpu acceleration
  2. Download the file from the old burstcoin repo and put it next to the signum-node.jar (I'm guessing on location) https://github.com/PoC-Consortium/burstcoin/blob/afb45c48715722563d4e689a2f6fc4645bf5ece7/genscoop.cl

** if you attempt the second option and it works please report back so it can eliminate possible guessing **

gittrekt avatar Jan 29 '24 08:01 gittrekt

it is because most people does not seem to use GPU acceleration...

ohager avatar Jan 29 '24 10:01 ohager

Some while ago I noticed the file was not present and got it from a previous release. But from my tests, at that time, the sync speed was not affected by using the gpu accelerated code, neither the card had any significant amount of usage, so I assumed the node code for sync (and database insertion) was much more impacting than the scoop checks. Is it worth having the OpenCL option?

deleterium avatar Jan 29 '24 12:01 deleterium

With current network speed it's not really needed, maybe in the future. I wouldn't personally want to see it removed from code right now, but maybe just add a notice it's not implemented and a skip?

gittrekt avatar Jan 29 '24 14:01 gittrekt

Some while ago I noticed the file was not present and got it from a previous release. But from my tests, at that time, the sync speed was not affected by using the gpu accelerated code, neither the card had any significant amount of usage, so I assumed the node code for sync (and database insertion) was much more impacting than the scoop checks. Is it worth having the OpenCL option?

If it has no positive impact on the sync process we could rip it off. From my recent researches and works on Version 3.8 I figured out that the bottleneck is not so much the processing power but foremost database access. This is why H2 is significantly faster on sync than PG and MariaDB.

ohager avatar Jan 29 '24 15:01 ohager

with the new release 3.8.1 we figured out that now generate_scoop may take a significant amount of time while syncing... But as @deleterium said: If there's no real performance gain we really should ask, if it is worth having GPU support

ohager avatar May 05 '24 20:05 ohager