HPL_sum(3)

πŸ“¦ version 2.2, in fedora 43, fedora 44

✨ HPL_sum ✨

okay bestie, gather round, we're doing a manual page from the HPL Library Functions collection and it's literally called HPL_sum πŸ’– it's giving "add two things together but make it ✨parallel✨" and honestly? we're obsessed.


🌸 NAME 🌸

HPL_sum β€” combine (sum) two buffers. that's it. that's the whole job. and she does it flawlessly πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

#include "hpl.h"

void HPL_sum( const int N, const void * IN, void * INOUT, const
HPL_T_TYPE DTYPE );

like, copy that signature exactly, don't be cute with it πŸ™ˆ


πŸ’œ DESCRIPTION πŸ’œ

HPL_sum combines (sum) two buffers. yes queen, that's literally the entire description. she is a specialist. she knows what she is. no notes πŸ”₯


πŸ‘‘ ARGUMENTS πŸ‘‘

  • N β€” (input) const int. on entry, N specifies the length of the buffers to be combined. and N must be at least zero, periodt β€” no negative lengths, we do not do that here πŸ’€
  • IN β€” (input) const void *. on entry, IN points to the input-only buffer to be combined. she's read-only bestie, hands off, don't even think about writing to her 🫢
  • INOUT β€” (input/output) void *. on entry, INOUT points to the input-output</> buffer to be combined. on exit, the entries of this array contain the combined results ✨ so like, she goes in as one thing and comes out as the sum. main character transformation arc, no cap.
  • DTYPE β€” (input) const HPL_T_TYPE. on entry, DTYPE specifies the type of the buffers operands. you gotta tell her what flavour of numbers you're working with, she's not a mind reader πŸŽ€

πŸ”₯ SEE ALSO πŸ”₯

  • HPL_broadcast (3)
  • HPL_reduce (3)
  • HPL_all_reduce (3)
  • HPL_barrier (3)
  • HPL_min (3)
  • HPL_max (3)
  • HPL_sum (3)

(yes HPL_sum (3) links to herself in her own SEE ALSO. iconic behaviour honestly. self-love πŸ’–)


and that's the whole page bestie, go forth and sum responsibly 🧚

this has been HPL_sum(3) from the HPL Library Functions collection, version HPL 2.2, dated February 24, 2016 🌸 mwah, take care of her, she's a legend πŸ’œ

πŸ“¦ where this page comes from