Skip to content
Snippets Groups Projects
Select Git revision
13 results Searching

Makefile

Blame
  • Makefile 18.29 KiB
    # All included makefiles refer to 
    # the official SDAccel GitHub repository / aws_2017.4 branch.
    # These are not modified at all. In case custom configuration is required, 
    # the corresponding vars of these makefiles are modified from here.
    COMMON_REPO := ../SDAccel_Examples
    
    # Common Includes
    include $(COMMON_REPO)/utility/boards.mk
    include $(COMMON_REPO)/libs/xcl2/xcl2.mk
    include $(COMMON_REPO)/libs/opencl/opencl.mk
    
    # Added to fix the unnecessarily required pointer 
    # to global memory in each kernel
    DUMMYGLOBPOINTER_FLAGS=
    
    ifeq ($(TARGETS), sw_emu)
    	DUMMYGLOBPOINTER_FLAGS=-DSW_EMU
    endif
    
    # Enable Kernels
    ENABLE_KERNELS = -DENABLE_KRNL_GA \
    		 -DENABLE_KRNL_CONFORM \
    		 -DENABLE_KRNL_INTERE \
    		 -DENABLE_KRNL_INTRAE \
    		 -DENABLE_KRNL_PRNG_BT_USHORT_FLOAT \
    		 -DENABLE_KRNL_PRNG_GG_UCHAR \
    		 -DENABLE_KRNL_PRNG_GG_FLOAT \
    		 -DENABLE_KRNL_IGL_ARBITER
    
    # Fixed-point
    # FIxed-POint COform flag (FIPOCO)
    FIXED_POINT_CONFORM=NO
    FIXED_POINT_INTERE=NO
    FIXED_POINT_INTRAE=NO
    
    ifeq ($(FIXED_POINT_CONFORM), YES) 
    	FIPOCO_FLAG=-DFIXED_POINT_CONFORM
    else	
    	FIPOCO_FLAG=
    endif
    
    ifeq ($(FIXED_POINT_INTERE), YES) 
    	FIPOIE_FLAG=-DFIXED_POINT_INTERE
    else
    	FIPOIE_FLAG=
    endif
    
    ifeq ($(FIXED_POINT_INTRAE), YES)
    	FIPOIA_FLAG=-DFIXED_POINT_INTRAE
    else	
    	FIPOIA_FLAG=
    endif
    
    FIPO_FLAG = $(FIPOCO_FLAG) \
    	    $(FIPOIE_FLAG) \
    	    $(FIPOIA_FLAG)
    
    # Other configs
    
    
    # Overall custom configs
    CONFIG_FLAG = $(FIPO_FLAG)
    
    CXXFLAGS:=-Wall -O0 -g -std=c++14 $(DUMMYGLOBPOINTER_FLAGS)
    
    # Host Application
    
    hostbin_SRCS=$(wildcard ./host/src/*.cpp) \
    		$(oclHelper_SRCS) \
    		$(xcl2_SRCS)