Compare commits

...

2 Commits

Author SHA1 Message Date
reddevillg bdcd8d6382
Merge e3068913e5 into c2ea92df7b 2025-11-26 15:02:54 +01:00
dengbo c2ea92df7b feat: add jmgpu device node to container bind list
build / ubuntu_24.04 (push) Waiting to run Details
build / ubuntu_22.04 (push) Waiting to run Details
coverage / codecov (push) Waiting to run Details
Include jmgpu in the list of automatically bound device nodes to
support applications that require access to JM GPU devices.
2025-11-26 16:57:55 +08:00
1 changed files with 1 additions and 1 deletions

View File

@ -190,7 +190,7 @@ ContainerCfgBuilder::bindDevNode(std::function<bool(const std::string &)> ifBind
{
if (!ifBind) {
ifBind = [](const std::string &name) -> bool {
if (name == "snd" || name == "dri" || name.rfind("video", 0) == 0
if (name == "snd" || name == "dri" || name == "jmgpu" || name.rfind("video", 0) == 0
|| name.rfind("nvidia", 0) == 0) {
return true;
}