Skip to content

Commit

Permalink
Add a wrapper for omp_set_num_theads
Browse files Browse the repository at this point in the history
  • Loading branch information
amontoison committed Nov 13, 2023
1 parent 85b8c18 commit 53ab444
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Fortran/openmp.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
function omp_set_num_threads(num_threads)
@ccall libhsl.omp_set_num_threads_(num_threads::Ref{Cint})::Cvoid

Check warning on line 2 in src/Fortran/openmp.jl

View check run for this annotation

Codecov / codecov/patch

src/Fortran/openmp.jl#L1-L2

Added lines #L1 - L2 were not covered by tests
end
3 changes: 3 additions & 0 deletions src/wrappers.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
export LIBHSL_isfunctional

# Wrapper for OpenMP
include("Fortran/openmp.jl")

# Wrappers generated by Clang.jl from C headers of HSL packages
include("C/libhsl.jl")
include("C/hsl_ma48.jl")
Expand Down

0 comments on commit 53ab444

Please sign in to comment.