Skip to content

Commit ebab034

Browse files
committed
Address PR feedback
1 parent fd132cd commit ebab034

File tree

11 files changed

+12
-17
lines changed

11 files changed

+12
-17
lines changed

sycl/doc/extensions/supported/sycl_ext_oneapi_backend_level_zero.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,8 +275,8 @@ struct {
275275
<td>
276276
277277
``` C++
278-
using syclext = sycl::ext::oneapi::experimental;
279-
syclext::command_graph<syclext::graph_state::executable>
278+
ext::oneapi::experimental::command_graph<
279+
ext::oneapi::experimental::graph_state::executable>
280280
```
281281

282282
See [sycl_ext_oneapi_graph](../experimental/sycl_ext_oneapi_graph.asciidoc)

sycl/source/detail/queue_impl.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1016,7 +1016,7 @@ class queue_impl {
10161016
#ifndef __INTEL_PREVIEW_BREAKING_CHANGES
10171017
// CMPLRLLVM-66082
10181018
// This member should be part of the sycl::interop_handle class, but it
1019-
// in an API breaking change. So member lives here temporarily where it can
1019+
// is an API breaking change. So member lives here temporarily where it can
10201020
// be accessed through the queue member of the interop_handle
10211021
ur_exp_command_buffer_handle_t MInteropGraph{};
10221022
#endif

sycl/source/detail/scheduler/commands.cpp

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3089,19 +3089,18 @@ ur_result_t ExecCGCommand::enqueueImpCommandBuffer() {
30893089

30903090
ur_exp_command_buffer_handle_t InteropCommandBuffer =
30913091
ChildCommandBuffer ? ChildCommandBuffer : MCommandBuffer;
3092-
#ifdef __INTEL_PREVIEW_BREAKING_CHANGES
3092+
interop_handle IH{ReqToMem, MQueue, DeviceImpl, ContextImpl,
3093+
InteropCommandBuffer};
3094+
CommandBufferNativeCommandData CustomOpData{
3095+
IH, HostTask->MHostTask->MInteropTask};
3096+
3097+
#ifndef __INTEL_PREVIEW_BREAKING_CHANGES
30933098
// CMPLRLLVM-66082
30943099
// The native command-buffer should be a member of the sycl::interop_handle
30953100
// class, but it is in an ABI breaking change to add it. So member lives in
30963101
// the queue as a intermediate workaround.
3097-
interop_handle IH{ReqToMem, MQueue, DeviceImpl, ContextImpl,
3098-
InteropCommandBuffer};
3099-
#else
31003102
MQueue->setInteropGraph(InteropCommandBuffer);
3101-
interop_handle IH{ReqToMem, MQueue, DeviceImpl, ContextImpl};
31023103
#endif
3103-
CommandBufferNativeCommandData CustomOpData{
3104-
IH, HostTask->MHostTask->MInteropTask};
31053104

31063105
Adapter->call<UrApiKind::urCommandBufferAppendNativeCommandExp>(
31073106
MCommandBuffer, CommandBufferInteropFreeFunc, &CustomOpData,

sycl/test-e2e/EnqueueNativeCommand/Graph/cuda_explicit_usm.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ int main() {
7171
Queue.ext_oneapi_graph(ExecGraph).wait();
7272

7373
std::vector<int> HostData(Size);
74-
7574
Queue.copy(PtrY, HostData.data(), Size).wait();
7675
for (size_t i = 0; i < Size; i++) {
7776
const int Ref = i * 2;

sycl/test-e2e/EnqueueNativeCommand/Graph/cuda_multiple_native_commands.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ int main() {
116116
Graph.end_recording();
117117

118118
auto ExecGraph = Graph.finalize();
119-
Queue.ext_oneapi_graph(ExecGraph).wait();
119+
Queue.ext_oneapi_graph(ExecGraph);
120120

121121
std::vector<int> HostDataY(Size);
122122
std::vector<int> HostDataZ(Size);

sycl/test-e2e/EnqueueNativeCommand/Graph/cuda_record_usm.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ int main() {
9999
Queue.ext_oneapi_graph(ExecGraph).wait();
100100

101101
std::vector<int> HostData(Size);
102-
103102
Queue.copy(PtrY, HostData.data(), Size).wait();
104103
for (size_t i = 0; i < Size; i++) {
105104
const int Ref = i * 2;

sycl/test-e2e/EnqueueNativeCommand/Graph/hip_explicit_usm.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ int main() {
6767
Queue.ext_oneapi_graph(ExecGraph).wait();
6868

6969
std::vector<int> HostData(Size);
70-
7170
Queue.copy(PtrY, HostData.data(), Size).wait();
7271
for (size_t i = 0; i < Size; i++) {
7372
const int Ref = i * 2;

sycl/test-e2e/EnqueueNativeCommand/Graph/hip_record_usm.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ int main() {
105105
Queue.ext_oneapi_graph(ExecGraph).wait();
106106

107107
std::vector<int> HostData(Size);
108-
109108
Queue.copy(PtrY, HostData.data(), Size).wait();
110109
for (size_t i = 0; i < Size; i++) {
111110
const int Ref = i * 2;

sycl/test-e2e/EnqueueNativeCommand/Graph/level-zero_usm.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ int main() {
5858
Queue.ext_oneapi_graph(ExecGraph).wait();
5959

6060
std::vector<int> HostData(Size);
61-
6261
Queue.copy(PtrY, HostData.data(), Size).wait();
6362
for (size_t i = 0; i < Size; i++) {
6463
const int Ref = i * 2;

unified-runtime/scripts/core/EXP-COMMAND-BUFFER.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ Changelog
532532
| 1.10 | Remove extension string macro, make device info enum |
533533
| | primary mechanism for reporting support. |
534534
+-----------+-------------------------------------------------------+
535-
| 1.11 | Support native commands. |
535+
| 1.11 | Support native commands. |
536536
+-----------+-------------------------------------------------------+
537537

538538
Contributors

unified-runtime/source/adapters/level_zero/v2/api.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ ur_result_t UR_APICALL urUSMPoolCreateExp(ur_context_handle_t hContext,
199199
logger::error("{} function not implemented!", __FUNCTION__);
200200
return UR_RESULT_ERROR_UNSUPPORTED_FEATURE;
201201
}
202+
202203
ur_result_t UR_APICALL urUSMPoolDestroyExp(ur_context_handle_t hContext,
203204
ur_device_handle_t hDevice,
204205
ur_usm_pool_handle_t hPool) {

0 commit comments

Comments
 (0)