Make HSAILProgram::gpuNullDevice private

Change-Id: I822d1800eff0703a154dac997fe940d232eab542


[ROCm/clr commit: 2026a24438]
This commit is contained in:
Tony Tye
2021-01-10 14:55:11 +00:00
orang tua 902cf1a239
melakukan 38744069df
@@ -470,11 +470,6 @@ class HSAILProgram : public device::Program {
const std::vector<Memory*>& globalStores() const { return globalStores_; }
//! Return a typecasted GPU null device.
gpu::NullDevice& gpuNullDevice() {
return const_cast<gpu::NullDevice&>(static_cast<const gpu::NullDevice&>(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<gpu::NullDevice&>(static_cast<const gpu::NullDevice&>(device()));
}
void* rawBinary_; //!< Pointer to the raw binary
std::vector<Memory*> globalStores_; //!< Global memory for the program
Memory* kernels_; //!< Table with kernel object pointers