0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-09 05:29:00 +02:00

ircd:🆑 Log warnings on init rather than silent fallback.

ircd:🆑 Fix error msg; improve msg.
This commit is contained in:
Jason Volk 2022-08-26 19:56:08 -07:00
parent a3226b3b38
commit 966ef2ca95

View file

@ -233,18 +233,39 @@ ircd::cl::init::init()
// Link the libraries.
if(!init_libs())
{
log::warning
{
log, "OpenCL hardware acceleration runtime failed to link."
};
return;
}
// Get the platforms.
if(!init_platforms())
{
log::warning
{
log, "OpenCL hardware acceleration platform not found."
};
return;
}
// Report the platforms.
log_platform_info();
// Get the devices.
if(!init_devices())
{
log::warning
{
log, "OpenCL hardware acceleration device not found."
};
return;
}
// Various other inits.
init_ctxs();
@ -1081,7 +1102,8 @@ catch(const std::exception &e)
{
log::error
{
log, "Exec Write Closure :%s",
log, "Exec Map order:%d :%s",
int(order),
e.what(),
};