[PATCH] D150427: [AMDGPU] Non hostcall printf support for HIP
Vikram Hegde via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu May 18 05:13:17 PDT 2023
vikramRH added inline comments.
================
Comment at: llvm/lib/Transforms/Utils/AMDGPUEmitPrintf.cpp:426-427
+
+ // The buffered version still follows OpenCL printf standards for
+ // printf return value, i.e 0 on success, 1 on failure.
+ ConstantPointerNull *zeroIntPtr =
----------------
sameerds wrote:
> So we cannot use a buffered printf in HIP?
I guess hostcall version returns number of bytes printed as the printf return value, This is not done in Buffered case since we do not print stuff in "real time", instead I have decided to stick with OpenCL standard (return 0 on success and -1 on failure)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D150427/new/
https://reviews.llvm.org/D150427
More information about the cfe-commits
mailing list