Check the error return of nvrtcGetProgramLogSize and nvrtcGetProgramLog (#30663)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/30663
Yes they can fail. See https://github.com/ROCm-Developer-Tools/HIP/issues/1706
Signed-off-by: Edward Z. Yang <ezyang@fb.com>
Test Plan: Imported from OSS
Differential Revision: D18810088
Pulled By: ezyang
fbshipit-source-id: 96186e71c9a195bdbbed811e7ba8dc40bec09eae