Force auc.cc to be statically linked (#8039)
This commit is contained in:
parent
e88d6e071d
commit
2407381c3d
@ -25,6 +25,8 @@
|
||||
|
||||
namespace xgboost {
|
||||
namespace metric {
|
||||
// tag the this file, used by force static link later.
|
||||
DMLC_REGISTRY_FILE_TAG(auc);
|
||||
/**
|
||||
* Calculate AUC for binary classification problem. This function does not normalize the
|
||||
* AUC by 1 / (num_positive * num_negative), instead it returns a tuple for caller to
|
||||
|
||||
@ -78,6 +78,7 @@ DMLC_REGISTRY_ENABLE(::xgboost::MetricGPUReg);
|
||||
namespace xgboost {
|
||||
namespace metric {
|
||||
// List of files that will be force linked in static links.
|
||||
DMLC_REGISTRY_LINK_TAG(auc);
|
||||
DMLC_REGISTRY_LINK_TAG(elementwise_metric);
|
||||
DMLC_REGISTRY_LINK_TAG(multiclass_metric);
|
||||
DMLC_REGISTRY_LINK_TAG(survival_metric);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user