mirror of
https://github.com/ROCm/composable_kernel.git
synced 2026-04-19 22:39:03 +00:00
Rangify STL algorithms (#438)
* Rangify STL algorithms This commit adapts rangified std::copy(), std::fill() & std::transform() * Re-write more std::copy() calls * Re-write std::copy() calls in profiler
This commit is contained in:
@@ -221,12 +221,12 @@ int main(int argc, char* argv[])
|
||||
std::array<index_t, 3> arrOutLengths;
|
||||
std::array<index_t, 3> arrOutStrides;
|
||||
|
||||
std::copy(inLengths_1.begin(), inLengths_1.end(), arrInLengths_1.begin());
|
||||
std::copy(inStrides_1.begin(), inStrides_1.end(), arrInStrides_1.begin());
|
||||
std::copy(inLengths_2.begin(), inLengths_2.end(), arrInLengths_2.begin());
|
||||
std::copy(inStrides_2.begin(), inStrides_2.end(), arrInStrides_2.begin());
|
||||
std::copy(outLengths.begin(), outLengths.end(), arrOutLengths.begin());
|
||||
std::copy(outStrides.begin(), outStrides.end(), arrOutStrides.begin());
|
||||
ck::ranges::copy(inLengths_1, arrInLengths_1.begin());
|
||||
ck::ranges::copy(inStrides_1, arrInStrides_1.begin());
|
||||
ck::ranges::copy(inLengths_2, arrInLengths_2.begin());
|
||||
ck::ranges::copy(inStrides_2, arrInStrides_2.begin());
|
||||
ck::ranges::copy(outLengths, arrOutLengths.begin());
|
||||
ck::ranges::copy(outStrides, arrOutStrides.begin());
|
||||
|
||||
auto reduce_1 = DeviceReduceInstance_1{};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user