Skip to content

Commit a9cba61

Browse files
authored
Remove FIN_OLD_HANDLE_COMPAT and FIN_OLD_BINARY_CACHE_COMPAT (#2627)
1 parent 3a33fe7 commit a9cba61

File tree

2 files changed

+1
-36
lines changed

2 files changed

+1
-36
lines changed

src/include/miopen/binary_cache.hpp

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@
3232
#include <boost/filesystem/path.hpp>
3333
#include <string>
3434

35-
#define FIN_OLD_BINARY_CACHE_COMPAT 1
36-
3735
namespace miopen {
3836

3937
bool IsCacheDisabled();
@@ -48,6 +46,7 @@ boost::filesystem::path LoadBinary(const TargetProperties& target,
4846
std::size_t num_cu,
4947
const std::string& name,
5048
const std::string& args);
49+
5150
void SaveBinary(const boost::filesystem::path& binary_path,
5251
const TargetProperties& target,
5352
const std::string& name,
@@ -63,28 +62,6 @@ void SaveBinary(const std::string& hsaco,
6362
std::size_t num_cu,
6463
const std::string& name,
6564
const std::string& args);
66-
67-
#if FIN_OLD_BINARY_CACHE_COMPAT
68-
inline std::string LoadBinary(const TargetProperties& target,
69-
std::size_t num_cu,
70-
const std::string& name,
71-
const std::string& args,
72-
bool)
73-
{
74-
return LoadBinary(target, num_cu, name, args);
75-
}
76-
77-
inline void SaveBinary(const std::string& hsaco,
78-
const TargetProperties& target,
79-
std::size_t num_cu,
80-
const std::string& name,
81-
const std::string& args,
82-
bool)
83-
{
84-
SaveBinary(hsaco, target, num_cu, name, args);
85-
}
86-
#endif
87-
8865
#endif
8966

9067
} // namespace miopen

src/include/miopen/handle.hpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,6 @@
6363
#endif
6464
#endif
6565

66-
#define FIN_OLD_HANDLE_COMPAT 1
67-
6866
namespace miopen {
6967

7068
struct HandleImpl;
@@ -135,16 +133,6 @@ struct MIOPEN_EXPORT Handle : miopenHandle
135133
std::string params,
136134
const std::string& kernel_src) const;
137135

138-
#if FIN_OLD_HANDLE_COMPAT
139-
Program LoadProgram(const std::string& program_name,
140-
std::string params,
141-
bool,
142-
const std::string& kernel_src) const
143-
{
144-
return LoadProgram(program_name, params, kernel_src);
145-
}
146-
#endif
147-
148136
bool HasProgram(const std::string& program_name, const std::string& params) const;
149137
void ClearProgram(const std::string& program_name, const std::string& params) const;
150138
void AddProgram(Program prog, const std::string& program_name, const std::string& params) const;

0 commit comments

Comments
 (0)