rename files, added header guard, added namespace

[ROCm/composable_kernel commit: 88b77181aa]
This commit is contained in:
Chao Liu
2019-06-11 14:35:59 -05:00
parent 88d7d31a76
commit 3dc2ff612c
62 changed files with 580 additions and 1844 deletions

View File

@@ -0,0 +1,19 @@
#ifndef CK_THREADWISE_GENERIC_TENSOR_OP_HPP
#define CK_THREADWISE_GENERIC_TENSOR_OP_HPP
#include "ConstantTensorDescriptor.hpp"
#include "ConstantMergedTensorDescriptor.hpp"
namespace ck {
template <class Float, class TDesc>
__device__ void threadwise_generic_tensor_set_zero(TDesc, Float* __restrict__ p)
{
static_ford<decltype(TDesc::GetLengths())>{}([&](auto multi_id) {
constexpr index_t offset = TDesc::GetOffsetFromMultiIndex(multi_id);
p[offset] = static_cast<Float>(0);
});
}
} // namespace ck
#endif