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
|
|
|
|
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-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
|
|
|
|
_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
|