-
-
Notifications
You must be signed in to change notification settings - Fork 73
/
Copy pathDagger.jl
104 lines (85 loc) · 2.27 KB
/
Dagger.jl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
module Dagger
using Distributed, SharedArrays, Serialization
using MemPool
import Base: collect, adjoint, reduce
import Distributed: procs
using LinearAlgebra
import LinearAlgebra: transpose
using UUIDs
if !isdefined(Base, :with)
using ScopedValues
end
using Requires
using MacroTools
using TimespanLogging
include("lib/util.jl")
include("utils/dagdebug.jl")
# Distributed data
include("utils/locked-object.jl")
include("utils/tasks.jl")
include("options.jl")
include("processor.jl")
include("scopes.jl")
include("eager_thunk.jl")
include("queue.jl")
include("thunk.jl")
include("submission.jl")
include("chunks.jl")
# Task scheduling
include("compute.jl")
include("utils/clock.jl")
include("utils/system_uuid.jl")
include("utils/caching.jl")
include("sch/Sch.jl"); using .Sch
# Array computations
include("array/darray.jl")
include("array/alloc.jl")
include("array/map-reduce.jl")
# File IO
include("file-io.jl")
include("array/operators.jl")
include("array/getindex.jl")
include("array/setindex.jl")
include("array/matrix.jl")
include("array/sparse_partition.jl")
include("array/sort.jl")
# Other
include("ui/graph-core.jl")
include("ui/gantt-common.jl")
include("ui/gantt-text.jl")
# Logging
include("lib/logging-events.jl")
# Precompilation
using PrecompileTools
include("precompile.jl")
function __init__()
# Initialize system UUID
system_uuid()
@require Colors="5ae59095-9a9b-59fe-a467-6f913c188581" begin
include("ui/graph.jl")
@require Luxor="ae8d54c2-7ccd-5906-9d76-62fc9837b5bc" begin
# Gantt chart renderer
include("ui/gantt-luxor.jl")
end
@require Mux="a975b10e-0019-58db-a62f-e48ff68538c9" begin
# Gantt chart HTTP server
include("ui/gantt-mux.jl")
end
end
@require ProfileSVG="132c30aa-f267-4189-9183-c8a63c7e05e6" begin
# Profile renderer
include("ui/profile-profilesvg.jl")
end
@require FFMPEG="c87230d0-a227-11e9-1b43-d7ebe4e7570a" begin
@require FileIO="5789e2e9-d7fb-5bc7-8068-2c6fae9b9549" begin
# Video generator
include("ui/video.jl")
end
end
for tid in 1:Threads.nthreads()
add_processor_callback!("__cpu_thread_$(tid)__") do
ThreadProc(myid(), tid)
end
end
end
end # module