From 821f311dfd24d7121e27ac33d3a0fd57b76a7876 Mon Sep 17 00:00:00 2001 From: foreman Date: Mon, 23 Mar 2015 09:36:19 -0400 Subject: [PATCH] P4 to Git Change 1133387 by asalmanp@asalmanp-opencl-stg1 on 2015/03/23 09:27:41 EPR #394115 - [OpenCL][Arctic Islands] adding aiPlus_ variable for AI and post AI features ReviewBoardURL = http://ocltc.amd.com/reviews/r/7167/ Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpusettings.cpp#307 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpusettings.hpp#90 edit [ROCm/clr commit: 88afeee3e3d3f8be7c17e103616d2df7c05d9f11] --- .../clr/rocclr/runtime/device/gpu/gpusettings.cpp | 12 +++++++++--- .../clr/rocclr/runtime/device/gpu/gpusettings.hpp | 2 +- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/projects/clr/rocclr/runtime/device/gpu/gpusettings.cpp b/projects/clr/rocclr/runtime/device/gpu/gpusettings.cpp index 8d24b098f8..d9aa96455c 100644 --- a/projects/clr/rocclr/runtime/device/gpu/gpusettings.cpp +++ b/projects/clr/rocclr/runtime/device/gpu/gpusettings.cpp @@ -100,6 +100,7 @@ Settings::Settings() siPlus_ = false; ciPlus_ = false; viPlus_ = false; + aiPlus_ = false; // Number of compute rings. numComputeRings_ = 0; @@ -236,10 +237,15 @@ Settings::create( } enableExtension(ClAmdImage2dFromBufferReadOnly); break; - case CAL_TARGET_CARRIZO: - apuSystem_ = true; case CAL_TARGET_GREENLAND: - //TODO: specific code for AI + //TODO: specific codes for AI + aiPlus_ = true; + // Fall through to VI ... + case CAL_TARGET_CARRIZO: + if (!aiPlus_) { + // APU systems for VI + apuSystem_ = true; + } case CAL_TARGET_ICELAND: case CAL_TARGET_TONGA: case CAL_TARGET_FIJI: diff --git a/projects/clr/rocclr/runtime/device/gpu/gpusettings.hpp b/projects/clr/rocclr/runtime/device/gpu/gpusettings.hpp index 39859a1c2b..f88e45ddb3 100644 --- a/projects/clr/rocclr/runtime/device/gpu/gpusettings.hpp +++ b/projects/clr/rocclr/runtime/device/gpu/gpusettings.hpp @@ -61,6 +61,7 @@ public: uint siPlus_: 1; //!< SI and post SI features uint ciPlus_: 1; //!< CI and post CI features uint viPlus_: 1; //!< VI and post VI features + uint aiPlus_: 1; //!< AI and post AI features uint rectLinearDMA_: 1; //!< Rectangular linear DRMDMA support uint threadTraceEnable_: 1; //!< Thread trace enable uint linearPersistentImage_: 1; //!< Allocates linear images in persistent @@ -74,7 +75,6 @@ public: uint asyncMemCopy_: 1; //!< Use async memory transfers uint hsailDirectSRD_: 1; //!< Controls direct SRD for HSAIL uint useDeviceQueue_: 1; //!< Submit to separate device queue - uint reserved_: 1; }; uint value_; };