From 8c03d1ce49bf31f42d87a1d38e16b4a7cd7e3301 Mon Sep 17 00:00:00 2001 From: foreman Date: Mon, 30 Apr 2018 20:23:40 -0400 Subject: [PATCH] P4 to Git Change 1548048 by gandryey@gera-w8 on 2018/04/30 16:08:29 SWDEV-151981 - Removal of CPU support on Windows - Part 1. Remove makefile options for CPU device support http://ocltc.amd.com/reviews/r/14737/ Affected files ... ... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/build/Makefile.api#174 edit ... //depot/stg/opencl/drivers/opencl/compiler/legacy-lib/complibdefs#12 edit ... //depot/stg/opencl/drivers/opencl/compiler/lib/complibdefs#56 edit ... //depot/stg/opencl/drivers/opencl/library/Makefile#33 edit ... //depot/stg/opencl/drivers/opencl/opencldefs#226 edit ... //depot/stg/opencl/drivers/opencl/runtime/Makefile#27 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/device.cpp#217 edit [ROCm/clr commit: f5375395f3a7c1aacd26d35b2da1d90a254c3ee5] --- projects/clr/rocclr/compiler/lib/complibdefs | 8 -------- projects/clr/rocclr/runtime/device/device.cpp | 10 ---------- 2 files changed, 18 deletions(-) diff --git a/projects/clr/rocclr/compiler/lib/complibdefs b/projects/clr/rocclr/compiler/lib/complibdefs index a1ade94af4..63bb877270 100644 --- a/projects/clr/rocclr/compiler/lib/complibdefs +++ b/projects/clr/rocclr/compiler/lib/complibdefs @@ -23,14 +23,6 @@ ifeq ($(BUILD_LLVM_HSAIL_TARGET),yes) GCPPFLAGS += $(DEFSWITCH) WITH_TARGET_HSAIL endif -ifeq ($(BUILD_LLVM_ARM_TARGET),yes) -GCPPFLAGS += $(DEFSWITCH) WITH_TARGET_ARM -endif - -ifeq ($(BUILD_LLVM_X86_TARGET),yes) -GCPPFLAGS += $(DEFSWITCH) WITH_TARGET_X86 -endif - GCPPFLAGS += $(ASIC_REG_INCS) GCPPFLAGS += $(INCSWITCH) "$(COMPLIB_DEPTH)" GCPPFLAGS += $(INCSWITCH) "$(OPENCL_DEPTH)/runtime" diff --git a/projects/clr/rocclr/runtime/device/device.cpp b/projects/clr/rocclr/runtime/device/device.cpp index 84657dd532..d73965a7ad 100644 --- a/projects/clr/rocclr/runtime/device/device.cpp +++ b/projects/clr/rocclr/runtime/device/device.cpp @@ -11,10 +11,6 @@ extern amd::AppProfile* rocCreateAppProfile(); #endif -#if defined(WITH_CPU_DEVICE) -#include "device/cpu/cpudevice.hpp" -#endif // WITH_CPU_DEVICE - #if defined(WITH_PAL_DEVICE) // namespace pal { extern bool PalDeviceLoad(); @@ -176,9 +172,6 @@ bool Device::init() { ret |= PalDeviceLoad(); } #endif // WITH_PAL_DEVICE -#if defined(WITH_CPU_DEVICE) - ret |= cpu::Device::init(); -#endif // WITH_CPU_DEVICE return ret; } @@ -203,9 +196,6 @@ void Device::tearDown() { PalDeviceUnload(); } #endif // WITH_PAL_DEVICE -#if defined(WITH_CPU_DEVICE) - cpu::Device::tearDown(); -#endif // WITH_CPU_DEVICE } Device::Device(Device* parent)