[gentoo-commits] repo/gentoo:master commit in: sci-libs/miopen/files/

2022-09-22 Thread Andrew Ammerlaan
commit: 8e5f37aba0dbc39c1e7ebf2b439d3b9b177821e1
Author: Yiyang Wu  gmail  com>
AuthorDate: Thu Sep 22 03:32:03 2022 +
Commit: Andrew Ammerlaan  gentoo  org>
CommitDate: Thu Sep 22 10:18:40 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8e5f37ab

sci-libs/miopen: shrink 5.1.3-gfx1031.patch to fix QA warning

Signed-off-by: Yiyang Wu  gmail.com>
Signed-off-by: Andrew Ammerlaan  gentoo.org>

 sci-libs/miopen/files/miopen-5.1.3-gfx1031.patch | 22 --
 1 file changed, 22 deletions(-)

diff --git a/sci-libs/miopen/files/miopen-5.1.3-gfx1031.patch 
b/sci-libs/miopen/files/miopen-5.1.3-gfx1031.patch
index 42041f2414ed..de22d66d887a 100644
--- a/sci-libs/miopen/files/miopen-5.1.3-gfx1031.patch
+++ b/sci-libs/miopen/files/miopen-5.1.3-gfx1031.patch
@@ -14,7 +14,6 @@ Enable gfx1031 support
  {
  assert(num_cu == 110);
 Only in MIOpen-rocm-5.1.3: patches
-diff --color -upr 
MIOpen-rocm-5.1.3/src/composable_kernel/composable_kernel/include/utility/config.hpp
 gfx1031/src/composable_kernel/composable_kernel/include/utility/config.hpp
 --- 
MIOpen-rocm-5.1.3/src/composable_kernel/composable_kernel/include/utility/config.hpp
   2022-05-08 14:08:05.0 +0800
 +++ gfx1031/src/composable_kernel/composable_kernel/include/utility/config.hpp 
2022-09-01 18:36:18.634980274 +0800
 @@ -13,7 +13,7 @@
@@ -44,7 +43,6 @@ diff --color -upr 
MIOpen-rocm-5.1.3/src/composable_kernel/composable_kernel/incl
  #define CK_USE_AMD_V_FMAC_F32
  #define CK_USE_AMD_V_DOT2_F32_F16
  #define CK_USE_AMD_V_DOT4_I32_I8
-diff --color -upr 
MIOpen-rocm-5.1.3/src/include/miopen/solver/ck_utility_common.hpp 
gfx1031/src/include/miopen/solver/ck_utility_common.hpp
 --- MIOpen-rocm-5.1.3/src/include/miopen/solver/ck_utility_common.hpp  
2022-05-08 14:08:05.0 +0800
 +++ gfx1031/src/include/miopen/solver/ck_utility_common.hpp2022-09-01 
18:36:18.638980266 +0800
 @@ -54,6 +54,7 @@ static inline bool is_ck_supported_hardw
@@ -64,7 +62,6 @@ diff --color -upr 
MIOpen-rocm-5.1.3/src/include/miopen/solver/ck_utility_common.
  
  // buffer atomic-fadd
  compiler_flag << " -DCK_USE_AMD_BUFFER_ATOMIC_FADD="
-diff --color -upr 
MIOpen-rocm-5.1.3/src/include/miopen/solver/implicitgemm_util.hpp 
gfx1031/src/include/miopen/solver/implicitgemm_util.hpp
 --- MIOpen-rocm-5.1.3/src/include/miopen/solver/implicitgemm_util.hpp  
2022-05-08 14:08:05.0 +0800
 +++ gfx1031/src/include/miopen/solver/implicitgemm_util.hpp2022-09-01 
18:36:18.638980266 +0800
 @@ -469,7 +469,7 @@ static inline bool is_use_amd_buffer_loa
@@ -95,7 +92,6 @@ diff --color -upr 
MIOpen-rocm-5.1.3/src/include/miopen/solver/implicitgemm_util.
  }
  
  // greatest common divisor, aka highest common factor
-diff --color -upr MIOpen-rocm-5.1.3/src/kernels/batchnorm_functions.h 
gfx1031/src/kernels/batchnorm_functions.h
 --- MIOpen-rocm-5.1.3/src/kernels/batchnorm_functions.h2022-05-08 
14:08:05.0 +0800
 +++ gfx1031/src/kernels/batchnorm_functions.h  2022-09-01 18:36:18.858979772 
+0800
 @@ -159,6 +159,10 @@
@@ -109,7 +105,6 @@ diff --color -upr 
MIOpen-rocm-5.1.3/src/kernels/batchnorm_functions.h gfx1031/sr
  #define UNUSED __attribute__((__unused__))
  
  #if(MIO_BN_VARIANT != 4)
