Learn R Programming

ggmlR (version 0.6.1)

ggml_set_n_threads: Set Number of Threads

Description

Set the number of threads for GGML operations

Usage

ggml_set_n_threads(n_threads)

Value

Number of threads set

Arguments

n_threads

Number of threads to use

Examples

Run this code
# \donttest{
# Use 4 threads
ggml_set_n_threads(4)

# Use all available cores
ggml_set_n_threads(parallel::detectCores())
# }

Run the code above in your browser using DataLab