Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove FIN_OLD_PROBLEM_DESCRIPTION_COMPAT #2503

Merged
merged 15 commits into from
Dec 19, 2023
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion fin
Submodule fin updated from ae2ff1 to 044f5e
23 changes: 0 additions & 23 deletions src/include/miopen/problem_description.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@
#include <cstdint>
#include <string>

#define FIN_OLD_PROBLEM_DESCRIPTION_COMPAT 1

namespace miopen {

// Tensor Helper APIs
Expand All @@ -57,27 +55,6 @@ SetDescFromMLDesc(int spatial_dims, TTo& to, const TensorDescriptor& tensor, con
return tensor.GetElementSpace();
}

#if FIN_OLD_PROBLEM_DESCRIPTION_COMPAT
struct ProblemDescription : conv::ProblemDescription
{
ProblemDescription() = default;

ProblemDescription(conv::ProblemDescription desc) : conv::ProblemDescription(std::move(desc))
{
conv_problem.p = this;
}

struct
{
void SetupFloats(ExecutionContext& ctx) const { p->SetupFloats(ctx); }

private:
const conv::ProblemDescription* p = nullptr;
friend struct ProblemDescription;
} conv_problem;
};
#endif

// For mlo_construct_base
// TODO remove this
struct ProblemDescriptionCompatTemporary
Expand Down