Skip to content

Commit

Permalink
Fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
amduser committed Nov 24, 2023
1 parent 2022df4 commit 9b2f413
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/mscclpp/fifo_device.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ struct FifoDeviceHandle {
#if defined(MSCCLPP_DEVICE_CUDA)
asm volatile("st.global.release.sys.v2.u64 [%0], {%1,%2};" ::"l"(triggerPtr), "l"(trigger.fst), "l"(trigger.snd));
#else // !defined(MSCCLPP_DEVICE_CUDA)
// TODO: revisit after changing clang++ to hipcc
// TODO: both atomic and clang built-ins are buggy here
triggerPtr->fst = trigger.fst;
triggerPtr->snd = trigger.snd;
#endif // !defined(MSCCLPP_DEVICE_CUDA)
Expand Down
4 changes: 2 additions & 2 deletions include/mscclpp/packet_device.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ union alignas(16) LLPacket {
#else // !defined(MSCCLPP_DEVICE_CUDA)
uint4 reg = make_uint4(val1, flag, val2, flag);
ulonglong2* p = reinterpret_cast<ulonglong2*>(&reg);
// TODO: revisit after changing clang++ to hipcc
// TODO: clang built-ins are buggy here
atomicStore(&(raw_.x), p->x, memoryOrderRelaxed);
atomicStore(&(raw_.y), p->y, memoryOrderRelaxed);
#endif
Expand All @@ -63,7 +63,7 @@ union alignas(16) LLPacket {
return (flag1 != flag) || (flag2 != flag);
#else // !defined(MSCCLPP_DEVICE_CUDA)
ulonglong2 reg;
// TODO: revisit after changing clang++ to hipcc
// TODO: clang built-ins are buggy here
reg.x = atomicLoad(&(raw_.x), memoryOrderRelaxed);
reg.y = atomicLoad(&(raw_.y), memoryOrderRelaxed);
uint4* ptr = reinterpret_cast<uint4*>(&reg);
Expand Down

0 comments on commit 9b2f413

Please sign in to comment.