Skip to content

Commit

Permalink
Fixes #539:
Browse files Browse the repository at this point in the history
The NVRTC log size includes the trailing nul ('\0') characer, but the
PTX log doesn't; so, making the distinction in the code obtaining each
of them
  • Loading branch information
Eyal Rozenberg committed Aug 1, 2023
1 parent 1833895 commit f8473cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cuda/rtc/compilation_output.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ inline size_t get_log_size<cuda_cpp>(program::handle_t<cuda_cpp> program_handle,
auto status = nvrtcGetProgramLogSize(program_handle, &size);
throw_if_error<cuda_cpp>(status, "Failed obtaining compilation log size for "
+ identify<cuda_cpp>(program_handle, program_name));
return size;
return (size > 0) ? size - 1 : 0;
}

#if CUDA_VERSION >= 11010
Expand Down

0 comments on commit f8473cb

Please sign in to comment.