Skip to content

Commit 130779c

Browse files
authored
Update to CompilerCaching v0.2. (#119)
1 parent 3b27324 commit 130779c

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ DLFP8TypesExt = "DLFP8Types"
2525
BFloat16s = "0.6"
2626
CUDA_Compiler_jll = "0.4"
2727
CUDA_Tile_jll = "13.1"
28-
CompilerCaching = "0.1.2"
28+
CompilerCaching = "0.2"
2929
IRStructurizer = "0.1"
3030
julia = "1.11"

src/compiler/codegen/kernel.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -287,9 +287,9 @@ function emit_subprogram!(ctx::CGCtx, func, arg_types::Vector,
287287
argtuple = Tuple{arg_types...}
288288
world = ctx.cache.world
289289
mi = @something(
290-
method_instance(func, argtuple;
291-
world, method_table=cuTileMethodTable),
292-
method_instance(func, argtuple; world),
290+
match_method_instance(func, argtuple;
291+
world, method_table=cuTileMethodTable),
292+
match_method_instance(func, argtuple; world),
293293
error("No method found for $func($(join(arg_types, ", ")))")
294294
)
295295

src/compiler/interface.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
export code_tiled, @device_code_tiled
99

1010
import CompilerCaching
11-
using CompilerCaching: CacheView, @setup_caching, method_instance, typeinf!, results, get_source
11+
using CompilerCaching: CacheView, @setup_caching, method_instance, match_method_instance, typeinf!, results, get_source
1212

1313
# Compilation hook for @device_code_* macros - intercepts compilations for reflection
1414
const compile_hook = Ref{Union{Nothing,Function}}(nothing)
@@ -517,8 +517,8 @@ function code_tiled(io::IO, @nospecialize(f), @nospecialize(argtypes);
517517
if !Base.isdispatchtuple(tt)
518518
throw(ArgumentError("code_tiled requires a dispatch tuple, got non-concrete signature"))
519519
end
520-
mi = @something(method_instance(f, stripped; world, method_table=cuTileMethodTable),
521-
method_instance(f, stripped; world),
520+
mi = @something(match_method_instance(f, stripped; world, method_table=cuTileMethodTable),
521+
match_method_instance(f, stripped; world),
522522
throw(MethodError(f, stripped)))
523523
opts = (sm_arch=sm_arch, opt_level=opt_level, num_ctas=num_ctas, occupancy=occupancy,
524524
bytecode_version=bytecode_version)

0 commit comments

Comments
 (0)