From ff0e077e49b8c5bf8d109fc7f21f74f0cb30784d Mon Sep 17 00:00:00 2001
From: foreman
Date: Wed, 13 Jun 2018 17:23:43 -0400
Subject: [PATCH] P4 to Git Change 1567950 by gandryey@gera-w8 on 2018/06/13
17:11:26
SWDEV-79445 - OCL generic changes and code clean-up
- Missed a file from CL#1567935
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/platform/kernel.hpp#24 edit
---
rocclr/runtime/platform/kernel.hpp | 25 +++++++++++++------------
1 file changed, 13 insertions(+), 12 deletions(-)
diff --git a/rocclr/runtime/platform/kernel.hpp b/rocclr/runtime/platform/kernel.hpp
index f506241ee0..e2377c7ee1 100644
--- a/rocclr/runtime/platform/kernel.hpp
+++ b/rocclr/runtime/platform/kernel.hpp
@@ -36,13 +36,14 @@ class Program;
class KernelSignature : public HeapObject {
private:
std::vector params_;
- std::vector hiddenParams_;
std::string attributes_; //!< The kernel attributes
- uint32_t paramsSize_;
- uint32_t numMemories_;
- uint32_t numSamplers_;
- uint32_t numQueues_;
- uint32_t version_;
+
+ uint32_t numParameters_; //!< Number of OCL arguments in the kernel
+ uint32_t paramsSize_; //!< The size of all arguments
+ uint32_t numMemories_; //!< The number of memory objects used in the kernel
+ uint32_t numSamplers_; //!< The number of sampler objects used in the kernel
+ uint32_t numQueues_; //!< The number of queue objects used in the kernel
+ uint32_t version_; //!< The ABI version
public:
enum {
@@ -52,17 +53,20 @@ class KernelSignature : public HeapObject {
//! Default constructor
KernelSignature():
- paramsSize_(0), numMemories_(0), numSamplers_(0),
+ numParameters_(0), paramsSize_(0), numMemories_(0), numSamplers_(0),
numQueues_(0), version_(ABIVersion_0) {}
//! Construct a new signature.
KernelSignature(const std::vector& params,
const std::string& attrib,
- const std::vector& hiddenParams,
+ uint32_t numParameters,
uint32_t version);
//! Return the number of parameters
- size_t numParameters() const { return params_.size(); }
+ uint32_t numParameters() const { return numParameters_; }
+
+ //! Return the total number of parameters, including hidden
+ uint32_t numParametersAll() const { return params_.size(); }
//! Return the parameter descriptor at the given index.
const KernelParameterDescriptor& at(size_t index) const {
@@ -90,9 +94,6 @@ class KernelSignature : public HeapObject {
//! Return the kernel attributes
const std::string& attributes() const { return attributes_; }
- const std::vector& hiddenParameters() const
- { return hiddenParams_; }
-
const std::vector& parameters() const
{ return params_; }
};