-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use recorded tape to impl task copying (#93)
* use recorded tape to impl task copying * remove dup converter * remove Libtask_jll in test CI script * exception of task is not set in Julia prior v1.5 * lazy mode produce * close consume channel when task is done * try to fix integration tests * check task status * code refactor * support `produce` in nested call * add docs * switch back to the old `produce` impl * construct TapedTask from another TapedTask * integration tests against certain branch * Update Project.toml Co-authored-by: Hong Ge <[email protected]>
- Loading branch information
Showing
43 changed files
with
567 additions
and
1,572 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,19 @@ | ||
module Libtask | ||
|
||
using Libdl | ||
using Libtask_jll | ||
using IRTools | ||
using MacroTools | ||
|
||
export CTask, consume, produce, TArray, tzeros, tfill, TRef | ||
export CTask, consume, produce | ||
export TArray, tzeros, tfill, TRef | ||
|
||
function __init__() | ||
@static if VERSION < v"1.6.0" | ||
push!(Libdl.DL_LOAD_PATH, | ||
Libtask_jll.get_libtask_julia_path() |> dirname) | ||
Libdl.dlopen(Libtask_jll.libtask_julia_path) | ||
end | ||
end | ||
export TapedTask | ||
|
||
include("tapedfunction.jl") | ||
include("tapedtask.jl") | ||
|
||
include("memlayout/main.jl") | ||
include("ctask.jl") | ||
include("tarray.jl") | ||
include("tref.jl") | ||
|
||
CTask = TapedTask | ||
|
||
end |
Oops, something went wrong.
af47df9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JuliaRegistrator register
af47df9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Registration pull request created: JuliaRegistries/General/50401
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via: