Skip to content

Commit d3d688f

Browse files
author
Michael Abbott
committed
disable avx in min/max grad, correctly & visibly
1 parent e6d5151 commit d3d688f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/macro.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1073,14 +1073,14 @@ function make_many_actors(act!, args, ex1, outer::Vector, ex3, inner::Vector, ex
10731073
isempty(store.unsafeleft)
10741074
else # working on ∇act!
10751075
isempty(store.unsaferight)
1076-
store.redfun == :+ # Disable @avx for min/max grad, #53
10771076
end
10781077

10791078
if safe && store.avx != false && isdefined(store.mod, :LoopVectorization)
10801079
unroll = store.avx == true ? 0 : store.avx # unroll=0 is the default setting
10811080
info1 = store.verbose>0 ? :(@info "running LoopVectorization actor $($note)" maxlog=3 _id=$(hash(store))) : nothing
10821081
check1 = store.verbose>0 ? :(LoopVectorization.check_args($(store.arrays...)) || @error "rejected by LoopVectorization's check_args! $($note)" maxlog=3 _id=$(hash(store))) : nothing
10831082
try
1083+
act! == ACT! || store.redfun == :+ || throw("use of LoopVectorization for min/max gradients is disabled")
10841084
lex = if isnothing(exloopfinal)
10851085
quote
10861086

0 commit comments

Comments
 (0)