• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

JuliaLang / julia / #37830

06 Jul 2024 01:47AM UTC coverage: 87.488% (+0.9%) from 86.588%
#37830

push

local

web-flow
Matmul: `matprod_dest` for `Diagonal` * `SymTridiagonal` (#55039)

We specialize `matprod_dest` for the combination of a `Diagonal` and a
`SymTridiaognal`, in which case the destination is a `Tridiagonal`. With
this, the specialized methods `*(::Diagonal, ::SymTridiagonal)` and
`*(::SymTridiagonal, ::Diagonal)` don't need to be defined anymore,
which reduces potential method ambiguities.

6 of 6 new or added lines in 1 file covered. (100.0%)

25 existing lines in 5 files now uncovered.

77266 of 88316 relevant lines covered (87.49%)

16065015.45 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

68.42
/stdlib/CompilerSupportLibraries_jll/src/CompilerSupportLibraries_jll.jl
1
# This file is a part of Julia. License is MIT: https://julialang.org/license
2

3
## dummy stub for https://github.com/JuliaBinaryWrappers/CompilerSupportLibraries_jll.jl
4

5
baremodule CompilerSupportLibraries_jll
6
using Base, Libdl, Base.BinaryPlatforms
7

8
const PATH_list = String[]
9
const LIBPATH_list = String[]
10

11
export libgfortran, libstdcxx, libgomp
12

13
# These get calculated in __init__()
14
const PATH = Ref("")
15
const LIBPATH = Ref("")
16
artifact_dir::String = ""
17
libgcc_s_handle::Ptr{Cvoid} = C_NULL
18
libgcc_s_path::String = ""
19
libgfortran_handle::Ptr{Cvoid} = C_NULL
20
libgfortran_path::String = ""
21
libstdcxx_handle::Ptr{Cvoid} = C_NULL
22
libstdcxx_path::String = ""
23
libgomp_handle::Ptr{Cvoid} = C_NULL
24
libgomp_path::String = ""
25

26
if Sys.iswindows()
27
    if arch(HostPlatform()) == "x86_64"
28
        const libgcc_s = "libgcc_s_seh-1.dll"
29
    else
30
        const libgcc_s = "libgcc_s_sjlj-1.dll"
31
    end
32
    const libgfortran = string("libgfortran-", libgfortran_version(HostPlatform()).major, ".dll")
33
    const libstdcxx = "libstdc++-6.dll"
34
    const libgomp = "libgomp-1.dll"
35
    const libssp = "libssp-0.dll"
36
elseif Sys.isapple()
37
    if arch(HostPlatform()) == "aarch64" || libgfortran_version(HostPlatform()) == v"5"
38
        const libgcc_s = "@rpath/libgcc_s.1.1.dylib"
39
    else
40
        const libgcc_s = "@rpath/libgcc_s.1.dylib"
41
    end
42
    const libgfortran = string("@rpath/", "libgfortran.", libgfortran_version(HostPlatform()).major, ".dylib")
43
    const libstdcxx = "@rpath/libstdc++.6.dylib"
44
    const libgomp = "@rpath/libgomp.1.dylib"
45
    const libssp = "@rpath/libssp.0.dylib"
46
else
47
    const libgcc_s = "libgcc_s.so.1"
48
    const libgfortran = string("libgfortran.so.", libgfortran_version(HostPlatform()).major)
49
    const libstdcxx = "libstdc++.so.6"
50
    const libgomp = "libgomp.so.1"
51
    if libc(HostPlatform()) != "musl"
52
        const libssp = "libssp.so.0"
53
    end
54
end
55

56
function __init__()
2✔
57
    global libgcc_s_handle = dlopen(libgcc_s)
2✔
58
    global libgcc_s_path = dlpath(libgcc_s_handle)
2✔
59
    global libgfortran_handle = dlopen(libgfortran)
2✔
60
    global libgfortran_path = dlpath(libgfortran_handle)
2✔
61
    global libstdcxx_handle = dlopen(libstdcxx)
2✔
62
    global libstdcxx_path = dlpath(libstdcxx_handle)
2✔
63
    global libgomp_handle = dlopen(libgomp)
2✔
64
    global libgomp_path = dlpath(libgomp_handle)
2✔
65
    @static if libc(HostPlatform()) != "musl"
66
        dlopen(libssp; throw_error = false)
2✔
67
    end
68
    global artifact_dir = dirname(Sys.BINDIR)
2✔
69
    LIBPATH[] = dirname(libgcc_s_path)
2✔
70
    push!(LIBPATH_list, LIBPATH[])
2✔
71
end
72

73
# JLLWrappers API compatibility shims.  Note that not all of these will really make sense.
74
# For instance, `find_artifact_dir()` won't actually be the artifact directory, because
75
# there isn't one.  It instead returns the overall Julia prefix.
76
is_available() = true
×
UNCOV
77
find_artifact_dir() = artifact_dir
×
78
dev_jll() = error("stdlib JLLs cannot be dev'ed")
×
79
best_wrapper = nothing
80
get_libgfortran_path() = libgfortran_path
×
UNCOV
81
get_libstdcxx_path() = libstdcxx_path
×
UNCOV
82
get_libgomp_path() = libgomp_path
×
83

84
end  # module CompilerSupportLibraries_jll
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc