openmp_sys/
lib.rs

1//! NB: this crate won't enable OpenMP unless you also pass `-fopenmp`
2//! to the C compiler (e.g. `cc.flag("-fopenmp")` in cc-rs).
3//!
4//! This is solely for linking OpenMP-dependent C libraries with Rust code
5//! and you probably shouldn't use any of the functions listed here.
6
7pub mod ffi;
8
9#[test]
10fn it_works() {
11    unsafe {
12        assert!(ffi::omp_get_max_threads() > 0);
13    }
14}