Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,9 @@ static inline VkFFTResult VkFFT_CompileKernel(VkFFTApplication* app, VkFFTAxis*

if (result != NVRTC_SUCCESS) {
printf("nvrtcCompileProgram error: %s\n", nvrtcGetErrorString(result));
char* log = (char*)malloc(sizeof(char) * 4000000);
size_t logSize;
nvrtcGetProgramLogSize(prog, &logSize);
char* log = (char*)malloc(sizeof(char) * logSize);
if (!log) {
free(code0);
code0 = 0;
Expand Down Expand Up @@ -553,7 +555,9 @@ static inline VkFFTResult VkFFT_CompileKernel(VkFFTApplication* app, VkFFTAxis*
free(opts[0]);
if (result != HIPRTC_SUCCESS) {
printf("hiprtcCompileProgram error: %s\n", hiprtcGetErrorString(result));
char* log = (char*)malloc(sizeof(char) * 100000);
size_t logSize;
hiprtcGetProgramLogSize(prog, &logSize);
char* log = (char*)malloc(sizeof(char) * logSize);
if (!log) {
free(code0);
code0 = 0;
Expand Down