 C++ in the CloudA Closer Lookhttps://www.linkedin.com/in/sakverma #include C++ in the CloudA Closer Lookhttps://www.linkedin.com/in/sakverma #include- #include <xgboost/c_api.h> ERL_NIF_TERM xgboost_build_info(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[]) { char out[1024]; function) static ErlNifFunc nif_funcs[] = { {"xgboost_build_info", 0 , xgboost_build_info} }; // Initialize the NIF module ERL_NIF_INIT(Elixir.XGBoost.NIF, nif_funcs, NULL, NULL, NULL, NULL)https://www defmodule XGBoost.NIF do @on_load :on_load # Load the NIF when the module starts def on_load do :erlang.load_nif("./libxgboost", 0) end # Elixir function that interfaces with the C++ NIF def xgboost_build_info 0 码力 | 14 页 | 609.86 KB | 6 月前3
共 1 条
- 1













