[libc] Add more missing GPU utilities
authorJoseph Huber <jhuber6@vols.utk.edu>
Thu, 27 Apr 2023 19:35:47 +0000 (14:35 -0500)
committerJoseph Huber <jhuber6@vols.utk.edu>
Thu, 27 Apr 2023 19:37:00 +0000 (14:37 -0500)
commitefe5e2bbb66500a1f37f683d88ac9e4716802292
tree38253805b95ba8eb3732d8f9dc1f3471c50e62c2
parent460ea850148b10dfd30cce32b2ac600b313324c4
[libc] Add more missing GPU utilities

Summary:
This patch adds a way to get the total number of blocks and implement
the wave sync intrinsic for AMDGPU. This is a no-op, but that may change
in the future so we might as well implement it right.
libc/src/__support/GPU/amdgpu/utils.h
libc/src/__support/GPU/generic/utils.h
libc/src/__support/GPU/nvptx/utils.h