File: 0008-disable-gcn-asm-kernels.patch

package info (click to toggle)
miopen 5.5.1%2Bdfsg2-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 23,988 kB
  • sloc: cpp: 229,870; lisp: 30,281; ansic: 1,518; sh: 392; makefile: 209; xml: 189; python: 56
file content (25 lines) | stat: -rw-r--r-- 950 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From: Xuanteng Huang <xuanteng.huang@outlook.com>
Date: Sat, 25 May 2024 21:55:44 +0800
Subject: disable gcn asm kernels

As we exclude all ASM kernels from MIOpen, this patch modifies the MIOpen runtime config process
to prevent it from searching these ASM kernels when finding solution.

Forwarded: not-needed
---
 src/execution_context.cpp | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/execution_context.cpp b/src/execution_context.cpp
index 9856295..bc5fadd 100644
--- a/src/execution_context.cpp
+++ b/src/execution_context.cpp
@@ -212,8 +212,6 @@ void miopen::ExecutionContext::DetectRocm()
     rmv                     = rocm_meta_version::Default;
     if(IsAmdRocmOpencl(*this))
     {
-        use_asm_kernels =
-            !miopen::IsDisabled(MIOPEN_DEBUG_GCN_ASM_KERNELS{}) && ValidateGcnAssembler();
 #ifndef HIP_OC_FINALIZER
         use_binaries = !miopen::IsDisabled(MIOPEN_DEBUG_AMD_ROCM_PRECOMPILED_BINARIES{});
 #endif