mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-12 09:30:36 +08:00
Update latest Sysman headers and some fix in sysman ULTs
This change contains: - Update the sysman headers as per latest spec. - Use mock file descriptor 0 in Sysman ULTs: Lets use 0 as mock file descriptor in sysman ULTs. Because upon creation of a process in linux, by default file descriptors 0, 1 and 2 are assigned to it. Thus in /proc/<pid>/fd/ , there will be entries 0, 1 and 2. By using 0 as fd, we will be sure, that call getFileName() in LinuxSysmanImp::init() would succeed for ULT, because entry /proc/<pid>/fd/0 would certainly be found in filesystem. Change-Id: I1576e2bfc8b96a408294362ccaf9f289b2b84e69 Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
301e11891b
commit
d13fdd32ad
@@ -23,10 +23,9 @@ using namespace NEO;
|
||||
|
||||
namespace L0 {
|
||||
namespace ult {
|
||||
|
||||
constexpr int mockFd = 0;
|
||||
class SysmanMockDrm : public Drm {
|
||||
public:
|
||||
const int mockFd = 33;
|
||||
SysmanMockDrm(RootDeviceEnvironment &rootDeviceEnvironment) : Drm(std::make_unique<HwDeviceId>(mockFd, ""), rootDeviceEnvironment) {}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user