From 2026a244389a2e4ada5dd6f11dd0382e8f281e13 Mon Sep 17 00:00:00 2001 From: Tony Tye Date: Sun, 10 Jan 2021 14:55:11 +0000 Subject: [PATCH] Make HSAILProgram::gpuNullDevice private Change-Id: I822d1800eff0703a154dac997fe940d232eab542 --- rocclr/device/gpu/gpuprogram.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/rocclr/device/gpu/gpuprogram.hpp b/rocclr/device/gpu/gpuprogram.hpp index f78eec7e89..f4924d656c 100644 --- a/rocclr/device/gpu/gpuprogram.hpp +++ b/rocclr/device/gpu/gpuprogram.hpp @@ -470,11 +470,6 @@ class HSAILProgram : public device::Program { const std::vector& globalStores() const { return globalStores_; } - //! Return a typecasted GPU null device. - gpu::NullDevice& gpuNullDevice() { - return const_cast(static_cast(device())); - } - //! Return a typecasted GPU device. The device must not be the NullDevice. gpu::Device& gpuDevice() { assert(!isNull()); @@ -519,6 +514,11 @@ class HSAILProgram : public device::Program { //! Allocate kernel table bool allocKernelTable(); + //! Return a typecasted GPU null device. + gpu::NullDevice& gpuNullDevice() { + return const_cast(static_cast(device())); + } + void* rawBinary_; //!< Pointer to the raw binary std::vector globalStores_; //!< Global memory for the program Memory* kernels_; //!< Table with kernel object pointers