Skip to content

Commit 179bdce

Browse files
committed
Explicilty depend on HostCPUFeatures and CPUSummary, bump verion.
1 parent eeb83ce commit 179bdce

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

Project.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ version = "0.12.73"
55

66
[deps]
77
ArrayInterface = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9"
8+
CPUSummary = "2a0fbf3d-bb9c-48f3-b0a9-814d99fd7ab9"
89
CloseOpenIntervals = "fb6a15b2-703c-40df-9091-08a04967cfa9"
910
DocStringExtensions = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae"
11+
HostCPUFeatures = "3e5b6fbb-0976-4d2c-9146-d79de83f2fb0"
1012
IfElse = "615f187c-cbe4-4ef1-ba3b-2fcf58d6d173"
1113
LayoutPointers = "10f19ff3-798f-405d-979b-55457f8fc047"
1214
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
@@ -21,7 +23,10 @@ VectorizationBase = "3d5dd08c-fd9d-11e8-17fa-ed2836048c2f"
2123

2224
[compat]
2325
ArrayInterface = "3.1.32"
26+
CPUSummary = "0.1.3"
27+
CloseOpenIntervals = "0.1.2"
2428
DocStringExtensions = "0.8"
29+
HostCPUFeatures = "0.1.3"
2530
IfElse = "0.1"
2631
LayoutPointers = "0.1.2"
2732
OffsetArrays = "1.4.1"

src/LoopVectorization.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ module LoopVectorization
22

33
using Static: StaticInt, gt
44
using VectorizationBase, SLEEFPirates, UnPack, OffsetArrays
5-
using VectorizationBase: register_size, register_count, cache_linesize, cache_size, has_opmask_registers,
6-
mask, pick_vector_width, MM, AbstractMask, data, grouped_strided_pointer, AbstractSIMD,
5+
using VectorizationBase:
6+
mask, MM, AbstractMask, data, grouped_strided_pointer, AbstractSIMD,
77
vzero, offsetprecalc, lazymul,
88
vadd_nw, vadd_nsw, vadd_nuw, vsub_nw, vsub_nsw, vsub_nuw, vmul_nw, vmul_nsw, vmul_nuw,
99
vfmaddsub, vfmsubadd, vpermilps177, vmovsldup, vmovshdup,
@@ -21,10 +21,10 @@ using VectorizationBase: register_size, register_count, cache_linesize, cache_si
2121
contract_min, collapse_min,
2222
contract_and, collapse_and,
2323
contract_or, collapse_or,
24-
num_threads, num_cores,
2524
max_mask, maybestaticsize#,zero_mask
2625

27-
26+
using HostCPUFeatures: pick_vector_width, register_size, register_count, has_opmask_registers
27+
using CPUSummary: num_threads, num_cores, cache_linesize, cache_size
2828

2929
using LayoutPointers: stridedpointer_preserve, GroupedStridedPointers
3030

src/simdfunctionals/map.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ function vmap_multithread!(
193193
W, Wshift = VectorizationBase.pick_vector_width_shift(T)
194194
ptry, ptrargs, N = setup_vmap!(f, y, Val{NonTemporal}(), args...)
195195
# nt = min(Threads.nthreads(), VectorizationBase.SYS_CPU_THREADS, N >> (Wshift + 3))
196-
nt = min(Threads.nthreads(), VectorizationBase.num_cores(), N >> (Wshift + 5))
196+
nt = min(Threads.nthreads(), num_cores(), N >> (Wshift + 5))
197197

198198
# if !((nt > 1) && iszero(ccall(:jl_in_threaded_region, Cint, ())))
199199
if nt < 2

0 commit comments

Comments
 (0)