Skip to content
1 change: 1 addition & 0 deletions projects/miopen/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Full documentation for MIOpen is available [here](https://rocm.docs.amd.com/proj
## MIOpen 3.6.1 for ROCm 10.1.0

### Resolved Issues
* [Conv] Fixed `TransposedConvWinoRageRxS<2,3>` being unreachable: it was registered in the solver registry and explicitly instantiated but missing from both Find solver lists, so it could never be enumerated or selected for NHWC convolutions.
* [Conv] Fixed silently incorrect results from the grouped backward-weights CK xdlops solver when a tensor's element extent exceeds INT_MAX but its individual lengths and strides still fit int32; such problems now use a large-tensor (int64) CK instance instead of overflowing int32 indexing.
* [Conv] Fixed a HIPRTC compilation failure in the ConvDepthwiseFwd3D (gfx942/gfx950) FP16/BFP16 solver.
* [BatchNorm] Fixed MIOpen#3900 by implementing Welford's algorithm in FwdTrainSpatial variant 1
Expand Down
2 changes: 2 additions & 0 deletions projects/miopen/src/mlo_dir_conv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ static auto GetWindogradSolvers()
miopen::solver::conv::TransposedConvBinWinogradRxS,
miopen::solver::conv::TransposedConvBinWinogradRxSf2x3g1,
miopen::solver::conv::TransposedConvWinoFuryRxS<2, 3>,
miopen::solver::conv::TransposedConvWinoRageRxS<2, 3>,
miopen::solver::conv::TransposedConvMPBidirectWinograd<2, 3>,
miopen::solver::conv::TransposedConvMPBidirectWinograd<3, 3>,
miopen::solver::conv::TransposedConvMPBidirectWinograd<4, 3>,
Expand Down Expand Up @@ -179,6 +180,7 @@ static auto GetWindogradWrWSolvers()
miopen::solver::conv::TransposedConvBinWinogradRxS,
miopen::solver::conv::TransposedConvBinWinogradRxSf2x3g1,
miopen::solver::conv::TransposedConvWinoFuryRxS<2, 3>,
miopen::solver::conv::TransposedConvWinoRageRxS<2, 3>,
miopen::solver::conv::TransposedConvWinograd3x3MultipassWrW<3, 2>,
miopen::solver::conv::TransposedConvWinograd3x3MultipassWrW<3, 3>,
miopen::solver::conv::TransposedConvWinograd3x3MultipassWrW<3, 4>,
Expand Down
33 changes: 33 additions & 0 deletions projects/miopen/test/gtest/solver_find_list_registry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

#include <gtest/gtest.h>

#include <string>
#include <unordered_set>

#include <miopen/mlo_internal.hpp>
#include <miopen/solver_id.hpp>

Expand Down Expand Up @@ -38,3 +41,33 @@ TEST(CPU_SolverFindListRegistry_NONE, AllFindSolversAreRegistered)
<< "Solver '" << db_id << "': solver::Id::GetAlgo() threw.";
}
}

// Every convolution solver in the Id registry (solver.cpp) must also appear in
// one of the Find solver lists in mlo_dir_conv.cpp. A solver that is registered
// but absent from every list is dead code: Find never enumerates it, so it never
// gets a workspace size and can never be selected. Transposing solvers report
// IsDynamic() == false, which excludes them from immediate mode as well, so for
// those the Find lists are the only path in and the solver is unreachable
// outright. This test fails on that drift instead of letting a solver ship
// silently disabled.
TEST(CPU_SolverFindListRegistry_NONE, AllRegisteredConvSolversAreFindReachable)
{
const auto db_ids = GetAllFindSolverDbIds();
ASSERT_FALSE(db_ids.empty()) << "Find solver lists returned no solvers; test wiring is broken.";

const std::unordered_set<std::string> find_list_ids(db_ids.begin(), db_ids.end());

const auto& registered =
miopen::solver::GetSolversByPrimitive(miopen::solver::Primitive::Convolution);
ASSERT_FALSE(registered.empty())
<< "Solver registry returned no convolution solvers; test wiring is broken.";

for(const auto& id : registered)
{
EXPECT_TRUE(find_list_ids.count(id.ToString()) != 0)
<< "Solver '" << id.ToString() << "' (id " << id.Value()
<< ") is registered in the solver Id registry (solver.cpp) but is absent from every "
"Find solver list (mlo_dir_conv.cpp), so Find can never enumerate or select it. "
"Add it to the appropriate SolverContainer in mlo_dir_conv.cpp.";
}
}
Loading