-diff --color -upr 
MIOpen-rocm-5.1.3/src/kernels/MIOpenBatchNormActivBwdPerAct.cl 
gfx1031/src/kernels/MIOpenBatchNormActivBwdPerAct.cl
 --- MIOpen-rocm-5.1.3/src/kernels/MIOpenBatchNormActivBwdPerAct.cl 
2022-05-08 14:08:05.0 +0800
 +++ gfx1031/src/kernels/MIOpenBatchNormActivBwdPerAct.cl   2022-09-01 
18:36:18.858979772 +0800
 @@ -34,7 +34,7 @@
@@ -121,7 +116,6 @@ diff --color -upr 
MIOpen-rocm-5.1.3/src/kernels/MIOpenBatchNormActivBwdPerAct.cl
  #undef MIOPEN_USE_AMDGCN
  #define MIOPEN_USE_AMDGCN 1
  #endif
-diff --color -upr 
MIOpen-rocm-5.1.3/src/kernels/MIOpenBatchNormActivBwdSpatial.cl 
gfx1031/src/kernels/MIOpenBatchNormActivBwdSpatial.cl
 --- MIOpen-rocm-5.1.3/src/kernels/MIOpenBatchNormActivBwdSpatial.cl
2022-05-08 14:08:05.0 +0800
 +++ gfx1031/src/kernels/MIOpenBatchNormActivBwdSpatial.cl  2022-09-01 
18:36:18.858979772 +0800
 @@ -32,7 +32,7 @@
@@ -133,7 +127,6 @@ diff --color -upr 
MIOpen-rocm-5.1.3/src/kernels/MIOpenBatchNormActivBwdSpatial.c
  #undef MIOPEN_USE_AMDGCN
  #define MIOPEN_USE_AMDGCN 1
  #endif
-diff --color -upr 
MIOpen-rocm-5.1.3/src/kernels/MIOpenBatchNormActivFwdTrainSpatial.cl 
gfx1031/src/kernels/MIOpenBatchNormActivFwdTrainSpatial.cl
 --- MIOpen-rocm-5.1.3/src/kernels/MIOpenBatchNormActivFwdTrainSpatial.cl   
2022-05-08 14:08:05.0 +0800
 +++ gfx1031/src/kernels/MIOpenBatchNormActivFwdTrainSpatial.cl 2022-09-01 
18:36:18.858979772 +0800
 @@ -33,7 +33,7 @@
@@ -145,7 +138,6 @@ diff --color -upr 
MIOpen-rocm-5.1.3/src/kernels/MIOpenBatchNormActivFwdTrainSpat
  #undef MIOPEN_USE_AMDGCN
  #define MIOPEN_USE_AMDGCN 1
  #endif
-diff --color -upr MIOpen-rocm-5.1.3/src/kernels/MIOpenBatchNormBwdSpatial.cl 
gfx1031/src/kernels/MI

[gentoo-commits] repo/gentoo:master commit in: sci-libs/miopen/files/, sci-libs/miopen/

2022-11-23 Thread Michał Górny
commit: 1a671b95cbeeecdda3791046734351f2c7fdd34f
Author: Michał Górny  gentoo  org>
AuthorDate: Wed Nov 23 18:12:18 2022 +
Commit: Michał Górny  gentoo  org>
CommitDate: Wed Nov 23 18:12:45 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1a671b95

sci-libs/miopen: Remove old

Signed-off-by: Michał Górny  gentoo.org>

 sci-libs/miopen/Manifest  |   1 -
 sci-libs/miopen/files/miopen-5.0.2-gfx1031.patch  | 241 --
 sci-libs/miopen/files/miopen-5.0.2-no-strip.patch |  18 --
 sci-libs/miopen/miopen-5.0.2.ebuild   |  81 
 4 files changed, 341 deletions(-)

diff --git a/sci-libs/miopen/Manifest b/sci-libs/miopen/Manifest
index 39e5f94389f6..ababb7dc3105 100644
--- a/sci-libs/miopen/Manifest
+++ b/sci-libs/miopen/Manifest
@@ -1,2 +1 @@
-DIST MIOpen-5.0.2.tar.gz 76294827 BLAKE2B 
7b2a1f0e675793aee4a0fa2a270caac8332cda36c8f04cee483cc2882ed987b6e676e9c24a1acf4976a16a10f922b1a6263470b419aa88a29cfcb6d6d4b4cc29
 SHA512 
a581b45220797904db3e4dd3840f2ef96085f00baf8187c5ab574325a66da4f599dee6496457bb1cc32825b57a13fb0ef35a2ef1bd2a5f449c7e7b9fa64b27d1
 DIST MIOpen-5.1.3.tar.gz 88118329 BLAKE2B 
d24722ffc5f5dab6d6a1de2ce34193ad2f25c9a2562e38c52e010a29870f01d9ea1c56970ba0601a088c8286e97958ee95d0da27fc8082126dd2ebe5ccb36b70
 SHA512 
