Summary:
Two functions were not directed ad NVRTC.
It's a bit hard to test this, as the fuser usually produces correct code - unless I try to hack on it. :)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/18327
Differential Revision:
D14579285
Pulled By: soumith
fbshipit-source-id:
1be7ba461cc473d514ba619507742a47d4d7c97e
nvrtc().nvrtcCompileProgram(program, args.size(), args.data());
if (result == NVRTC_ERROR_COMPILATION) {
size_t logsize;
- nvrtcGetProgramLogSize(program, &logsize);
+ nvrtc().nvrtcGetProgramLogSize(program, &logsize);
std::vector<char> log(logsize);
- nvrtcGetProgramLog(program, log.data());
+ nvrtc().nvrtcGetProgramLog(program, log.data());
std::stringstream cu;
cu << log.data();
throw std::runtime_error(cu.str());
_(cuOccupancyMaxActiveBlocksPerMultiprocessor) \
_(cuGetErrorString) \
_(nvrtcGetErrorString) \
+ _(nvrtcGetProgramLogSize) \
+ _(nvrtcGetProgramLog) \
_(cuLaunchKernel) \
_(nvrtcCompileProgram) \
_(cuCtxGetCurrent) \