Skip to content

Commit 693f6fc

Browse files
committed
get_cpu_name
1 parent 6da3643 commit 693f6fc

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "LoopVectorization"
22
uuid = "bdcacae8-1622-11e9-2a5c-532679323890"
33
authors = ["Chris Elrod <[email protected]>"]
4-
version = "0.12.138"
4+
version = "0.12.139"
55

66
[deps]
77
ArrayInterface = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9"
@@ -39,7 +39,7 @@ ChainRulesCore = "1"
3939
CloseOpenIntervals = "0.1.10"
4040
DocStringExtensions = "0.8, 0.9"
4141
ForwardDiff = "0.9, 0.10"
42-
HostCPUFeatures = "0.1.3"
42+
HostCPUFeatures = "0.1.10"
4343
IfElse = "0.1"
4444
LayoutPointers = "0.1.11"
4545
OffsetArrays = "1.4.1"

src/LoopVectorization.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ using VectorizationBase:
105105
maybestaticsize#,zero_mask
106106

107107
using HostCPUFeatures:
108-
pick_vector_width, register_size, register_count, has_opmask_registers, unwrap
108+
pick_vector_width, register_size, register_count, has_opmask_registers, unwrap, get_cpu_name
109109
using CPUSummary: num_threads, num_cores, cache_linesize, cache_size
110110

111111

src/codegen/lowering.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1039,7 +1039,7 @@ function calc_Ureduct!(ls::LoopSet, us::UnrollSpecification)
10391039
# rem = length(u₁loop) -
10401040
# max(1, cld(rem, u₁))
10411041
else
1042-
Core.ifelse(Sys.CPU_NAME === "znver1", 1, Core.ifelse(u₁ 4, 2, 1))
1042+
Core.ifelse(get_cpu_name() === "znver1", 1, Core.ifelse(u₁ 4, 2, 1))
10431043
end
10441044
else
10451045
-1

0 commit comments

Comments
 (0)