LiteMORT icon indicating copy to clipboard operation
LiteMORT copied to clipboard

Assertion `nThread>0 && nThread<32' failed

Open Hiramdu opened this issue 2 years ago • 4 comments

Hi, I have an error when I run your code: python: /home/cys/LiteMORT/src/tree/GBRT.cpp:32: Grusoft::GBRT::GBRT(Grusoft::FeatsOnFold*, Grusoft::FeatsOnFold*, double, Grusoft::BoostingForest::MODEL, int, int): Assertion `nThread>0 && nThread<32' failed. Aborted (core dumped) May you help check it? Screen Shot 2021-11-26 at 4 12 55 PM

Hiramdu avatar Nov 26 '21 21:11 Hiramdu

Sorry for this limit which makes sense on PC. More threads need more memory. It seems that your machine has many cores. You could reset 32 to the true number of cores on your machine or just comment out this line.

closest-git avatar Nov 27 '21 12:11 closest-git

Sorry for this limit which makes sense on PC. More threads need more memory. It seems that your machine has many cores. You could reset 32 to the true number of cores on your machine or just comment out this line.

Hi, seeing that the error, it points to /home/cys/LiteMORT/src/tree/GBRT.cpp. It should be the path where you did the experiment before. May I know how to change this path to my own directory?

Hiramdu avatar Nov 29 '21 19:11 Hiramdu

Hi, is there any comment to solve it? Thank you!

Hiramdu avatar Dec 22 '21 22:12 Hiramdu

Sorry for the late. This package does not specify or need any special directory (such like /home/cys). You could install or copy all codes to any other directory and recompile the project.

closest-git avatar Dec 23 '21 23:12 closest-git