0196394dcf
SWDEV-127386 - Revert to HSAIL instead of LC - More asic_reg path fixes (remove asic_reg/ prefix) - Add LIQUID_FLASH_INCS/LOPTS/LLIBS variables - Add HSA_RUNTIME_INCS/LOPTS/LLIBS variables - Add ASIC_REG_INCS variable Affected files ... ... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/build/Makefile.api#160 edit ... //depot/stg/opencl/drivers/opencl/compiler/legacy-lib/api/v0_8/aclKstatsr800.cpp#3 edit ... //depot/stg/opencl/drivers/opencl/compiler/legacy-lib/backends/gpu/scwrapper/7XX/devState7XX.cpp#3 edit ... //depot/stg/opencl/drivers/opencl/compiler/legacy-lib/backends/gpu/scwrapper/7XX/scState7XX.cpp#3 edit ... //depot/stg/opencl/drivers/opencl/compiler/legacy-lib/backends/gpu/scwrapper/EGNI/devStateEGNI.cpp#3 edit ... //depot/stg/opencl/drivers/opencl/compiler/legacy-lib/backends/gpu/scwrapper/EGNI/scCompile89.cpp#5 edit ... //depot/stg/opencl/drivers/opencl/compiler/legacy-lib/backends/gpu/scwrapper/EGNI/scStateEGNI.cpp#3 edit ... //depot/stg/opencl/drivers/opencl/compiler/legacy-lib/backends/gpu/scwrapper/SI/devStateSI.cpp#5 edit ... //depot/stg/opencl/drivers/opencl/compiler/legacy-lib/backends/gpu/scwrapper/SI/scStateSI.cpp#3 edit ... //depot/stg/opencl/drivers/opencl/compiler/legacy-lib/backends/gpu/scwrapper/devState.cpp#6 edit ... //depot/stg/opencl/drivers/opencl/compiler/legacy-lib/complibdefs#10 edit ... //depot/stg/opencl/drivers/opencl/compiler/legacy-lib/utils/v0_8/target_mappings_amdil.h#20 edit ... //depot/stg/opencl/drivers/opencl/compiler/legacy-lib/utils/v0_8/target_mappings_amdil64.h#19 edit ... //depot/stg/opencl/drivers/opencl/compiler/legacy-lib/utils/v0_8/target_mappings_hsail.h#20 edit ... //depot/stg/opencl/drivers/opencl/compiler/legacy-lib/utils/v0_8/target_mappings_hsail64.h#20 edit ... //depot/stg/opencl/drivers/opencl/compiler/lib/api/v0_8/aclKstatsr800.cpp#3 edit ... //depot/stg/opencl/drivers/opencl/compiler/lib/complibdefs#53 edit ... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/v0_8/target_mappings_amdil.h#46 edit ... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/v0_8/target_mappings_amdil64.h#42 edit ... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/v0_8/target_mappings_hsail.h#45 edit ... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/v0_8/target_mappings_hsail64.h#40 edit ... //depot/stg/opencl/drivers/opencl/opencldefs#210 edit ... //depot/stg/opencl/drivers/opencl/runtime/build/Makefile.runtime#70 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/build/Makefile.gpu#69 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gslbe/src/rt/build/Makefile.backend#9 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/build/Makefile.pal#15 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/build/Makefile.oclrocm#19 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocprogram.cpp#70 edit ... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/binary/build/Makefile.binary#23 edit ... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/complib/build/Makefile.complib#41 edit ... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/spir/build/Makefile.spir#17 edit
103 lines
2.8 KiB
Plaintext
103 lines
2.8 KiB
Plaintext
OPENCL_DEPTH ?= $(COMPLIB_DEPTH)/../..
|
|
|
|
include $(OPENCL_DEPTH)/opencldefs
|
|
|
|
# Set the #defines for sc/Interface like that used to build sc.
|
|
# For a non-default configuration (for instance adding GFX9),
|
|
# make GFX9_BUILD=1 wNow.dbg
|
|
# or change
|
|
# ../../opencldefs
|
|
# to make sure that the settings for sc and sc's uses match.
|
|
include $(OPENCL_DEPTH)/compiler/sc/Interface/scinterfacedefs
|
|
GCPPFLAGS += $(SC_LIB_DEFS)
|
|
|
|
ELFTOOLCHAIN_DIR = $(COMPLIB_DEPTH)/loaders/elf/utils
|
|
|
|
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_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 += $(ASIC_REG_INCS)
|
|
GCPPFLAGS += $(INCSWITCH) "$(COMPLIB_DEPTH)"
|
|
GCPPFLAGS += $(INCSWITCH) "$(OPENCL_DEPTH)/runtime"
|
|
GCPPFLAGS += $(INCSWITCH) "$(OPENCL_DEPTH)/runtime/utils"
|
|
GCPPFLAGS += $(INCSWITCH) "$(COMPLIB_DEPTH)/utils"
|
|
GCPPFLAGS += $(INCSWITCH) "$(OPENCL_DEPTH)/api/opencl/khronos/headers/opencl2.0"
|
|
|
|
# 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/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 -wd4624 -wd4141
|
|
|
|
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 -Wno-sign-compare
|
|
endif
|
|
|
|
ifeq ($(OPENCL_USE_ONE_SC),1)
|
|
GCPPFLAGS += $(DEFSWITCH) OPENCL_USE_ONE_SC
|
|
endif
|
|
|
|
ifneq (,$(wildcard $(COMPLIB_DEPTH)/loaders/elf/utils/blowfish/blowfish.h))
|
|
GCPPFLAGS += $(DEFSWITCH) HAVE_BLOWFISH_H
|
|
endif
|
|
|
|
include $(OPENCL_DEPTH)/compiler/scinterfacedefs.opencl
|