Additional optional parameters are required for [trap-handler]:
size (buf size in bytes) if set allocate memory buffer for trap-handler
dump-path (file path) if set, save the contents of the trap handler buffer to a file
If size is set, the appropriate buffer info should be passed to hsaKmtSetTrapHandler():
hsaKmtSetTrapHandler(
HSAuint32 NodeId, //IN
void* TrapHandlerBaseAddress, //IN
HSAuint64 TrapHandlerSizeInBytes, //IN
void* TrapBufferBaseAddress, //IN
HSAuint64 TrapBufferSizeInBytes //IN
);
Please also fix passing of TrapHandlerSizeInBytes argument
Additional optional parameters are required for
[trap-handler]:size(buf size in bytes) if set allocate memory buffer for trap-handlerdump-path(file path) if set, save the contents of the trap handler buffer to a fileIf
sizeis set, the appropriate buffer info should be passed tohsaKmtSetTrapHandler():hsaKmtSetTrapHandler(
HSAuint32 NodeId, //IN
void* TrapHandlerBaseAddress, //IN
HSAuint64 TrapHandlerSizeInBytes, //IN
void* TrapBufferBaseAddress, //IN
HSAuint64 TrapBufferSizeInBytes //IN
);
Please also fix passing of
TrapHandlerSizeInBytesargument