2022-03-09 02:25:39 +01:00
|
|
|
ifeq ($(strip $(ISA)), SSE)
|
2022-03-15 02:40:56 +01:00
|
|
|
_VECTOR_WIDTH=2
|
2022-03-09 02:25:39 +01:00
|
|
|
else ifeq ($(strip $(ISA)), AVX)
|
|
|
|
# Vector width is 4 but AVX2 instruction set is not supported
|
2022-11-08 15:30:37 +01:00
|
|
|
NO_AVX2=true
|
2022-03-15 02:40:56 +01:00
|
|
|
_VECTOR_WIDTH=4
|
2022-03-09 02:25:39 +01:00
|
|
|
else ifeq ($(strip $(ISA)), AVX2)
|
2022-08-16 18:36:47 +02:00
|
|
|
#SIMD_KERNEL_AVAILABLE=true
|
2022-03-15 02:40:56 +01:00
|
|
|
_VECTOR_WIDTH=4
|
2022-03-09 02:25:39 +01:00
|
|
|
else ifeq ($(strip $(ISA)), AVX512)
|
2022-03-15 02:40:56 +01:00
|
|
|
AVX512=true
|
2022-08-16 18:36:47 +02:00
|
|
|
SIMD_KERNEL_AVAILABLE=true
|
2022-03-15 02:40:56 +01:00
|
|
|
_VECTOR_WIDTH=8
|
2022-03-09 02:25:39 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(strip $(DATA_TYPE)), SP)
|
2022-03-15 02:40:56 +01:00
|
|
|
VECTOR_WIDTH=$(shell echo $$(( $(_VECTOR_WIDTH) * 2 )))
|
|
|
|
else
|
|
|
|
VECTOR_WIDTH=$(_VECTOR_WIDTH)
|
2022-03-09 02:25:39 +01:00
|
|
|
endif
|