ext: add a simple emulated cl-runtime for the gpu
Review Request #3191 - Created Oct. 30, 2015 and discarded
| Information | |
|---|---|
| Tony Gutierrez | |
| gem5 | |
| default | |
| Reviewers | |
| Default | |
Changeset 11197:b2b56ddfcd39 --------------------------- ext: add a simple emulated cl-runtime for the gpu
I'm fine with this.
It would be nice to have a readme or a gem5 wiki entry containing (1) what this runtime can do, and (2) abstractly, how it works in the simulator (e.g. compiling it into benchmark binaries, which modes it works in SE/FS(?), and which ISAs it's known to work with since I expect there may be address/type sizing constraints).
-
ext/cl-runtime/cl_runtime.cc (Diff revision 1) -
Out of curiosity... Does this mean the runtime operates just on unified virtual memory? Or is there more to this (e.g. a driver)?
Posted (Nov. 15, 2015, 5 a.m.)
Since this is living in the ext/ directory, I assume there is an upstream repository where this originated from. Could you add a link to that in the commit message and preferably also the revision it is based on? If I'm not mistaken, the resason this is in ext/ is because the GPU simulator needs access to the CL headers, but not the CL runtime itself. Is this correct? Also, is this the runtime (which seems to be compiled using separate Makefiles) used by the simulated guest CL code? If so, would it make sense to keep the CL headers and the runtime in separate ext directories (the former presumably have a different license and are owned by Khronos) and keep the runtime somewhere else (maybe not even in the main distro)? We currently link gem5 with the libraries in ext/ and this seems like the only library that is intended for the guest system.
