Skip to content

Commit ec9867a

Browse files
author
KDr2
committed
use recorded tape to impl task copying
1 parent 7c404c4 commit ec9867a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+503
-1564
lines changed

.github/workflows/MemLayoutGen.yaml

Lines changed: 0 additions & 42 deletions
This file was deleted.

.github/workflows/tasklayout/memlayout.cpp

Lines changed: 0 additions & 138 deletions
This file was deleted.

.github/workflows/tasklayout/memlayout.jl

Lines changed: 0 additions & 32 deletions
This file was deleted.

Project.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,12 @@ repo = "https://github.com/TuringLang/Libtask.jl.git"
66
version = "0.5.3"
77

88
[deps]
9-
Libdl = "8f399da3-3557-5675-b5ff-fb832c97cbdb"
10-
Libtask_jll = "3ae2931a-708c-5973-9c38-ccf7496fb450"
9+
IRTools = "7869d1d1-7146-5819-86e3-90919afe41df"
1110
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
11+
MacroTools = "1914dd2f-81c6-5fcd-8719-6d5c9610ff09"
1212
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
1313

1414
[compat]
15-
Libtask_jll = "0.5.1"
1615
julia = "1.3"
1716

1817
[extras]

src/Libtask.jl

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,19 @@
11
module Libtask
22

3-
using Libdl
4-
using Libtask_jll
3+
using IRTools
4+
using MacroTools
55

6-
export CTask, consume, produce, TArray, tzeros, tfill, TRef
6+
export CTask, consume, produce
7+
export TArray, tzeros, tfill, TRef
78

8-
function __init__()
9-
@static if VERSION < v"1.6.0"
10-
push!(Libdl.DL_LOAD_PATH,
11-
Libtask_jll.get_libtask_julia_path() |> dirname)
12-
Libdl.dlopen(Libtask_jll.libtask_julia_path)
13-
end
14-
end
9+
export TapedTask
10+
11+
include("tapedfunction.jl")
12+
include("tapedtask.jl")
1513

16-
include("memlayout/main.jl")
17-
include("ctask.jl")
1814
include("tarray.jl")
1915
include("tref.jl")
2016

17+
CTask = TapedTask
18+
2119
end

0 commit comments

Comments
 (0)