Sub devices and Sysman API

未关闭
#76 4 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
文档
描述清晰度
需要澄清
活跃度
停滞
领域
api, documentation

调研方向

从链接的 Level Zero sub-device support specification 以及 issue 中引用的 Sysman API 说明开始。确定是否必须递归枚举 sub-devices,以及 Sysman 调用针对嵌套 handles 接收什么;当 specification 明确定义这两种行为时,即表示完成。

由索引模型根据 Issue 内容生成。

描述

Maybe just a clarification is needed. But I see this in the specification:

https://spec.oneapi.io/level-zero/latest/core/PROG.html#sub-device-support

** a sub-device can be partitioned into more sub-devices; e.g. down to a single slice.**

Let's say I wanted to enumerate all the sub-devices on a device, does this mean I need to recursively call zeDeviceGetSubDevices
until I get zero sub-devices or does the root device enumerate all possible sub-devices directly with a single call?

I ask because the Sysman API notes that

A Sysman device handle operates at the device level. If a sub-device device handle is passed to any of the Sysman functions, the result will be as if the device handle was used.

If there are sub-devices strictly under sub-devices, then what would a Sysman call with argument device.sub_device.sub_device refer to? device or device.sub_device?

主要语言
C++
星标
335
派生
140
平均合并
12 小时 32 分钟
30 天内合并 PR
5

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

oneapi-src/level-zero 的其他 Issue

查看 oneapi-src/level-zero 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。