mirror of
https://github.com/ROCm/composable_kernel.git
synced 2026-05-11 00:40:09 +00:00
Reorganize files, Part 1 (#119)
* delete obselete files * move files * build * update cmake * update cmake * fix build * reorg examples * update cmake for example and test
This commit is contained in:
22
include/ck/utility/print.hpp
Normal file
22
include/ck/utility/print.hpp
Normal file
@@ -0,0 +1,22 @@
|
||||
#ifndef CK_PRINT_HPP
|
||||
#define CK_PRINT_HPP
|
||||
|
||||
#include "array.hpp"
|
||||
#include "statically_indexed_array.hpp"
|
||||
#include "container_helper.hpp"
|
||||
#include "sequence.hpp"
|
||||
|
||||
namespace ck {
|
||||
|
||||
template <typename T>
|
||||
__host__ __device__ void print_array(const char* s, T a)
|
||||
{
|
||||
constexpr index_t nsize = a.Size();
|
||||
|
||||
printf("%s size %d, {", s, nsize);
|
||||
static_for<0, nsize, 1>{}([&a](auto i) constexpr { printf("%d, ", int32_t{a[i]}); });
|
||||
printf("}\n");
|
||||
}
|
||||
|
||||
} // namespace ck
|
||||
#endif
|
||||
Reference in New Issue
Block a user