cb74d9528f
ECR #304775 - Merge cal.h, calcl.h and backend.h into backend.h and caltarget.h Affected files ... ... //depot/stg/opencl/drivers/opencl/compiler/lib/api/v0_8/build/Makefile.apiv08#15 edit ... //depot/stg/opencl/drivers/opencl/compiler/lib/backends/common/build/Makefile.common#32 edit ... //depot/stg/opencl/drivers/opencl/compiler/lib/backends/gpu/scwrapper/build/Makefile.scwrapper#29 edit ... //depot/stg/opencl/drivers/opencl/compiler/lib/complibdefs#41 edit ... //depot/stg/opencl/drivers/opencl/compiler/lib/loaders/bif/amuabi/build/Makefile.amuabi#8 edit ... //depot/stg/opencl/drivers/opencl/compiler/lib/loaders/bif/bifinternal.hpp#10 edit ... //depot/stg/opencl/drivers/opencl/compiler/lib/loaders/bif/build/Makefile.bif#21 edit ... //depot/stg/opencl/drivers/opencl/compiler/lib/loaders/elf/elf.hpp#21 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/build/Makefile.gpu#65 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudefs.hpp#122 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gslbe/src/include/cal/cal.h#36 delete ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gslbe/src/include/cal/calcl.h#33 delete ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gslbe/src/rt/EventQueue.h#6 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gslbe/src/rt/GSLContext.h#47 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gslbe/src/rt/GSLDevice.h#50 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gslbe/src/rt/backend.h#5 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gslbe/src/rt/build/Makefile.backend#7 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gslbe/src/rt/caltarget.h#1 add ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gslbe/src/rt/inifile/build/Makefile.inifile#2 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gslbe/src/rt/inifile/inifile.cpp#2 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gslbe/src/rt/inifile/inifile.h#2 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gslbe/src/rt/inifile/inifile_parser.h#2 edit ... //depot/stg/opencl/drivers/opencl/runtime/runtimedefs#34 edit ... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/binary/build/Makefile.binary#18 edit ... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/complib/build/Makefile.complib#36 edit
89 lines
2.3 KiB
Plaintext
89 lines
2.3 KiB
Plaintext
include $(OPENCL_DEPTH)/opencldefs
|
|
COMPLIB_DEPTH = $(OPENCL_DEPTH)/compiler/lib
|
|
|
|
ifdef GONE_TO_BUILD_DIR
|
|
ifeq ($(BUILD_HSA_TARGET),yes)
|
|
override BUILD_CPU_DEVICE = no
|
|
override BUILD_GPU_DEVICE = no
|
|
endif
|
|
ifneq ($(BUILD_LEGACY_COMPLIB),yes)
|
|
override BUILD_GPU_DEVICE = no
|
|
endif
|
|
endif
|
|
|
|
ifneq ($(BUILD_GPU_DEVICE),no)
|
|
GCPPFLAGS += $(DEFSWITCH) WITH_TARGET_AMDIL
|
|
endif
|
|
|
|
ifneq ($(BUILD_HSA_DEVICE),no)
|
|
GCPPFLAGS += $(DEFSWITCH) WITH_TARGET_HSAIL
|
|
ifneq ($(BUILD_GPU_DEVICE),no)
|
|
GCPPFLAGS += $(DEFSWITCH) DYNAMIC_HSAIL
|
|
endif
|
|
endif
|
|
|
|
ifneq ($(BUILD_CPU_DEVICE),no)
|
|
ifdef ATI_ARCH_ARM
|
|
GCPPFLAGS += $(DEFSWITCH) WITH_TARGET_ARM
|
|
endif
|
|
|
|
ifdef ATI_ARCH_X86
|
|
ifneq ($(BUILD_CPU_DEVICE),no)
|
|
GCPPFLAGS += $(DEFSWITCH) WITH_TARGET_X86
|
|
endif
|
|
endif
|
|
endif
|
|
|
|
GCPPFLAGS += $(INCSWITCH) "$(DEPTH)/drivers"
|
|
GCPPFLAGS += $(INCSWITCH) "$(DEPTH)/drivers/inc/asic_reg"
|
|
GCPPFLAGS += $(INCSWITCH) "$(COMPLIB_DEPTH)"
|
|
GCPPFLAGS += $(INCSWITCH) "$(COMPLIB_DEPTH)/promotions/oclutils"
|
|
GCPPFLAGS += $(INCSWITCH) "$(COMPLIB_DEPTH)/utils"
|
|
|
|
# Do we build the 0.9 version?
|
|
ifeq ($(BUILD_VERSION_0_9), 1)
|
|
GCPPFLAGS += $(DEFSWITCH) WITH_VERSION_0_9
|
|
CLVER_SUBDIR = v0_9
|
|
else
|
|
# Otherwise we build v0.8
|
|
GCPPFLAGS += $(DEFSWITCH) WITH_VERSION_0_8
|
|
CLVER_SUBDIR = v0_8
|
|
endif
|
|
|
|
GCPPFLAGS += $(INCSWITCH) "$(COMPLIB_DEPTH)/utils/$(CLVER_SUBDIR)"
|
|
GCPPFLAGS += $(INCSWITCH) "$(COMPLIB_DEPTH)/include/$(CLVER_SUBDIR)"
|
|
GCPPFLAGS += $(DEFSWITCH) "BREAK_ON_LOG_WARNING=0"
|
|
GCPPFLAGS += $(DEFSWITCH) "BREAK_ON_LOG_ERROR=0"
|
|
GCPPFLAGS += $(DEFSWITCH) "LOG_LEVEL=2"
|
|
|
|
GCPPFLAGS += $(INCSWITCH) "$(OPENCL_DEPTH)/runtime/device/gpu/gslbe/src/rt"
|
|
GCPPFLAGS += $(INCSWITCH) "$(UGL_DEPTH)/gl/gs/hwl/pele/include/asic"
|
|
GCPPFLAGS += $(INCSWITCH) "$(UGL_DEPTH)/gl/gs/hwl/evergreen/include/asic"
|
|
GCPPFLAGS += $(INCSWITCH) "$(UGL_DEPTH)/gl/gs/hwl/si/include/asic"
|
|
export BRIG_ENABLE=1
|
|
|
|
ifdef ATI_OS_WINDOWS
|
|
GCPPFLAGS += $(INCSWITCH) "$(DK_ROOT)/$(DK_DX_SDK)/inc"
|
|
|
|
ifeq ($(BUILD_TYPE),dbg)
|
|
GCXXOPTS += /Ob1
|
|
endif
|
|
|
|
GCXXOPTS += -wd4985 -wd4355 -wd4800 -wd4291
|
|
|
|
GCPPFLAGS += $(DEFSWITCH) _SCL_SECURE_NO_WARNINGS
|
|
|
|
GCXXOPTS += /GR- # Disable Run-Time Type Information
|
|
endif
|
|
|
|
ifdef ATI_OS_LINUX
|
|
GCPPFLAGS += $(DEFSWITCH) __STDC_LIMIT_MACROS
|
|
GCPPFLAGS += $(DEFSWITCH) __STDC_CONSTANT_MACROS
|
|
|
|
GCXXOPTS += -fno-rtti
|
|
endif
|
|
|
|
ifeq ($(OPENCL_USE_ONE_SC),1)
|
|
GCPPFLAGS += $(DEFSWITCH) OPENCL_USE_ONE_SC
|
|
endif
|