Forum Discussion
jliu32
New Contributor
7 years agoAfter experimenting with the environment variables for a while, I finally solved the issue.
Previously, I set some of the OpenCL SDK environment variables using relative path:
export INTELFPGAVERSION=17.1
export INTELFPGAOCLSDKROOT=/opt/intelFPGA_pro/$INTELFPGAVERSION/hld
export ALTERAOCLSDKROOT=$INTELFPGAOCLSDKROOT
export QUARTUS_ROOTDIR_OVERRIDE=$INTELFPGAOCLSDKROOT/../quartus
export QUARTUS_ROOTDIR=$QUARTUS_ROOTDIR_OVERRIDE
export QSYS_ROOTDIR=$INTELFPGAOCLSDKROOT/../qsys
export SOPC_KIT_NIOS2=$INTELFPGAOCLSDKROOT/../nios2eds
export PATH=$PATH:$INTELFPGAOCLSDKROOT/bin:$INTELFPGAOCLSDKROOT/linux64/bin:$INTELFPGAOCLSDKROOT/host/linux64/bin:$QUARTUS_ROOTDIR_OVERRIDE/bin:$QSYS_ROOTDIR/binApparently the relative paths (e.g. /../) eventually caused Quartus to incorrectly assume that the device family was Stratix instead of Arria when elaborating the components inside the kernenl . Everything worked after I changed all the environment varible to absolute path:
export INTELFPGAVERSION=17.1
export INTELFPGAOCLSDKROOT=/opt/intelFPGA_pro/$INTELFPGAVERSION/hld
export ALTERAOCLSDKROOT=$INTELFPGAOCLSDKROOT
export QUARTUS_ROOTDIR_OVERRIDE=/opt/intelFPGA_pro/$INTELFPGAVERSION/quartus
export QUARTUS_ROOTDIR=$QUARTUS_ROOTDIR_OVERRIDE
export QSYS_ROOTDIR=/opt/intelFPGA_pro/$INTELFPGAVERSION/qsys
export SOPC_KIT_NIOS2=/opt/intelFPGA_pro/$INTELFPGAVERSION/nios2eds
export PATH=$PATH:$INTELFPGAOCLSDKROOT/bin:$INTELFPGAOCLSDKROOT/linux64/bin:$INTELFPGAOCLSDKROOT/host/linux64/bin:$QUARTUS_ROOTDIR_OVERRIDE/bin:$QSYS_ROOTDIR/bin