Make HSAILProgram::gpuNullDevice private

Change-Id: I822d1800eff0703a154dac997fe940d232eab542
此提交包含在:
Tony Tye
2021-01-10 14:55:11 +00:00
父節點 c7e8d91e14
當前提交 2026a24438
+5 -5
查看文件
@@ -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