cuml_fil_enabled: Determine whether Forest Inference Library (FIL)...

Description Usage Value Examples

Description

CuML Forest Inference Library (FIL) functionalities (see https://github.com/rapidsai/cuml/tree/main/python/cuml/fil#readme) will require Treelite C API. If you need FIL to run tree-based model ensemble on GPU, and fil_enabled() returns FALSE, then please consider installing Treelite and then re-installing cuml.

Usage

1

Value

A logical value indicating whether the Forest Inference Library (FIL) functionalities are enabled.

Examples

1
2
3
4
5
6
7
8
9
if (cuml_fil_enabled()) {
  # run GPU-accelerated Forest Inference Library (FIL) functionalities
} else {
  message(
    "FIL functionalities are disabled in the current installation of ",
    "{cuml}. Please reinstall Treelite C library first, and then re-install",
    " {cuml} to enable FIL."
  )
}

cuml documentation built on Sept. 21, 2021, 1:06 a.m.

Related to cuml_fil_enabled in cuml...