--- Quote Start ---
I think the test examples from DE1-SoC and DE5-Net are the same, just targeting different boards.
You can modify the examples from DE1-SoC manually to target DE5-Net. You should modify the makefile so that the host compiler is changed from arm-linux-gnueabihf-g++ to g++, and the target board is de5net_a7 instead of whatever it is right now.
--- Quote End ---
# This is a GNU Makefile.^M
# It can be used to compile an OpenCL program with^M
# the Altera Beta OpenCL Development Kit
# See README.txt for more information.^M
# You must configure ALTERAOCLSDKROOT to point the root directory of the Altera SDK for OpenCL^M
# software installation.
# See doc/getting_started.txt for more information on installing and^M
# configuring the Altera SDK for OpenCL.^M
# Creating a static library^M
TARGET = vector_add^M
# Where is the Altera SDK for OpenCL software?^M
ifeq ($(wildcard $(ALTERAOCLSDKROOT)),)^M
$(error Set ALTERAOCLSDKROOT to the root directory of the Altera SDK for OpenCL software installation)^M
endif^M
ifeq ($(wildcard $(ALTERAOCLSDKROOT)/host/include/CL/opencl.h),)^M
$(error Set ALTERAOCLSDKROOT to the root directory of the Altera SDK for OpenCL software installation.)^M
endif^M
# Libraries to use, objects to compile^M
SRCS = main.cpp^M
SRCS_FILES = $(foreach F, $(SRCS), host/src/$(F))^M
COMMON_FILES = ../common/src/AOCL_Utils.cpp^M
^M
# arm cross compiler^M
CROSS-COMPILE = arm-linux-gnueabihf-^M
^M
# OpenCL compile and link flags.^M
AOCL_COMPILE_CONFIG=$(shell aocl compile-config --arm) -I../common/inc
AOCL_LINK_CONFIG=$(shell aocl link-config --arm) ^M
^M
^M
# Make it all!^M
all : ^M
$(CROSS-COMPILE)g++ $(SRCS_FILES) $(COMMON_FILES) -o $(TARGET) $(AOCL_COMPILE_CONFIG) $(AOCL_LINK_CONFIG)^M
# Standard make targets^M
clean :^M
@rm -f *.o $(TARGET)^M
I changed the red section to g++ but it is not working. Should I delete Cross_compile ( green ) part ?
Thanks,