Skip to content

Commit 531dccd

Browse files
authored
Merge pull request #738 from wsmoses/rem
More robust error message on method compilation failure
2 parents 7576264 + 228aaa4 commit 531dccd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/jlgen.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ function ci_cache_populate(interp, cache, mi, min_world, max_world)
614614

615615
# inference should have populated our cache
616616
wvc = WorldView(cache, min_world, max_world)
617-
@assert CC.haskey(wvc, mi)
617+
@assert CC.haskey(wvc, mi) "GPUCompiler: Failed to compile method for $mi, between worlds $min_world and $max_world"
618618
ci = CC.getindex(wvc, mi)
619619

620620
# if ci is rettype_const, the inference result won't have been cached
@@ -629,7 +629,8 @@ function ci_cache_populate(interp, cache, mi, min_world, max_world)
629629

630630
# inference should have populated our cache
631631
wvc = WorldView(cache, min_world, max_world)
632-
@assert CC.haskey(wvc, mi)
632+
633+
@assert CC.haskey(wvc, mi) "GPUCompiler: Failed to compile method for $mi, between worlds $min_world and $max_world"
633634
ci = CC.getindex(wvc, mi)
634635

635636
# if ci is rettype_const, the inference result won't have been cached

0 commit comments

Comments
 (0)