-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Is the function "LGBM_BoosterPredictForMat" thread safe? #666
Comments
updated: it is always thread-safe since we use a lock here: https://github.com/Microsoft/LightGBM/blob/master/src/c_api.cpp#L168 |
I want to remove the lock, because I want to use predict with multi thread to speed up |
hi, have you remove lock and can get the right predict result? |
@ameyais it is thread-safe. |
@guolinke Is there a possible way to rewrite the predict function to make the prediction more faster?except delete this lock. |
@l616q refer to https://github.com/dmlc/treelite |
Is the function "LGBM_BoosterPredictForMat" in c_api thread safe ? If I call this function to predict with multi thread. Since Xgboost predict function is not thread safe
The text was updated successfully, but these errors were encountered: