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:
parent
f9c3a617d2
commit
bf36da742b
1 changed files with 25 additions and 3 deletions
28
ircd/cl.cc
28
ircd/cl.cc
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue