flashlight
A C++ standalone library for machine learning.
Latest version: 0.3.2
Add to xmake.lua
add_requires("flashlight 0.3.2")Learn how to add and link packages with Xmake →
Information
- License
- MIT
- Recipe updated
- 2025-10-07T15:25:24.000Z
Platforms
- linux: x86_64
Options
all_libs- Build all flashlight libraries. · Type: boolean · Default: false
all_pkgs- Build all flashlight packages. · Type: boolean · Default: false
arrayfire- Build ArrayFire tensor backend. · Type: boolean · Default: true
backend- Backend with which to build flashlight. · Type: string · Default: cpu · Values: cpu, cuda, opencl
contrib- Build and link additional flashlight contrib assets. · Type: boolean · Default: true
core- Build flashlight core. · Type: boolean · Default: true
cublas- Use CUBLAS instead of MKL. · Type: boolean · Default: false
cuda- Use CUDA in flashlight libraries build. · Type: boolean · Default: true
distributed- Build and link a distributed backend with flashlight. · Type: boolean · Default: true
kenlm- Use KenLM in flashlight libraries build. · Type: boolean · Default: true
lib_audio- Build flashlight audio library. · Type: boolean
lib_common- Build flashlight common library. · Type: boolean
lib_sequence- Build flashlight sequence library. · Type: boolean
lib_set- Build flashlight set library. · Type: boolean
lib_text- Build flashlight text library. · Type: boolean
mkl- Use MKL in flashlight libraries build. · Type: boolean · Default: true
openblas- Use OpenBLAS instead of MKL. · Type: boolean · Default: false
pkg_runtime- Build flashlight runtime library. · Type: boolean
pkg_speech- Build flashlight speech library. · Type: boolean
pkg_text- Build flashlight text library. · Type: boolean
pkg_vision- Build flashlight vision library. · Type: boolean
profiling- Enable profiling with Flashlight. · Type: boolean · Default: false
Versions
- v0.3.2
Dependencies
Install with xrepo
Install the package independently of a project and inspect its available configuration.
install
xrepo install "flashlight 0.3.2"show info
xrepo info "flashlight"Link a library to your target
Declare the requirement, then attach the library to the target that uses it.
xmake.lua
add_requires("flashlight 0.3.2")
target("demo")
set_kind("binary")
add_files("src/*.cpp")
add_packages("flashlight")Open a package environment
Open a shell with the environment exported by this package. Use the executable names documented by the package.
enter shell
xrepo env -b "flashlight 0.3.2" shell