mirror of
https://github.com/ROCm/composable_kernel.git
synced 2026-05-11 08:50:17 +00:00
* delete obselete files * move files * build * update cmake * update cmake * fix build * reorg examples * update cmake for example and test
23 lines
475 B
C++
23 lines
475 B
C++
#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
|