Registry / build-tool / openmp-sys

openmp-sys

JSON →
library1.3.0rscratesunverified

Provides Rust bindings to link with OpenMP (libgomp) for parallel programming.

# Cargo.toml [dependencies] openmp-sys = "1.3.0"
INSTALL
IMPORT
SIG · OPENMP-SYS
O
openmp-sys
build-toolrustv1.3.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

omp_get_thread_num
use openmp_sys::omp_get_thread_num;

Gets the current OpenMP thread number.

use openmp_sys::omp_get_thread_num; fn main() { let thread_id = unsafe { omp_get_thread_num() }; println!("Thread ID: {}", thread_id); }
Debug
Known issues
gotchaRequires OpenMP runtime library (libgomp) to be installed on the system.
fix
Install libgomp via your package manager (e.g., apt install libomp-dev on Ubuntu).
affects: >=0.0.0
Upgrade
Version history
1.3.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
10
Amazon
1
OpenAI (training)
1
Resources
openmp-sys — cargo add openmp-sys · libregistry