0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-16 15:00:51 +01: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, 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,
num_devices,
num_progs,
ircd::size(opts),
opts? ':': ' ',
opts,
};
@ -1609,11 +1610,11 @@ try
&err
)
};
#endif
throw_on_error(err);
std::swap(handle, this->handle);
call(clReleaseProgram, cl_program(handle));
#endif
}
catch(const opencl_error &e)
{