Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Hiramdu opened this issue Nov 26, 2021 · 4 comments
Open

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

Hiramdu opened this issue Nov 26, 2021 · 4 comments

Comments

@Hiramdu
Copy link

Hiramdu commented Nov 26, 2021

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

@closest-git
Copy link
Owner

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.

@Hiramdu
Copy link
Author

Hiramdu commented Nov 29, 2021

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
Copy link
Author

Hiramdu commented Dec 22, 2021

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

@closest-git
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants