|
7 | 7 |
|
8 | 8 | #include "level_zero/core/source/context/context_imp.h" |
9 | 9 |
|
| 10 | +#include "level_zero/core/source/device/device.h" |
| 11 | + |
10 | 12 | namespace L0 { |
11 | 13 |
|
12 | 14 | ze_result_t ContextImp::destroy() { |
@@ -111,4 +113,35 @@ ze_result_t ContextImp::getMemAllocProperties(const void *ptr, |
111 | 113 | phDevice); |
112 | 114 | } |
113 | 115 |
|
| 116 | +ze_result_t ContextImp::createModule(ze_device_handle_t hDevice, |
| 117 | + const ze_module_desc_t *desc, |
| 118 | + ze_module_handle_t *phModule, |
| 119 | + ze_module_build_log_handle_t *phBuildLog) { |
| 120 | + return L0::Device::fromHandle(hDevice)->createModule(desc, phModule, phBuildLog); |
| 121 | +} |
| 122 | + |
| 123 | +ze_result_t ContextImp::createSampler(ze_device_handle_t hDevice, |
| 124 | + const ze_sampler_desc_t *pDesc, |
| 125 | + ze_sampler_handle_t *phSampler) { |
| 126 | + return L0::Device::fromHandle(hDevice)->createSampler(pDesc, phSampler); |
| 127 | +} |
| 128 | + |
| 129 | +ze_result_t ContextImp::createCommandQueue(ze_device_handle_t hDevice, |
| 130 | + const ze_command_queue_desc_t *desc, |
| 131 | + ze_command_queue_handle_t *commandQueue) { |
| 132 | + return L0::Device::fromHandle(hDevice)->createCommandQueue(desc, commandQueue); |
| 133 | +} |
| 134 | + |
| 135 | +ze_result_t ContextImp::createCommandList(ze_device_handle_t hDevice, |
| 136 | + const ze_command_list_desc_t *desc, |
| 137 | + ze_command_list_handle_t *commandList) { |
| 138 | + return L0::Device::fromHandle(hDevice)->createCommandList(desc, commandList); |
| 139 | +} |
| 140 | + |
| 141 | +ze_result_t ContextImp::createCommandListImmediate(ze_device_handle_t hDevice, |
| 142 | + const ze_command_queue_desc_t *desc, |
| 143 | + ze_command_list_handle_t *commandList) { |
| 144 | + return L0::Device::fromHandle(hDevice)->createCommandListImmediate(desc, commandList); |
| 145 | +} |
| 146 | + |
114 | 147 | } // namespace L0 |
0 commit comments