Guest User

memory fault analysis gfx1151

a guest
Jan 23rd, 2026
148
0
Never
7
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.83 KB | None | 0 0
  1. # GPU Memory Access Fault - Root Cause Analysis
  2.  
  3. **Date:** 2026-01-23
  4. **System:** Fedora Linux 43, Kernel 6.18.5-200.fc43.x86_64
  5. **Hardware:** AMD Ryzen AI Max+ 395 w/ Radeon 8060S (gfx1151)
  6.  
  7. ## Root Cause: Missing amdkfd Kernel Module
  8.  
  9. ### Evidence from Debug Logs:
  10.  
  11. **Log Line 36 (H3 - Kernel Modules):**
  12. ```json
  13. {"amdgpu": true, "amdkfd": false, ...}
  14. ```
  15.  
  16. **System Verification:**
  17. - `amdgpu` module: ✅ Loaded
  18. - `amdkfd` module: ❌ **NOT FOUND** in kernel
  19. - `modprobe amdkfd`: "Module not found in directory /lib/modules/6.18.5-200.fc43.x86_64"
  20.  
  21. ### What is amdkfd?
  22.  
  23. `amdkfd` (AMD Kernel Fusion Driver) is a **critical kernel module** required for:
  24. - ROCm compute operations
  25. - GPU memory allocation for compute workloads
  26. - HSA (Heterogeneous System Architecture) runtime GPU memory management
  27.  
  28. **Without amdkfd:**
  29. - Display/graphics work (handled by amdgpu)
  30. - GPU compute operations **FAIL** with memory access faults
  31. - PyTorch GPU tensor allocation crashes
  32.  
  33. ### Why is amdkfd Missing?
  34.  
  35. 1. **Kernel 6.18.5 is very new** - ROCm kernel modules may not be available yet
  36. 2. **No ROCm kernel module packages installed** - Only user-space ROCm packages are present
  37. 3. **Kernel's built-in amdgpu** doesn't include amdkfd (it's a separate module)
  38.  
  39. ### Current System State:
  40.  
  41. - ✅ ROCm user-space: Installed (ROCm 6.4.2 + some 7.1.1 packages)
  42. - ✅ PyTorch ROCm: Installed (ROCm 7.11 nightly from gfx1151)
  43. - ✅ HSA Runtime: Working (GPU detected, memory pools found)
  44. - ✅ Architecture: Correctly detected as gfx1151 (after removing override)
  45. - ❌ **amdkfd kernel module: MISSING**
  46.  
  47. ## Hypothesis Evaluation Summary:
  48.  
  49. | Hypothesis | Status | Evidence |
  50. |------------|--------|----------|
  51. | H1: HSA Runtime | ✅ CONFIRMED | GPU agent detected, memory pools found |
  52. | H2: Memory Mapping | ⚠️ PARTIAL | Basic mapping exists, some permission issues |
  53. | **H3: amdkfd Module** | **❌ CONFIRMED (ROOT CAUSE)** | **Module not found in kernel** |
  54. | H4: IOMMU | ✅ REJECTED | Not needed for integrated GPUs |
  55. | H5: Version Compatibility | ⚠️ INCONCLUSIVE | Kernel 6.18.5 very new |
  56. | H6: PyTorch Allocation | ✅ CONFIRMED | Fails at allocation step |
  57. | H7: Device Permissions | ✅ CONFIRMED | Device files accessible |
  58.  
  59. ## Possible Solutions:
  60.  
  61. ### Option 1: Install ROCm Kernel Modules (If Available)
  62.  
  63. Check if ROCm DKMS packages are available for kernel 6.18.5:
  64. ```bash
  65. dnf search rocm-dkms
  66. dnf search rocm-kernel
  67. ```
  68.  
  69. If available, install:
  70. ```bash
  71. sudo dnf install rocm-dkms
  72. ```
  73.  
  74. ### Option 2: Compile ROCm Kernel Modules from Source
  75.  
  76. If packages aren't available, may need to:
  77. 1. Download ROCm kernel module source code
  78. 2. Compile against kernel 6.18.5
  79. 3. Install the modules
  80.  
  81. This is complex and may require kernel development tools.
  82.  
  83. ### Option 3: Use Older Kernel (If Compatible)
  84.  
  85. Downgrade to a kernel version that has ROCm kernel module support:
  86. - Kernel 6.6 LTS
  87. - Kernel 6.1 LTS
  88. - Check ROCm compatibility matrix
  89.  
  90. ### Option 4: Wait for Official Support
  91.  
  92. Kernel 6.18.5 is very new. ROCm kernel modules may be available in:
  93. - Future Fedora updates
  94. - Future ROCm releases
  95. - Community patches
  96.  
  97. ### Option 5: Use CPU Training (Current Workaround)
  98.  
  99. Continue using CPU training, which is working well:
  100. ```bash
  101. ./scripts/start_pretraining.sh --cpu --epochs 450 --include_labeled
  102. ```
  103.  
  104. With 32 cores and 128GB RAM, CPU training is efficient.
  105.  
  106. ## Recommendation:
  107.  
  108. **For now: Continue with CPU training** until:
  109. 1. ROCm kernel modules become available for kernel 6.18.5, OR
  110. 2. You can compile/install amdkfd module from source
  111.  
  112. The architecture detection issue (gfx1100 vs gfx1151) has been fixed by removing `HSA_OVERRIDE_GFX_VERSION`. The remaining memory fault is due to the missing amdkfd kernel module, which requires system-level installation that may not be available for your kernel version yet.
  113.  
Advertisement
Comments
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
Add Comment
Please, Sign In to add comment