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
- use dmabuf by default when running on the mainline kernel or
- 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
Problem Description
Currently ROCR uses drmbuf over kfd only when HSA_ENABLE_IPC_MODE_LEGACY is set to zero see:
ROCR-Runtime/runtime/hsa-runtime/core/util/flag.h
Line 237 in b02b842
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
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