gpu-compute: Adding ioctl for HW context size
Adding runtime support for determining the memory required by a SIMD engine when executing a particular wavefront.
This commit is contained in:
@@ -242,6 +242,13 @@ ClDriver::ioctl(LiveProcess *process, ThreadContext *tc, unsigned req)
|
||||
buf.copyOut(tc->getMemProxy());
|
||||
}
|
||||
break;
|
||||
case HSA_GET_HW_STATIC_CONTEXT_SIZE:
|
||||
{
|
||||
BufferArg buf(buf_addr, sizeof(uint32_t));
|
||||
*((uint32_t*)buf.bufferPtr()) = dispatcher->getStaticContextSize();
|
||||
buf.copyOut(tc->getMemProxy());
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
fatal("ClDriver: bad ioctl %d\n", req);
|
||||
|
||||
Reference in New Issue
Block a user