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 21, 2023
1 parent 85b8c18 commit c4c4264
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
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 c4c4264

Please sign in to comment.