Skip to content

Commit

Permalink
Fix noinline attribute on test function.
Browse files Browse the repository at this point in the history
  • Loading branch information
maleadt committed Nov 19, 2020
1 parent 28f7ba9 commit ebfaa58
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/execution.jl
Original file line number Diff line number Diff line change
Expand Up @@ -183,10 +183,8 @@ end


@testset "scalar through single-value array, using device function" begin
function child(a, i)
return a[i]
end
@noinline function parent(a, x)
@noinline child(a, i) = a[i]
function parent(a, x)
i = get_global_id(0)
max = get_global_size(0)
if i == max
Expand Down

0 comments on commit ebfaa58

Please sign in to comment.