04-29-2019 12:10 PM
There is a bug - or at least an inconsistency in the 2018.3 setup.sh file located in /opt/xilinx/xrt directory and the Alveo user guide. This setup.sh file gets sourced when sdx is launched.
Table 1 in the Alveo Getting Started guide - UG1301, states "Minimum System Requirements" and shows the following:
Table 1: UG1301
The setup.sh file contains the following code. Note the "echo" statement in red below implies CentOS versions greater than 7.4 is acceptable, but the script fails for 7.5-1804:
DesignLinx servers are running 7.5-1804:
Since the script gets exited for an OS greater than 7.5 (flat), the XILINX_XRT environment variable also never gets set. If you already have the paths set correctly prior to launching SDAccel, it will launch but you will get subtle errors while running the tool without the XILINX_XRT variable being set.
Solution: You need to modify the setup.sh file to execute correctly. Or contact DesignLinx for a modified script until a Xilinx representative provides an official setup.sh file fix.
Note: Xilinx should also update the user guide documentation and the setup.sh file to be consistent.
04-29-2019 06:35 PM
From your description, OSREL equals something like "7.5****". Then it should not match the test '$OSREL != "7.5"*' . Note there's a "*" in the script.
What's your "OSDIST" and "OSREL" as flollowing script?
OSDIST=`lsb_release -i |awk -F: '{print tolower($2)}' | tr -d ' \t'`
OSREL=`lsb_release -r |awk -F: '{print tolower($2)}' |tr -d ' \t'`
if [[ $OSDIST == "ubuntu" ]]; then
if [[ $OSREL != "16.04" ]] && [[ $OSREL != "18.04" ]]; then
echo "ERROR: Ubuntu release version must be 16.04 or later"
return 1
fi
fi
if [[ $OSDIST == "centos" ]] || [[ $OSDIST == "redhat"* ]]; then
if [[ $OSREL != "7.4"* ]] && [[ $OSREL != "7.5"* ]]; then
echo "ERROR: Centos or RHEL release version must be 7.4 or later"
return 1
fi
fi
04-29-2019 06:35 PM
From your description, OSREL equals something like "7.5****". Then it should not match the test '$OSREL != "7.5"*' . Note there's a "*" in the script.
What's your "OSDIST" and "OSREL" as flollowing script?
OSDIST=`lsb_release -i |awk -F: '{print tolower($2)}' | tr -d ' \t'`
OSREL=`lsb_release -r |awk -F: '{print tolower($2)}' |tr -d ' \t'`
if [[ $OSDIST == "ubuntu" ]]; then
if [[ $OSREL != "16.04" ]] && [[ $OSREL != "18.04" ]]; then
echo "ERROR: Ubuntu release version must be 16.04 or later"
return 1
fi
fi
if [[ $OSDIST == "centos" ]] || [[ $OSDIST == "redhat"* ]]; then
if [[ $OSREL != "7.4"* ]] && [[ $OSREL != "7.5"* ]]; then
echo "ERROR: Centos or RHEL release version must be 7.4 or later"
return 1
fi
fi
04-30-2019 02:36 PM - edited 04-30-2019 02:38 PM
IT said installed 7.5 but turns out was 7.6