NAME
Algorithm::Classifier::IsolationForest::App::Command::accel - Report which (if any) native acceleration backend is active
DESCRIPTION
Fits and scores a tiny synthetic dataset in both axis and extended mode, then reports which of Inline::C, OpenMP and SIMD are actually wired up. Both modes are exercised on purpose: the oblique split is the only path the SIMD reduction affects, so an axis-only probe would not prove it.
Fitting and scoring, rather than merely checking that the backend compiled, is what makes this a usable answer to "did this build pick up the optional dependencies on this machine?".
Run it as iforest accel; iforest help accel lists every option.
METHODS
App::Cmd calls these while dispatching the subcommand. Nothing else should.
opt_spec
Returns this command's option specifications, as the list of arrayrefs Getopt::Long::Descriptive expects.
abstract
Returns the one-line summary iforest commands prints beside the command name.
description
Returns the long help text iforest help accel prints under the option list.
validate
Checks the parsed options before anything is read or written, so a mistake costs nothing.
accel takes no options, so there is nothing to check.
Takes the parsed options hashref and the arrayref of remaining arguments. Calls usage_error, which prints the usage and exits, on the first problem it finds, and returns 1 when everything checks out.
execute
Runs the probe fits and prints the backend report, including the build flags baked into the object, to STDOUT.
Takes the parsed options hashref and the arrayref of remaining arguments, and returns 1.