0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-28 19:58:53 +02:00

ircd:🆑 Improve link debuglog; throw at runtime when not available.

This commit is contained in:
Jason Volk 2022-05-08 18:20:45 -07:00
parent e10817127d
commit 67c3c63832

View file

@ -1580,10 +1580,11 @@ try
log::logf log::logf
{ {
log, log::level::DEBUG, log, log::level::DEBUG,
"code(%p) linking devs:%zu progs:%zu %c%s", "code(%p) linking devs:%zu progs:%zu opts:%zu$B %c%s",
this, this,
num_devices, num_devices,
num_progs, num_progs,
ircd::size(opts),
opts? ':': ' ', opts? ':': ' ',
opts, opts,
}; };
@ -1609,11 +1610,11 @@ try
&err &err
) )
}; };
#endif
throw_on_error(err); throw_on_error(err);
std::swap(handle, this->handle); std::swap(handle, this->handle);
call(clReleaseProgram, cl_program(handle)); call(clReleaseProgram, cl_program(handle));
#endif
} }
catch(const opencl_error &e) catch(const opencl_error &e)
{ {