a14e28cfcb12e5061e0e7b999ef3e67fa0a0e897e31bc50e7288b8a23eb1791312e33d3b697021c2b654ccc065ae1b046c1cfd77ba8e04b0f3e87e9cc0626dcd

diff --git a/sci-libs/miopen/files/miopen-5.0.2-gfx1031.patch 
b/sci-libs/miopen/files/miopen-5.0.2-gfx1031.patch
deleted file mode 100644
index 15ac67bd3cef..
--- a/sci-libs/miopen/files/miopen-5.0.2-gfx1031.patch
+++ /dev/null
@@ -1,241 +0,0 @@
-Index: MIOpen-rocm-5.0.2/src/include/miopen/solver/implicitgemm_util.hpp
-===
 MIOpen-rocm-5.0.2.orig/src/include/miopen/solver/implicitgemm_util.hpp
-+++ MIOpen-rocm-5.0.2/src/include/miopen/solver/implicitgemm_util.hpp
-@@ -478,7 +478,7 @@ static inline bool is_use_amd_buffer_loa
- {
- #if WORKAROUND_MIOPEN_ISSUE_557
- const auto device_name = ctx.GetStream().GetDeviceName();
--return !StartsWith(device_name, "gfx1030");
-+return !StartsWith(device_name, "gfx1030") && !StartsWith(device_name, 
"gfx1031");
- #else
- return true;
- #endif
-@@ -487,7 +487,7 @@ static inline bool is_use_amd_buffer_loa
- static inline bool is_use_v_fmac_f32(const ConvolutionContext& ctx)
- {
- const auto device_name = ctx.GetStream().GetDeviceName();
--return StartsWith(device_name, "gfx1030");
-+return StartsWith(device_name, "gfx1030") || StartsWith(device_name, 
"gfx1031");
- }
- 
- static inline bool support_amd_buffer_atomic_fadd(const std::string& 
device_name)
-@@ -608,7 +608,8 @@ static inline bool IsComposableKernelSup
-StartsWith(c.GetStream().GetDeviceName(), "gfx906") ||
-StartsWith(c.GetStream().GetDeviceName(), "gfx908") ||
-StartsWith(c.GetStream().GetDeviceName(), "gfx90a") ||
--   StartsWith(c.GetStream().GetDeviceName(), "gfx1030");
-+   StartsWith(c.GetStream().GetDeviceName(), "gfx1030")||
-+   StartsWith(c.GetStream().GetDeviceName(), "gfx1031");
- }
- 
- // greatest common divisor, aka highest common factor
-Index: MIOpen-rocm-5.0.2/src/kernels/batchnorm_functions.h
-===
 MIOpen-rocm-5.0.2.orig/src/kernels/batchnorm_functions.h
-+++ MIOpen-rocm-5.0.2/src/kernels/batchnorm_functions.h
-@@ -159,6 +159,10 @@
- #define MIO_BN_GFX1030 0
- #endif
- 
-+#ifndef MIO_BN_GFX1031
-+#define MIO_BN_GFX1031 0
-+#endif
-+
- #define UNUSED __attribute__((__unused__))
- 
- #if(MIO_BN_VARIANT != 4)
-Index: MIOpen-rocm-5.0.2/src/kernels/MIOpenBatchNormActivBwdPerAct.cl
-===
 MIOpen-rocm-5.0.2.orig/src/kernels/MIOpenBatchNormActivBwdPerAct.cl
-+++ MIOpen-rocm-5.0.2/src/kernels/MIOpenBatchNormActivBwdPerAct.cl
-@@ -34,7 +34,7 @@
- #endif
- 
- #define MIOPEN_USE_AMDGCN 0
--#if defined(__AMDGCN__) && MIO_BN_GFX1030 != 1
-+#if defined(__AMDGCN__) && MIO_BN_GFX1030 != 1 && MIO_BN_GFX1031 != 1
- #undef MIOPEN_USE_AMDGCN
- #define MIOPEN_USE_AMDGCN 1
- #endif
-Index: MIOpen-rocm-5.0.2/src/kernels/MIOpenBatchNormActivBwdSpatial.cl
-===
 MIOpen-rocm-5.0.2.orig/src/kernels/MIOpenBatchNormActivBwdSpatial.cl
-+++ MIOpen-rocm-5.0.2/src/kernels/MIOpenBatchNormActivBwdSpatial.cl
-@@ -32,7 +32,7 @@
- #endif
- 
- #define MIOPEN_USE_AMDGCN 0
--#if defined(__AMDGCN__) && MIO_BN_GFX1030 != 1
-+#if defined(__AMDGCN__) && MIO_BN_GFX1030 != 1 && MIO_BN_GFX1031 != 1
- #undef MIOPEN_USE_AMDGCN
- #define MIOPEN_USE_AMDGCN 1
- #endif
-Index: MIOpen-rocm-5.0.2/src/kernels/MIOpenBatchNormActivFwdTrainSpatial.cl
-===
 MIOpen-rocm-5.0.2.orig