diff --git a/opencl/amdocl/cl_vk_amd.hpp b/opencl/amdocl/cl_vk_amd.hpp index 34ae04b5c4..8b6212b788 100644 --- a/opencl/amdocl/cl_vk_amd.hpp +++ b/opencl/amdocl/cl_vk_amd.hpp @@ -52,7 +52,7 @@ namespace amd protected: //! Initializes the device memory array which is nested // after'BufferVk' object in memory layout. - void BufferVk::initDeviceMemory() { + void initDeviceMemory() { deviceMemories_ = reinterpret_cast(reinterpret_cast(this) + sizeof(BufferVk)); memset(deviceMemories_, 0, context_().devices().size() * sizeof(DeviceMemory)); @@ -88,7 +88,7 @@ namespace amd protected: //! Initializes the device memory array which is nested // after'ImageVk' object in memory layout. - void ImageVk::initDeviceMemory() { + void initDeviceMemory() { deviceMemories_ = reinterpret_cast(reinterpret_cast(this) + sizeof(ImageVk)); memset(deviceMemories_, 0, context_().devices().size() * sizeof(DeviceMemory));