1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
|
USE_NEW_PROJECT_MK := 1
EXECUTABLE := warningstester
PROJ_DIR := internal/build
#GENCODE :=
ifndef PROFILE
ifdef VULCAN_TOOLKIT_BASE
include $(VULCAN_TOOLKIT_BASE)/build/getprofile.mk
include $(VULCAN_TOOLKIT_BASE)/build/config/$(PROFILE).mk
else
include $(ROOTDIR)/build/getprofile.mk
include $(ROOTDIR)/build/config/$(PROFILE).mk
endif
endif
ARCH_NEG_FILTER += 20 21
ifdef VULCAN_TOOLKIT_BASE
include $(VULCAN_TOOLKIT_BASE)/build/config/DetectOS.mk
else
include $(ROOTDIR)/build/config/DetectOS.mk
endif
CU_FILES += ../test/warningstester.cu
# Thrust includes
ifdef VULCAN
INCLUDES += $(VULCAN_INSTALL_DIR)/cuda/include
INCLUDES += $(VULCAN_INSTALL_DIR)/cuda/_internal/cudart
INCLUDES += $(VULCAN_TOOLKIT_BASE)/cub
else
INCLUDES += ../..
INCLUDES += ../../../cuda/tools/cudart
INCLUDES += ../../../cub
endif
# Location of generated include file that includes all Thrust public headers
GENERATED_SOURCES = $(BUILT_CWD)
CUDACC_FLAGS += -I$(GENERATED_SOURCES)
include $(ROOTDIR)/thrust/internal/build/common_compiler.mk
ifdef VULCAN_TOOLKIT_BASE
include $(VULCAN_TOOLKIT_BASE)/build/common.mk
else
include $(ROOTDIR)/build/common.mk
endif
warningstester$(OBJSUFFIX): $(GENERATED_SOURCES)/warningstester.h
$(GENERATED_SOURCES)/warningstester.h: FORCE
ifdef VULCAN
ifeq ($(TARGET_ARCH), ppc64le)
$(PYTHON) $(SRC_CWD)/warningstester_create_uber_header.py $(VULCAN_INSTALL_DIR)/cuda/targets/ppc64le-linux/include > $@
else
$(PYTHON) $(SRC_CWD)/warningstester_create_uber_header.py $(VULCAN_INSTALL_DIR)/cuda/include > $@
endif
else
$(PYTHON) $(SRC_CWD)/warningstester_create_uber_header.py $(SRC_CWD)/../.. > $@
endif
FORCE:
|