0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 18:22:50 +01:00

ircd:🆑 Fix warp size query related; stop propagation w/ log.

This commit is contained in:
Jason Volk 2022-05-01 12:16:29 -07:00
parent f9c3a617d2
commit bf36da742b

View file

@ -246,11 +246,11 @@ ircd::cl::init::init()
if(!init_devices()) if(!init_devices())
return; return;
// Report the devices.
log_dev_info();
// Various other inits. // Various other inits.
init_ctxs(); init_ctxs();
// Report the devices.
log_dev_info();
} }
ircd::cl::init::~init() ircd::cl::init::~init()
@ -658,6 +658,7 @@ ircd::cl::log_dev_info(const uint i,
uint uint
ircd::cl::query_warp_size(cl_context context, ircd::cl::query_warp_size(cl_context context,
cl_device_id device) cl_device_id device)
try
{ {
//TODO: XXX //TODO: XXX
assert(primary); assert(primary);
@ -678,6 +679,27 @@ ircd::cl::query_warp_size(cl_context context,
return kern.preferred_group_size_multiple(device); return kern.preferred_group_size_multiple(device);
} }
catch(const ctx::interrupted &)
{
throw;
}
catch(const ctx::terminated &)
{
throw;
}
catch(const std::exception &e)
{
log::logf
{
log, log::level::DWARNING,
"context(%p): device(%p): Failed to query warp size :%s",
static_cast<const void *>(context),
static_cast<const void *>(device),
e.what(),
};
return 0;
}
ircd::string_view ircd::string_view
ircd::cl::version_str(const mutable_buffer &buf, ircd::cl::version_str(const mutable_buffer &buf,