Skip to content

Commit 482eec0

Browse files
committed
Tidy and move common adapter code to ur_common
1 parent 69a56ea commit 482eec0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+632
-658
lines changed

source/adapters/cuda/CMakeLists.txt

-6
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ add_ur_adapter(${TARGET_NAME}
3838
${CMAKE_CURRENT_SOURCE_DIR}/tracing.cpp
3939
${CMAKE_CURRENT_SOURCE_DIR}/usm.cpp
4040
${CMAKE_CURRENT_SOURCE_DIR}/usm_p2p.cpp
41-
${CMAKE_CURRENT_SOURCE_DIR}/../../ur/ur.cpp
42-
${CMAKE_CURRENT_SOURCE_DIR}/../../ur/ur.hpp
4341
)
4442

4543
set_target_properties(${TARGET_NAME} PROPERTIES
@@ -80,7 +78,3 @@ target_link_libraries(${TARGET_NAME} PRIVATE
8078
Threads::Threads
8179
cudadrv
8280
)
83-
84-
target_include_directories(${TARGET_NAME} PRIVATE
85-
"${CMAKE_CURRENT_SOURCE_DIR}/../../"
86-
)

source/adapters/cuda/adapter.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urAdapterGetInfo(ur_adapter_handle_t,
6767
size_t propSize,
6868
void *pPropValue,
6969
size_t *pPropSizeRet) {
70-
UrReturnHelper ReturnValue(propSize, pPropValue, pPropSizeRet);
70+
ur::ReturnHelper ReturnValue(propSize, pPropValue, pPropSizeRet);
7171

7272
switch (propName) {
7373
case UR_ADAPTER_INFO_BACKEND:

source/adapters/cuda/command_buffer.hpp

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
//
99
//===----------------------------------------------------------------------===//
1010

11-
#include <ur/ur.hpp>
1211
#include <ur_api.h>
1312

1413
#include "context.hpp"

source/adapters/cuda/common.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#pragma once
1111

1212
#include <cuda.h>
13-
#include <ur/ur.hpp>
13+
#include <ur_util.hpp>
1414

1515
ur_result_t mapErrorUR(CUresult Result);
1616

source/adapters/cuda/context.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ urContextCreate(uint32_t DeviceCount, const ur_device_handle_t *phDevices,
6868
UR_APIEXPORT ur_result_t UR_APICALL urContextGetInfo(
6969
ur_context_handle_t hContext, ur_context_info_t ContextInfoType,
7070
size_t propSize, void *pContextInfo, size_t *pPropSizeRet) {
71-
UrReturnHelper ReturnValue(propSize, pContextInfo, pPropSizeRet);
71+
ur::ReturnHelper ReturnValue(propSize, pContextInfo, pPropSizeRet);
7272

7373
switch (static_cast<uint32_t>(ContextInfoType)) {
7474
case UR_CONTEXT_INFO_NUM_DEVICES:

source/adapters/cuda/device.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
4141
size_t propSize,
4242
void *pPropValue,
4343
size_t *pPropSizeRet) {
44-
UrReturnHelper ReturnValue(propSize, pPropValue, pPropSizeRet);
44+
ur::ReturnHelper ReturnValue(propSize, pPropValue, pPropSizeRet);
4545

4646
static constexpr uint32_t MaxWorkItemDimensions = 3u;
4747

source/adapters/cuda/device.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
//===----------------------------------------------------------------------===//
1010
#pragma once
1111

12-
#include <ur/ur.hpp>
12+
#include <ur_api.h>
1313

1414
struct ur_device_handle_t_ {
1515
private:

source/adapters/cuda/event.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urEventGetInfo(ur_event_handle_t hEvent,
169169
size_t propValueSize,
170170
void *pPropValue,
171171
size_t *pPropValueSizeRet) {
172-
UrReturnHelper ReturnValue(propValueSize, pPropValue, pPropValueSizeRet);
172+
ur::ReturnHelper ReturnValue(propValueSize, pPropValue, pPropValueSizeRet);
173173

174174
switch (propName) {
175175
case UR_EVENT_INFO_COMMAND_QUEUE:
@@ -194,7 +194,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urEventGetInfo(ur_event_handle_t hEvent,
194194
UR_APIEXPORT ur_result_t UR_APICALL urEventGetProfilingInfo(
195195
ur_event_handle_t hEvent, ur_profiling_info_t propName,
196196
size_t propValueSize, void *pPropValue, size_t *pPropValueSizeRet) {
197-
UrReturnHelper ReturnValue(propValueSize, pPropValue, pPropValueSizeRet);
197+
ur::ReturnHelper ReturnValue(propValueSize, pPropValue, pPropValueSizeRet);
198198

199199
ur_queue_handle_t Queue = hEvent->getQueue();
200200
if (Queue == nullptr || !(Queue->URFlags & UR_QUEUE_FLAG_PROFILING_ENABLE)) {

source/adapters/cuda/event.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#pragma once
1111

1212
#include <cuda.h>
13-
#include <ur/ur.hpp>
13+
#include <ur_api.h>
1414

1515
#include "queue.hpp"
1616

source/adapters/cuda/image.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
#include "memory.hpp"
2121
#include "queue.hpp"
2222
#include "sampler.hpp"
23-
#include "ur/ur.hpp"
2423
#include "ur_api.h"
2524

2625
ur_result_t urCalculateNumChannels(ur_image_channel_order_t order,

source/adapters/cuda/kernel.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ UR_APIEXPORT ur_result_t UR_APICALL
6262
urKernelGetGroupInfo(ur_kernel_handle_t hKernel, ur_device_handle_t hDevice,
6363
ur_kernel_group_info_t propName, size_t propSize,
6464
void *pPropValue, size_t *pPropSizeRet) {
65-
UrReturnHelper ReturnValue(propSize, pPropValue, pPropSizeRet);
65+
ur::ReturnHelper ReturnValue(propSize, pPropValue, pPropSizeRet);
6666

6767
switch (propName) {
6868
case UR_KERNEL_GROUP_INFO_GLOBAL_WORK_SIZE: {
@@ -205,7 +205,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urKernelGetInfo(ur_kernel_handle_t hKernel,
205205
size_t propSize,
206206
void *pKernelInfo,
207207
size_t *pPropSizeRet) {
208-
UrReturnHelper ReturnValue(propSize, pKernelInfo, pPropSizeRet);
208+
ur::ReturnHelper ReturnValue(propSize, pKernelInfo, pPropSizeRet);
209209

210210
switch (propName) {
211211
case UR_KERNEL_INFO_FUNCTION_NAME:
@@ -237,7 +237,7 @@ UR_APIEXPORT ur_result_t UR_APICALL
237237
urKernelGetSubGroupInfo(ur_kernel_handle_t hKernel, ur_device_handle_t hDevice,
238238
ur_kernel_sub_group_info_t propName, size_t propSize,
239239
void *pPropValue, size_t *pPropSizeRet) {
240-
UrReturnHelper ReturnValue(propSize, pPropValue, pPropSizeRet);
240+
ur::ReturnHelper ReturnValue(propSize, pPropValue, pPropSizeRet);
241241
switch (propName) {
242242
case UR_KERNEL_SUB_GROUP_INFO_MAX_SUB_GROUP_SIZE: {
243243
// Sub-group size is equivalent to warp size

source/adapters/cuda/memory.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urMemGetInfo(ur_mem_handle_t hMemory,
175175
size_t *pPropSizeRet) {
176176
UR_ASSERT(hMemory->isBuffer(), UR_RESULT_ERROR_INVALID_MEM_OBJECT);
177177

178-
UrReturnHelper ReturnValue(propSize, pMemInfo, pPropSizeRet);
178+
ur::ReturnHelper ReturnValue(propSize, pMemInfo, pPropSizeRet);
179179

180180
ScopedContext Active(hMemory->getContext());
181181

source/adapters/cuda/platform.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urPlatformGetInfo(
2222
size_t Size, void *pPlatformInfo, size_t *pSizeRet) {
2323

2424
UR_ASSERT(hPlatform, UR_RESULT_ERROR_INVALID_NULL_HANDLE);
25-
UrReturnHelper ReturnValue(Size, pPlatformInfo, pSizeRet);
25+
ur::ReturnHelper ReturnValue(Size, pPlatformInfo, pSizeRet);
2626

2727
switch (PlatformInfoType) {
2828
case UR_PLATFORM_INFO_NAME:

source/adapters/cuda/platform.hpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
//===----------------------------------------------------------------------===//
1010
#pragma once
1111

12-
#include <ur/ur.hpp>
12+
#include <memory>
13+
#include <ur_api.h>
1314
#include <vector>
1415

1516
struct ur_platform_handle_t_ {

source/adapters/cuda/program.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ urProgramGetBuildInfo(ur_program_handle_t hProgram, ur_device_handle_t hDevice,
337337
void *pPropValue, size_t *pPropSizeRet) {
338338
std::ignore = hDevice;
339339

340-
UrReturnHelper ReturnValue(propSize, pPropValue, pPropSizeRet);
340+
ur::ReturnHelper ReturnValue(propSize, pPropValue, pPropSizeRet);
341341

342342
switch (propName) {
343343
case UR_PROGRAM_BUILD_INFO_STATUS: {
@@ -359,7 +359,7 @@ urProgramGetBuildInfo(ur_program_handle_t hProgram, ur_device_handle_t hDevice,
359359
UR_APIEXPORT ur_result_t UR_APICALL
360360
urProgramGetInfo(ur_program_handle_t hProgram, ur_program_info_t propName,
361361
size_t propSize, void *pProgramInfo, size_t *pPropSizeRet) {
362-
UrReturnHelper ReturnValue(propSize, pProgramInfo, pPropSizeRet);
362+
ur::ReturnHelper ReturnValue(propSize, pProgramInfo, pPropSizeRet);
363363

364364
switch (propName) {
365365
case UR_PROGRAM_INFO_REFERENCE_COUNT:

source/adapters/cuda/queue.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urQueueGetInfo(ur_queue_handle_t hQueue,
291291
size_t propValueSize,
292292
void *pPropValue,
293293
size_t *pPropSizeRet) {
294-
UrReturnHelper ReturnValue(propValueSize, pPropValue, pPropSizeRet);
294+
ur::ReturnHelper ReturnValue(propValueSize, pPropValue, pPropSizeRet);
295295

296296
switch (propName) {
297297
case UR_QUEUE_INFO_CONTEXT:

source/adapters/cuda/queue.hpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,12 @@
99
//===----------------------------------------------------------------------===//
1010
#pragma once
1111

12-
#include <ur/ur.hpp>
12+
#include <ur_api.h>
1313

1414
#include <algorithm>
15+
#include <atomic>
1516
#include <cuda.h>
17+
#include <mutex>
1618
#include <vector>
1719

1820
using ur_stream_guard_ = std::unique_lock<std::mutex>;

source/adapters/cuda/sampler.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ urSamplerCreate(ur_context_handle_t hContext, const ur_sampler_desc_t *pDesc,
4949
UR_APIEXPORT ur_result_t UR_APICALL
5050
urSamplerGetInfo(ur_sampler_handle_t hSampler, ur_sampler_info_t propName,
5151
size_t propValueSize, void *pPropValue, size_t *pPropSizeRet) {
52-
UrReturnHelper ReturnValue(propValueSize, pPropValue, pPropSizeRet);
52+
ur::ReturnHelper ReturnValue(propValueSize, pPropValue, pPropSizeRet);
5353

5454
switch (propName) {
5555
case UR_SAMPLER_INFO_REFERENCE_COUNT:

source/adapters/cuda/sampler.hpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
//
99
//===----------------------------------------------------------------------===//
1010

11-
#include <ur/ur.hpp>
11+
#include <ur_api.h>
12+
13+
#include <atomic>
1214

1315
/// Implementation of samplers for CUDA
1416
///

source/adapters/cuda/usm.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ urUSMGetMemAllocInfo(ur_context_handle_t hContext, const void *pMem,
195195
void *pPropValue, size_t *pPropValueSizeRet) {
196196
ur_result_t Result = UR_RESULT_SUCCESS;
197197

198-
UrReturnHelper ReturnValue(propValueSize, pPropValue, pPropValueSizeRet);
198+
ur::ReturnHelper ReturnValue(propValueSize, pPropValue, pPropValueSizeRet);
199199

200200
try {
201201
ScopedContext Active(hContext);
@@ -489,7 +489,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urUSMPoolGetInfo(
489489
size_t *pPropSizeRet ///< [out][optional] size in bytes returned in pool
490490
///< property value
491491
) {
492-
UrReturnHelper ReturnValue(propSize, pPropValue, pPropSizeRet);
492+
ur::ReturnHelper ReturnValue(propSize, pPropValue, pPropSizeRet);
493493

494494
switch (propName) {
495495
case UR_USM_POOL_INFO_REFERENCE_COUNT: {

source/adapters/cuda/usm_p2p.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urUsmP2PPeerAccessGetInfoExp(
4242
ur_exp_peer_info_t propName, size_t propSize, void *pPropValue,
4343
size_t *pPropSizeRet) {
4444

45-
UrReturnHelper ReturnValue(propSize, pPropValue, pPropSizeRet);
45+
ur::ReturnHelper ReturnValue(propSize, pPropValue, pPropSizeRet);
4646

4747
int value;
4848
CUdevice_P2PAttribute cu_attr;

source/adapters/hip/CMakeLists.txt

-6
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,6 @@ add_ur_adapter(${TARGET_NAME}
7171
${CMAKE_CURRENT_SOURCE_DIR}/sampler.cpp
7272
${CMAKE_CURRENT_SOURCE_DIR}/usm.cpp
7373
${CMAKE_CURRENT_SOURCE_DIR}/usm_p2p.cpp
74-
${CMAKE_CURRENT_SOURCE_DIR}/../../ur/ur.cpp
75-
${CMAKE_CURRENT_SOURCE_DIR}/../../ur/ur.hpp
7674
)
7775

7876
if(NOT MSVC)
@@ -157,7 +155,3 @@ elseif("${UR_HIP_PLATFORM}" STREQUAL "NVIDIA")
157155
else()
158156
message(FATAL_ERROR "Unspecified UR HIP platform please set UR_HIP_PLATFORM to 'AMD' or 'NVIDIA'")
159157
endif()
160-
161-
target_include_directories(${TARGET_NAME} PRIVATE
162-
"${CMAKE_CURRENT_SOURCE_DIR}/../../"
163-
)

source/adapters/hip/adapter.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urAdapterGetInfo(ur_adapter_handle_t,
5656
size_t propSize,
5757
void *pPropValue,
5858
size_t *pPropSizeRet) {
59-
UrReturnHelper ReturnValue(propSize, pPropValue, pPropSizeRet);
59+
ur::ReturnHelper ReturnValue(propSize, pPropValue, pPropSizeRet);
6060

6161
switch (propName) {
6262
case UR_ADAPTER_INFO_BACKEND:

source/adapters/hip/command_buffer.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
//
99
//===----------------------------------------------------------------------===//
1010

11-
#include <ur/ur.hpp>
11+
#include <ur_api.h>
1212

1313
/// Stub implementation of command-buffers for HIP
1414

source/adapters/hip/common.hpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
#include <amd_comgr/amd_comgr.h>
1414
#endif
1515
#include <hip/hip_runtime.h>
16-
#include <ur/ur.hpp>
16+
#include <ur_api.h>
17+
#include <ur_util.hpp>
1718

1819
// Hipify doesn't support cuArrayGetDescriptor, on AMD the hipArray can just be
1920
// indexed, but on NVidia it is an opaque type and needs to go through

source/adapters/hip/context.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ UR_APIEXPORT ur_result_t UR_APICALL
7272
urContextGetInfo(ur_context_handle_t hContext, ur_context_info_t propName,
7373
size_t propSize, void *pPropValue, size_t *pPropSizeRet) {
7474

75-
UrReturnHelper ReturnValue(propSize, pPropValue, pPropSizeRet);
75+
ur::ReturnHelper ReturnValue(propSize, pPropValue, pPropSizeRet);
7676

7777
switch (uint32_t{propName}) {
7878
case UR_CONTEXT_INFO_NUM_DEVICES:

source/adapters/hip/device.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
2525
size_t propSize,
2626
void *pPropValue,
2727
size_t *pPropSizeRet) {
28-
UrReturnHelper ReturnValue(propSize, pPropValue, pPropSizeRet);
28+
ur::ReturnHelper ReturnValue(propSize, pPropValue, pPropSizeRet);
2929

3030
static constexpr uint32_t MaxWorkItemDimensions = 3u;
3131

source/adapters/hip/device.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
#include "common.hpp"
1313

14-
#include <ur/ur.hpp>
14+
#include <ur_api.h>
1515

1616
/// UR device mapping to a hipDevice_t.
1717
/// Includes an observer pointer to the platform,

source/adapters/hip/enqueue.cpp

+6-6
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urEnqueueMemBufferRead(
146146

147147
std::unique_ptr<ur_event_handle_t_> RetImplEvent{nullptr};
148148

149-
ur_lock MemoryMigrationLock{hBuffer->MemoryMigrationMutex};
149+
ur::Lock MemoryMigrationLock{hBuffer->MemoryMigrationMutex};
150150
auto Device = hQueue->getDevice();
151151
hipStream_t HIPStream = hQueue->getNextTransferStream();
152152

@@ -215,7 +215,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urEnqueueKernelLaunch(
215215

216216
std::vector<ur_event_handle_t> DepEvents(
217217
phEventWaitList, phEventWaitList + numEventsInWaitList);
218-
std::vector<std::pair<ur_mem_handle_t, ur_lock>> MemMigrationLocks;
218+
std::vector<std::pair<ur_mem_handle_t, ur::Lock>> MemMigrationLocks;
219219

220220
// phEventWaitList only contains events that are handed to UR by the SYCL
221221
// runtime. However since UR handles memory dependencies within a context
@@ -238,8 +238,8 @@ UR_APIEXPORT ur_result_t UR_APICALL urEnqueueKernelLaunch(
238238
[MemArg](auto &Lock) {
239239
return Lock.first == MemArg.Mem;
240240
}) == MemMigrationLocks.end())
241-
MemMigrationLocks.emplace_back(
242-
std::pair{MemArg.Mem, ur_lock{MemArg.Mem->MemoryMigrationMutex}});
241+
MemMigrationLocks.emplace_back(std::pair{
242+
MemArg.Mem, ur::Lock{MemArg.Mem->MemoryMigrationMutex}});
243243
}
244244
}
245245
}
@@ -593,7 +593,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urEnqueueMemBufferReadRect(
593593
std::unique_ptr<ur_event_handle_t_> RetImplEvent{nullptr};
594594

595595
ur_result_t Result = UR_RESULT_SUCCESS;
596-
ur_lock MemoryMigrationLock(hBuffer->MemoryMigrationMutex);
596+
ur::Lock MemoryMigrationLock(hBuffer->MemoryMigrationMutex);
597597
auto Device = hQueue->getDevice();
598598
hipStream_t HIPStream = hQueue->getNextTransferStream();
599599

@@ -989,7 +989,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urEnqueueMemImageRead(
989989

990990
ur_result_t Result = UR_RESULT_SUCCESS;
991991

992-
ur_lock MemoryMigrationLock{hImage->MemoryMigrationMutex};
992+
ur::Lock MemoryMigrationLock{hImage->MemoryMigrationMutex};
993993
auto Device = hQueue->getDevice();
994994
hipStream_t HIPStream = hQueue->getNextTransferStream();
995995

source/adapters/hip/event.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urEventGetInfo(ur_event_handle_t hEvent,
217217
size_t *pPropValueSizeRet) {
218218
UR_ASSERT(!(pPropValue && propValueSize == 0), UR_RESULT_ERROR_INVALID_SIZE);
219219

220-
UrReturnHelper ReturnValue(propValueSize, pPropValue, pPropValueSizeRet);
220+
ur::ReturnHelper ReturnValue(propValueSize, pPropValue, pPropValueSizeRet);
221221
switch (propName) {
222222
case UR_EVENT_INFO_COMMAND_QUEUE:
223223
return ReturnValue(hEvent->getQueue());
@@ -249,7 +249,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urEventGetProfilingInfo(
249249
return UR_RESULT_ERROR_PROFILING_INFO_NOT_AVAILABLE;
250250
}
251251

252-
UrReturnHelper ReturnValue(propValueSize, pPropValue, pPropValueSizeRet);
252+
ur::ReturnHelper ReturnValue(propValueSize, pPropValue, pPropValueSizeRet);
253253
switch (propName) {
254254
case UR_PROFILING_INFO_COMMAND_QUEUED:
255255
case UR_PROFILING_INFO_COMMAND_SUBMIT:

source/adapters/hip/image.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
//
99
//===----------------------------------------------------------------------===//
1010

11-
#include "ur/ur.hpp"
11+
#include "ur_api.h"
1212

1313
UR_APIEXPORT ur_result_t UR_APICALL urUSMPitchedAllocExp(
1414
[[maybe_unused]] ur_context_handle_t hContext,

0 commit comments

Comments
 (0)