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:
parent
e10817127d
commit
67c3c63832
1 changed files with 3 additions and 2 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue