Skip to content

[Issue]: ROCR uses the kfd ipc ioctls on the mainline kernel #270

Open
@IMbackK

Description

Problem Description

Currently ROCR uses drmbuf over kfd only when HSA_ENABLE_IPC_MODE_LEGACY is set to zero see:

enable_ipc_mode_legacy_ = (var == "0") ? false : true; // Legacy mode by default

with no regard for if the ioctls required for legacy mode are even supported in the running kernel, causing obscure and difficult to debug issues like ROCm/rccl#1454

ROCR should

  1. use dmabuf by default when running on the mainline kernel or
  2. at least assert with a resonable error message when HSA_ENABLE_IPC_MODE_LEGACY=0 is not set but the kernel dosent support the required ioctls for legacy mode.

Operating System

any

CPU

any

GPU

any

ROCm Version

ROCm 6.3.0

ROCm Component

ROCR-Runtime

Steps to Reproduce

No response

(Optional for Linux users) Output of /opt/rocm/bin/rocminfo --support

No response

Additional Information

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions