#include <L0Mgr.h>
Definition at line 58 of file L0Mgr.h.
std::shared_ptr< L0CommandQueue > l0::L0Device::command_queue |
( |
| ) |
const |
Definition at line 142 of file L0Mgr.cpp.
std::shared_ptr< L0CommandQueue > command_queue_
std::unique_ptr< L0CommandList > l0::L0Device::create_command_list |
( |
| ) |
const |
Definition at line 146 of file L0Mgr.cpp.
References run_benchmark_import::res.
147 ze_command_list_desc_t desc = {
148 ZE_STRUCTURE_TYPE_COMMAND_LIST_DESC,
153 ze_command_list_handle_t
res;
154 zeCommandListCreate(ctx(), device_, &desc, &res);
155 return std::make_unique<L0CommandList>(
res);
std::shared_ptr< L0Module > l0::L0Device::create_module |
( |
uint8_t * |
code, |
|
|
size_t |
len, |
|
|
bool |
log = false |
|
) |
| const |
Definition at line 171 of file L0Mgr.cpp.
References L0_SAFE_CALL.
174 ze_module_desc_t desc{
175 .stype = ZE_STRUCTURE_TYPE_MODULE_DESC,
177 .format = ZE_MODULE_FORMAT_IL_SPIRV,
179 .pInputModule = code,
181 .pConstants =
nullptr,
183 ze_module_handle_t handle;
184 ze_module_build_log_handle_t buildlog =
nullptr;
186 auto status = zeModuleCreate(ctx(), device_, &desc, &handle, &buildlog);
189 L0_SAFE_CALL(zeModuleBuildLogGetString(buildlog, &logSize,
nullptr));
190 std::vector<char> strLog(logSize);
191 L0_SAFE_CALL(zeModuleBuildLogGetString(buildlog, &logSize, strLog.data()));
193 out.open(
"log.txt", std::ios::app);
195 std::cerr <<
"Unable to open log file.\n";
197 out << std::string(strLog.begin(), strLog.end());
204 return std::make_shared<L0Module>(handle);
#define L0_SAFE_CALL(call)
The documentation for this class was generated from the following files:
- /home/jenkins-slave/workspace/core-os-doxygen/L0Mgr/L0Mgr.h
- /home/jenkins-slave/workspace/core-os-doxygen/L0Mgr/L0Mgr.cpp
- /home/jenkins-slave/workspace/core-os-doxygen/L0Mgr/L0MgrNoL0.cpp