Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix segfault with -O0-compiled kernels #13

Open
wants to merge 1 commit into
base: rocm-5.6.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions rocclr/device/devhcprintf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include <cstdio>
#include <cstring>
#include <string>
#include <cstdint>

static void checkPrintf(FILE* stream, int* outCount, const char* fmt, ...) {
va_list args;
Expand Down
6 changes: 3 additions & 3 deletions rocclr/device/rocm/rocblit.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -291,13 +291,13 @@ class KernelBlitManager : public DmaBlitManager {
StreamOpsWait,
Scheduler,
GwsInit,
InitHeap,
BlitLinearTotal,
FillImage = BlitLinearTotal,
BlitCopyImage,
BlitCopyImage1DA,
BlitCopyImageToBuffer,
BlitCopyBufferToImage,
InitHeap,
BlitTotal
};

Expand Down Expand Up @@ -596,9 +596,9 @@ static const char* BlitName[KernelBlitManager::BlitTotal] = {
"__amd_rocclr_fillBufferAligned", "__amd_rocclr_fillBufferAligned2D", "__amd_rocclr_copyBuffer",
"__amd_rocclr_copyBufferAligned", "__amd_rocclr_copyBufferRect",
"__amd_rocclr_copyBufferRectAligned", "__amd_rocclr_streamOpsWrite", "__amd_rocclr_streamOpsWait",
"__amd_rocclr_scheduler", "__amd_rocclr_gwsInit", "__amd_rocclr_fillImage",
"__amd_rocclr_scheduler", "__amd_rocclr_gwsInit", "__amd_rocclr_initHeap", "__amd_rocclr_fillImage",
"__amd_rocclr_copyImage", "__amd_rocclr_copyImage1DA", "__amd_rocclr_copyImageToBuffer",
"__amd_rocclr_copyBufferToImage", "__amd_rocclr_initHeap"
"__amd_rocclr_copyBufferToImage"
};

inline void KernelBlitManager::setArgument(amd::Kernel* kernel, size_t index,
Expand Down