diff --git a/src/Fortran/openmp.jl b/src/Fortran/openmp.jl new file mode 100644 index 0000000..1529d74 --- /dev/null +++ b/src/Fortran/openmp.jl @@ -0,0 +1,3 @@ +function omp_set_num_threads(num_threads) + @ccall libhsl.omp_set_num_threads_(num_threads::Ref{Cint})::Cvoid +end diff --git a/src/wrappers.jl b/src/wrappers.jl index d429e86..689a59f 100644 --- a/src/wrappers.jl +++ b/src/wrappers.jl @@ -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")