From 5e07154af796b5cd64b0ff6d7c34f9d26e6a8d21 Mon Sep 17 00:00:00 2001 From: bdenhollander <44237618+bdenhollander@users.noreply.github.com> Date: Mon, 7 Aug 2023 13:35:06 -0400 Subject: [PATCH] Fix incomplete PTX file written to disk Bytes written is sometimes less than original ptx.size() and hipModuleLoad throws an a string too long exception. Setting binary output writes all the bytes. --- platforms/hip/src/HipContext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platforms/hip/src/HipContext.cpp b/platforms/hip/src/HipContext.cpp index 771496b..1a1a507 100644 --- a/platforms/hip/src/HipContext.cpp +++ b/platforms/hip/src/HipContext.cpp @@ -607,7 +607,7 @@ hipModule_t HipContext::createModule(const string source, const map