Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/compiler/driver.jl
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,12 @@ end

const TILE_CACHE_OWNER = :cuTile

inference_cache(world::UInt) = CacheView{JobResults}(TILE_CACHE_OWNER, world)
# Candidate compilations reuse the normal pipeline under a separate, stable owner.
# Only the final launch enters the normal cache and writes to the object cache.
const temporary_compilation = Base.ScopedValues.ScopedValue(false)

inference_cache(world::UInt) = CacheView{JobResults}(
temporary_compilation[] ? :cuTileAutotune : TILE_CACHE_OWNER, world)
inference_cache(job::TileJob) = inference_cache(job.world)

"""
Expand Down
2 changes: 2 additions & 0 deletions src/cuTile.jl
Original file line number Diff line number Diff line change
Expand Up @@ -137,4 +137,6 @@ end

include("precompile.jl")

include("experimental/Experimental.jl")

end # module cuTile
14 changes: 14 additions & 0 deletions src/experimental/Experimental.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
module Experimental

using ..cuTile
using ..cuTile: cuTileconvert, device_sm_arch, temporary_cufunction

using CUDACore: CUDACore

using Random

include("search_space.jl")
include("autotune.jl")
include("autotune_macro.jl")

end
Loading