7799611c01
Open SMI event file handle, prefetch to migrate svm range to GPU, read HMM profiling events, then check event_id, address, size, pid, event triggers are the expected value. Start separate thread to read SMI event, the same way applications use. Use thread barrier to ensure no event is dropped. Change-Id: I0683969d18d1579847e125d86aa4257602adb13f Signed-off-by: Philip Yang <Philip.Yang@amd.com>
1. Note on building kfdtest To build this kfdtest application, the following libraries should be already installed on the building machine: libdrm libdrm_amdgpu libhsakmt If libhsakmt is not installed, but the headers and libraries are present locally, you can specify its directory by export LIBHSAKMT_PATH=/*your local libhsakmt folder*/ With that, the headers and libraries are searched under LIBHSAKMT_PATH/include and LIBHSAKMT_PATH/lib respectively. 2. How to run kfdtest Just run "./run_kfdtest.sh" under the building output folder. You may need to specify library path through: export LD_LIBRARY_PATH=/*your library path containing libhsakmt*/ Note: you can use "run_kfdtest.sh -h" to see more options.