22 "SHAMROCK_WAIT_AFTER_SUBMIT",
"0",
"Make queues wait after submit (default: 0)");
26 auto build_queue = [](sycl::context &ctx, sycl::device &dev,
bool in_order) -> sycl::queue {
28 return sycl::queue{ctx, dev, sycl::property::queue::in_order{}};
30 return sycl::queue{ctx, dev};
34 auto parse_wait_after_submit = []() ->
bool {
35 bool ret = SHAMROCK_WAIT_AFTER_SUBMIT ==
"1";
44 bool env_var_wait_after_submit_set = parse_wait_after_submit();
std::string queue_name
The name of this queue.
bool wait_after_submit
Whether to wait for the kernel to finish after submitting it.
DeviceQueue(std::string queue_name, std::shared_ptr< DeviceContext > ctx, bool in_order)
Create a device queue.
std::shared_ptr< DeviceContext > ctx
The device context of this queue.
sycl::queue q
The SYCL queue associated with this context.
bool in_order
Whether the queue is in order.
namespace for backends this one is named only sham since shambackends is too long to write
std::string getenv_str_default_register(const char *env_var, std::string default_val, std::string desc)
Get the content of the environment variable if it exist and register it documentation,...
void warn_ln(std::string module_name, Types... var2)
Prints a log message with multiple arguments followed by a newline.