SWDEV-307185 - Create heap for device memory allocator
Pass the allocated heap with the kernel arguments Change-Id: Icdec09b7f937845c39e21cbca7071dc3ba791af9
Этот коммит содержится в:
@@ -50,21 +50,22 @@ struct KernelParameterDescriptor {
|
||||
HiddenDefaultQueue = 12,
|
||||
HiddenCompletionAction = 13,
|
||||
HiddenMultiGridSync = 14,
|
||||
HiddenHostcallBuffer = 15,
|
||||
HiddenBlockCountX = 16,
|
||||
HiddenBlockCountY = 17,
|
||||
HiddenBlockCountZ = 18,
|
||||
HiddenGroupSizeX = 19,
|
||||
HiddenGroupSizeY = 20,
|
||||
HiddenGroupSizeZ = 21,
|
||||
HiddenRemainderX = 22,
|
||||
HiddenRemainderY = 23,
|
||||
HiddenRemainderZ = 24,
|
||||
HiddenGridDims = 25,
|
||||
HiddenPrivateBase = 26,
|
||||
HiddenSharedBase = 27,
|
||||
HiddenQueuePtr = 28,
|
||||
HiddenLast = 29
|
||||
HiddenHeap = 15,
|
||||
HiddenHostcallBuffer = 16,
|
||||
HiddenBlockCountX = 17,
|
||||
HiddenBlockCountY = 18,
|
||||
HiddenBlockCountZ = 19,
|
||||
HiddenGroupSizeX = 20,
|
||||
HiddenGroupSizeY = 21,
|
||||
HiddenGroupSizeZ = 22,
|
||||
HiddenRemainderX = 23,
|
||||
HiddenRemainderY = 24,
|
||||
HiddenRemainderZ = 25,
|
||||
HiddenGridDims = 26,
|
||||
HiddenPrivateBase = 27,
|
||||
HiddenSharedBase = 28,
|
||||
HiddenQueuePtr = 29,
|
||||
HiddenLast = 30
|
||||
};
|
||||
clk_value_type_t type_; //!< The parameter's type
|
||||
size_t offset_; //!< Its offset in the parameter's stack
|
||||
@@ -276,6 +277,7 @@ static const std::map<std::string, uint32_t> ArgValueKindV3 = {
|
||||
{"hidden_default_queue", amd::KernelParameterDescriptor::HiddenDefaultQueue},
|
||||
{"hidden_completion_action", amd::KernelParameterDescriptor::HiddenCompletionAction},
|
||||
{"hidden_multigrid_sync_arg", amd::KernelParameterDescriptor::HiddenMultiGridSync},
|
||||
{"hidden_heap", amd::KernelParameterDescriptor::HiddenHeap},
|
||||
{"hidden_hostcall_buffer", amd::KernelParameterDescriptor::HiddenHostcallBuffer},
|
||||
{"hidden_block_count_x", amd::KernelParameterDescriptor::HiddenBlockCountX},
|
||||
{"hidden_block_count_y", amd::KernelParameterDescriptor::HiddenBlockCountY},
|
||||
|
||||
Ссылка в новой задаче
Block a user