Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
yangql
composable_kernel-1
Commits
d09ea4f4
Unverified
Commit
d09ea4f4
authored
Aug 06, 2021
by
Chao Liu
Committed by
GitHub
Aug 06, 2021
Browse files
Update develop (#5)
* refactor
parent
f6edda61
Changes
58
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
28 additions
and
23 deletions
+28
-23
host/online_compile/include/kernel_cache.hpp
host/online_compile/include/kernel_cache.hpp
+2
-2
host/online_compile/include/logger.hpp
host/online_compile/include/logger.hpp
+2
-2
host/online_compile/include/manage_ptr.hpp
host/online_compile/include/manage_ptr.hpp
+3
-3
host/online_compile/include/md5.hpp
host/online_compile/include/md5.hpp
+2
-2
host/online_compile/include/op_kernel_args.hpp
host/online_compile/include/op_kernel_args.hpp
+5
-0
host/online_compile/include/simple_hash.hpp
host/online_compile/include/simple_hash.hpp
+2
-2
host/online_compile/include/stringutils.hpp
host/online_compile/include/stringutils.hpp
+2
-2
host/online_compile/include/target_properties.hpp
host/online_compile/include/target_properties.hpp
+2
-2
host/online_compile/include/tmp_dir.hpp
host/online_compile/include/tmp_dir.hpp
+2
-2
host/online_compile/include/write_file.hpp
host/online_compile/include/write_file.hpp
+2
-2
host/online_compile/kernel.cpp.in
host/online_compile/kernel.cpp.in
+2
-2
host/online_compile/kernel_includes.cpp.in
host/online_compile/kernel_includes.cpp.in
+2
-2
host/online_compile/kernels_batch.cpp.in
host/online_compile/kernels_batch.cpp.in
+0
-0
host/solver/include/conv_igemm_fwd_v6r1_dlops_nchw_kcyx_nkhw.hpp
...lver/include/conv_igemm_fwd_v6r1_dlops_nchw_kcyx_nkhw.hpp
+0
-0
host/solver/include/conv_tunable_fwd_v4r4_dlops_nchw_kcyx_nkhw.hpp
...er/include/conv_tunable_fwd_v4r4_dlops_nchw_kcyx_nkhw.hpp
+0
-0
host/solver/include/conv_tunable_fwd_v4r4_xdlops_nchw_kcyx_nkhw.hpp
...r/include/conv_tunable_fwd_v4r4_xdlops_nchw_kcyx_nkhw.hpp
+0
-0
host/solver/include/conv_tunable_fwd_v4r4_xdlops_nhwc_kyxc_nhwk.hpp
...r/include/conv_tunable_fwd_v4r4_xdlops_nhwc_kyxc_nhwk.hpp
+0
-0
host/solver/include/convolution_problem_descriptor.hpp
host/solver/include/convolution_problem_descriptor.hpp
+0
-0
No files found.
host/online_compil
ation
/include/kernel_cache.hpp
→
host/online_compil
e
/include/kernel_cache.hpp
View file @
d09ea4f4
...
...
@@ -49,7 +49,7 @@
#include <unordered_map>
#include <vector>
namespace
o
lC
ompile
{
namespace
o
nline_c
ompile
{
/**
* @brief The KernelCache class Build and cache kernels
...
...
@@ -92,6 +92,6 @@ class KernelCache
ProgramMap
program_map
;
};
}
// namespace o
lC
ompile
}
// namespace o
nline_c
ompile
#endif // GUARD_OLC_KERNEL_CACHE_HPP_
host/online_compil
ation
/include/logger.hpp
→
host/online_compil
e
/include/logger.hpp
View file @
d09ea4f4
...
...
@@ -3,7 +3,7 @@
#include <fstream>
namespace
o
lC
ompile
{
namespace
o
nline_c
ompile
{
enum
class
LogLevel
{
...
...
@@ -18,6 +18,6 @@ std::ostream& fdt_log(LogLevel level, const char* header, const char* content);
std
::
ostream
&
fdt_log
();
void
fdt_log_flush
();
};
// namespace o
lC
ompile
};
// namespace o
nline_c
ompile
#endif
host/online_compil
ation
/include/manage_ptr.hpp
→
host/online_compil
e
/include/manage_ptr.hpp
View file @
d09ea4f4
...
...
@@ -29,7 +29,7 @@
#include <memory>
#include <type_traits>
namespace
o
lC
ompile
{
namespace
o
nline_c
ompile
{
template
<
class
F
,
F
f
>
struct
manage_deleter
...
...
@@ -68,9 +68,9 @@ using remove_ptr = typename std::
template
<
class
T
>
using
shared
=
std
::
shared_ptr
<
remove_ptr
<
T
>>
;
}
// namespace o
lC
ompile
}
// namespace o
nline_c
ompile
#define OLC_MANAGE_PTR(T, F) \
o
lC
ompile::manage_ptr<typename std::remove_pointer<T>::type, decltype(&F), &F> // NOLINT
o
nline_c
ompile::manage_ptr<typename std::remove_pointer<T>::type, decltype(&F), &F> // NOLINT
#endif
host/online_compil
ation
/include/md5.hpp
→
host/online_compil
e
/include/md5.hpp
View file @
d09ea4f4
...
...
@@ -3,10 +3,10 @@
#include <string>
namespace
o
lC
ompile
{
namespace
o
nline_c
ompile
{
std
::
string
md5
(
std
::
string
s
);
}
// namespace o
lC
ompile
}
// namespace o
nline_c
ompile
#endif
host/online_compil
ation
/include/op_kernel_args.hpp
→
host/online_compil
e
/include/op_kernel_args.hpp
View file @
d09ea4f4
...
...
@@ -6,6 +6,9 @@
#include <half.hpp>
#include <boost/container/small_vector.hpp>
namespace
online_compile
{
struct
OpKernelArg
{
...
...
@@ -32,4 +35,6 @@ struct OpKernelArg
bool
is_ptr
=
false
;
};
}
// namespace online_compile
#endif
host/online_compil
ation
/include/simple_hash.hpp
→
host/online_compil
e
/include/simple_hash.hpp
View file @
d09ea4f4
...
...
@@ -29,7 +29,7 @@
#include <string>
namespace
o
lC
ompile
{
namespace
o
nline_c
ompile
{
struct
SimpleHash
{
size_t
operator
()(
const
std
::
pair
<
std
::
string
,
std
::
string
>&
p
)
const
...
...
@@ -39,6 +39,6 @@ struct SimpleHash
}
};
}
// namespace o
lC
ompile
}
// namespace o
nline_c
ompile
#endif
host/online_compil
ation
/include/stringutils.hpp
→
host/online_compil
e
/include/stringutils.hpp
View file @
d09ea4f4
...
...
@@ -36,7 +36,7 @@
#define OLC_STRINGIZE_1(...) #__VA_ARGS__
#define OLC_STRINGIZE(...) OLC_STRINGIZE_1(__VA_ARGS__)
namespace
o
lC
ompile
{
namespace
o
nline_c
ompile
{
inline
std
::
string
ReplaceString
(
std
::
string
subject
,
const
std
::
string
&
search
,
const
std
::
string
&
replace
)
...
...
@@ -128,6 +128,6 @@ inline std::vector<std::string> SplitSpaceSeparated(const std::string& in,
return
rv
;
}
}
// namespace o
lC
ompile
}
// namespace o
nline_c
ompile
#endif // GUARD_OLC_STRINGUTILS_HPP
host/online_compil
ation
/include/target_properties.hpp
→
host/online_compil
e
/include/target_properties.hpp
View file @
d09ea4f4
...
...
@@ -29,7 +29,7 @@
#include <boost/optional.hpp>
#include <string>
namespace
o
lC
ompile
{
namespace
o
nline_c
ompile
{
struct
Handle
;
...
...
@@ -51,6 +51,6 @@ struct TargetProperties
boost
::
optional
<
bool
>
sramecc_reported
=
boost
::
none
;
};
}
// namespace o
lC
ompile
}
// namespace o
nline_c
ompile
#endif // GUARD_OLC_TARGET_PROPERTIES_HPP
host/online_compil
ation
/include/tmp_dir.hpp
→
host/online_compil
e
/include/tmp_dir.hpp
View file @
d09ea4f4
...
...
@@ -4,7 +4,7 @@
#include <string>
#include <boost/filesystem/path.hpp>
namespace
o
lC
ompile
{
namespace
o
nline_c
ompile
{
void
SystemCmd
(
std
::
string
cmd
);
...
...
@@ -21,6 +21,6 @@ struct TmpDir
~
TmpDir
();
};
}
// namespace o
lC
ompile
}
// namespace o
nline_c
ompile
#endif
host/online_compil
ation
/include/write_file.hpp
→
host/online_compil
e
/include/write_file.hpp
View file @
d09ea4f4
...
...
@@ -5,7 +5,7 @@
#include <manage_ptr.hpp>
#include <fstream>
namespace
o
lC
ompile
{
namespace
o
nline_c
ompile
{
using
FilePtr
=
OLC_MANAGE_PTR
(
FILE
*
,
std
::
fclose
);
...
...
@@ -25,6 +25,6 @@ inline void WriteFile(const std::vector<char>& content, const boost::filesystem:
throw
std
::
runtime_error
(
"Failed to write to file"
);
}
}
// namespace o
lC
ompile
}
// namespace o
nline_c
ompile
#endif
host/online_compil
ation
/kernel.cpp.in
→
host/online_compil
e
/kernel.cpp.in
View file @
d09ea4f4
...
...
@@ -31,7 +31,7 @@
${KERNELS_DECLS}
// clang-format on
namespace o
lC
ompile {
namespace o
nline_c
ompile {
const std::map<std::string, std::string>& kernels()
{
...
...
@@ -67,4 +67,4 @@ std::string GetKernelSrc(std::string name)
return it->second;
}
} // namespace o
lC
ompile
} // namespace o
nline_c
ompile
host/online_compil
ation
/kernel_includes.cpp.in
→
host/online_compil
e
/kernel_includes.cpp.in
View file @
d09ea4f4
...
...
@@ -29,7 +29,7 @@
#include <stdexcept>
#include <vector>
namespace o
lC
ompile {
namespace o
nline_c
ompile {
static inline bool EndsWith(const std::string& value, const std::string& suffix)
{
...
...
@@ -77,4 +77,4 @@ std::vector<std::string> GetHipKernelIncList()
return keys;
}
} // namespace o
lC
ompile
} // namespace o
nline_c
ompile
host/online_compil
ation
/kernels_batch.cpp.in
→
host/online_compil
e
/kernels_batch.cpp.in
View file @
d09ea4f4
File moved
host/
driver_online
/include/conv_igemm_fwd_v6r1_dlops_nchw_kcyx_nkhw.hpp
→
host/
solver
/include/conv_igemm_fwd_v6r1_dlops_nchw_kcyx_nkhw.hpp
View file @
d09ea4f4
File moved
host/
driver_online
/include/conv_tunable_fwd_v4r4_dlops_nchw_kcyx_nkhw.hpp
→
host/
solver
/include/conv_tunable_fwd_v4r4_dlops_nchw_kcyx_nkhw.hpp
View file @
d09ea4f4
File moved
host/
driver_online
/include/conv_tunable_fwd_v4r4_xdlops_nchw_kcyx_nkhw.hpp
→
host/
solver
/include/conv_tunable_fwd_v4r4_xdlops_nchw_kcyx_nkhw.hpp
View file @
d09ea4f4
File moved
host/
driver_online
/include/conv_tunable_fwd_v4r4_xdlops_nhwc_kyxc_nhwk.hpp
→
host/
solver
/include/conv_tunable_fwd_v4r4_xdlops_nhwc_kyxc_nhwk.hpp
View file @
d09ea4f4
File moved
host/
driver_online
/include/convolution_problem_descriptor.hpp
→
host/
solver
/include/convolution_problem_descriptor.hpp
View file @
d09ea4f4
File moved
Prev
1
2
3
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment