"git@developer.sourcefind.cn:cnjsdfcy/simbricks.git" did not exist on "c03f52a4c133737a2cb5091a2c38973e32562f79"
Commit fa53a725 authored by Po-Yen, Chen's avatar Po-Yen, Chen
Browse files

Merge branch 'feature/support-readfirstlane-for-object-types' into...

Merge branch 'feature/support-readfirstlane-for-object-types' into feature/simplify-karg-for-device-gemm-xdl
parents e83439ad fb51f338
...@@ -57,7 +57,7 @@ __device__ auto readfirstlane(const Object& obj) ...@@ -57,7 +57,7 @@ __device__ auto readfirstlane(const Object& obj)
alignas(Object) std::byte memory[ObjectSize]; alignas(Object) std::byte memory[ObjectSize];
const auto* from = reinterpret_cast<const std::byte*>(&obj); auto* const from = reinterpret_cast<const std::byte*>(&obj);
static_for<0, ObjectSize, SgprSize>{}([&](auto offset) { static_for<0, ObjectSize, SgprSize>{}([&](auto offset) {
*reinterpret_cast<Sgpr*>(memory + offset) = *reinterpret_cast<Sgpr*>(memory + offset) =
readfirstlane(*reinterpret_cast<const Sgpr*>(from + offset)); readfirstlane(*reinterpret_cast<const Sgpr*>(from + offset));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment