Commit 50222f81 authored by Yin Congmin's avatar Yin Congmin Committed by Tomasz Zawadzki
Browse files

configure: don't exit on non Intel platforms



In order to better promote DSA to users, it is recommended to change
the error message detected by non Intel CPUs to warning. One reason
is that SPDK compilation and execution may not be on the same server.
Another reason is that users may compile spdk when building Docker
images on different platforms. This error is not conducive to directly
compiling idxd into SPDK, then build container images. Since the user
has added “--with-idxd”, we should not block this configure and compile
process. Users need to successfully compile and run it on other
machines or containers on other machines. The check here is too strict.
Although DSA hardware is not available on non Intel platforms and some
lower versions of Intel CPUs, configuring it is code safe. Because the
order of running SPDK and sending instructions is after checking the
DSA hardware.

Change-Id: I378445449827663acad02552abb54cc737f167f0
Signed-off-by: default avatarYin Congmin <congmin.yin@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/24172


Reviewed-by: default avatarTomasz Zawadzki <tomasz.zawadzki@intel.com>
Community-CI: Mellanox Build Bot
Reviewed-by: default avatarChangpeng Liu <changpeng_liu@hotmail.com>
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
parent 78cbcfdd
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -738,8 +738,7 @@ if [[ "${CONFIG[IDXD]}" = "y" ]]; then
		cpu_vendor=$(grep -i 'vendor' /proc/cpuinfo --max-count=1)
	fi
	if [[ "$cpu_vendor" != *"$intel"* ]]; then
		echo "ERROR: IDXD cannot be used due to CPU incompatibility."
		exit 1
		echo "WARNING: IDXD cannot be used due to CPU incompatibility."
	fi
	if [ -e /usr/include/accel-config/libaccel_config.h ]; then
		CONFIG[IDXD_KERNEL]=y