Skip to content

Commit

Permalink
Testing commit
Browse files Browse the repository at this point in the history
  • Loading branch information
omarahmed1111 committed Mar 13, 2024
1 parent df134bf commit 4db0172
Show file tree
Hide file tree
Showing 18 changed files with 193 additions and 127 deletions.
68 changes: 34 additions & 34 deletions include/ur_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -448,49 +448,48 @@ typedef enum ur_result_t {
///< device
UR_RESULT_ERROR_INVALID_IMAGE_SIZE = 33, ///< Invalid image size
UR_RESULT_ERROR_INVALID_IMAGE_FORMAT_DESCRIPTOR = 34, ///< Invalid image format descriptor
UR_RESULT_ERROR_IMAGE_FORMAT_NOT_SUPPORTED = 35, ///< Image format not supported
UR_RESULT_ERROR_MEM_OBJECT_ALLOCATION_FAILURE = 36, ///< Memory object allocation failure
UR_RESULT_ERROR_INVALID_PROGRAM_EXECUTABLE = 37, ///< Program object parameter is invalid.
UR_RESULT_ERROR_UNINITIALIZED = 38, ///< [Validation] adapter is not initialized or specific entry-point is not
UR_RESULT_ERROR_MEM_OBJECT_ALLOCATION_FAILURE = 35, ///< Memory object allocation failure
UR_RESULT_ERROR_INVALID_PROGRAM_EXECUTABLE = 36, ///< Program object parameter is invalid.
UR_RESULT_ERROR_UNINITIALIZED = 37, ///< [Validation] adapter is not initialized or specific entry-point is not
///< implemented
UR_RESULT_ERROR_OUT_OF_HOST_MEMORY = 39, ///< Insufficient host memory to satisfy call
UR_RESULT_ERROR_OUT_OF_DEVICE_MEMORY = 40, ///< Insufficient device memory to satisfy call
UR_RESULT_ERROR_OUT_OF_RESOURCES = 41, ///< Out of resources
UR_RESULT_ERROR_PROGRAM_BUILD_FAILURE = 42, ///< Error occurred when building program, see build log for details
UR_RESULT_ERROR_PROGRAM_LINK_FAILURE = 43, ///< Error occurred when linking programs, see build log for details
UR_RESULT_ERROR_UNSUPPORTED_VERSION = 44, ///< [Validation] generic error code for unsupported versions
UR_RESULT_ERROR_UNSUPPORTED_FEATURE = 45, ///< [Validation] generic error code for unsupported features
UR_RESULT_ERROR_INVALID_ARGUMENT = 46, ///< [Validation] generic error code for invalid arguments
UR_RESULT_ERROR_INVALID_NULL_HANDLE = 47, ///< [Validation] handle argument is not valid
UR_RESULT_ERROR_HANDLE_OBJECT_IN_USE = 48, ///< [Validation] object pointed to by handle still in-use by device
UR_RESULT_ERROR_INVALID_NULL_POINTER = 49, ///< [Validation] pointer argument may not be nullptr
UR_RESULT_ERROR_INVALID_SIZE = 50, ///< [Validation] invalid size or dimensions (e.g., must not be zero, or is
UR_RESULT_ERROR_OUT_OF_HOST_MEMORY = 38, ///< Insufficient host memory to satisfy call
UR_RESULT_ERROR_OUT_OF_DEVICE_MEMORY = 39, ///< Insufficient device memory to satisfy call
UR_RESULT_ERROR_OUT_OF_RESOURCES = 40, ///< Out of resources
UR_RESULT_ERROR_PROGRAM_BUILD_FAILURE = 41, ///< Error occurred when building program, see build log for details
UR_RESULT_ERROR_PROGRAM_LINK_FAILURE = 42, ///< Error occurred when linking programs, see build log for details
UR_RESULT_ERROR_UNSUPPORTED_VERSION = 43, ///< [Validation] generic error code for unsupported versions
UR_RESULT_ERROR_UNSUPPORTED_FEATURE = 44, ///< [Validation] generic error code for unsupported features
UR_RESULT_ERROR_INVALID_ARGUMENT = 45, ///< [Validation] generic error code for invalid arguments
UR_RESULT_ERROR_INVALID_NULL_HANDLE = 46, ///< [Validation] handle argument is not valid
UR_RESULT_ERROR_HANDLE_OBJECT_IN_USE = 47, ///< [Validation] object pointed to by handle still in-use by device
UR_RESULT_ERROR_INVALID_NULL_POINTER = 48, ///< [Validation] pointer argument may not be nullptr
UR_RESULT_ERROR_INVALID_SIZE = 49, ///< [Validation] invalid size or dimensions (e.g., must not be zero, or is
///< out of bounds)
UR_RESULT_ERROR_UNSUPPORTED_SIZE = 51, ///< [Validation] size argument is not supported by the device (e.g., too
UR_RESULT_ERROR_UNSUPPORTED_SIZE = 50, ///< [Validation] size argument is not supported by the device (e.g., too
///< large)
UR_RESULT_ERROR_UNSUPPORTED_ALIGNMENT = 52, ///< [Validation] alignment argument is not supported by the device (e.g.,
UR_RESULT_ERROR_UNSUPPORTED_ALIGNMENT = 51, ///< [Validation] alignment argument is not supported by the device (e.g.,
///< too small)
UR_RESULT_ERROR_INVALID_SYNCHRONIZATION_OBJECT = 53, ///< [Validation] synchronization object in invalid state
UR_RESULT_ERROR_INVALID_ENUMERATION = 54, ///< [Validation] enumerator argument is not valid
UR_RESULT_ERROR_UNSUPPORTED_ENUMERATION = 55, ///< [Validation] enumerator argument is not supported by the device
UR_RESULT_ERROR_UNSUPPORTED_IMAGE_FORMAT = 56, ///< [Validation] image format is not supported by the device
UR_RESULT_ERROR_INVALID_NATIVE_BINARY = 57, ///< [Validation] native binary is not supported by the device
UR_RESULT_ERROR_INVALID_GLOBAL_NAME = 58, ///< [Validation] global variable is not found in the program
UR_RESULT_ERROR_INVALID_FUNCTION_NAME = 59, ///< [Validation] function name is not found in the program
UR_RESULT_ERROR_INVALID_GROUP_SIZE_DIMENSION = 60, ///< [Validation] group size dimension is not valid for the kernel or
UR_RESULT_ERROR_INVALID_SYNCHRONIZATION_OBJECT = 52, ///< [Validation] synchronization object in invalid state
UR_RESULT_ERROR_INVALID_ENUMERATION = 53, ///< [Validation] enumerator argument is not valid
UR_RESULT_ERROR_UNSUPPORTED_ENUMERATION = 54, ///< [Validation] enumerator argument is not supported by the device
UR_RESULT_ERROR_UNSUPPORTED_IMAGE_FORMAT = 55, ///< [Validation] image format is not supported by the device
UR_RESULT_ERROR_INVALID_NATIVE_BINARY = 56, ///< [Validation] native binary is not supported by the device
UR_RESULT_ERROR_INVALID_GLOBAL_NAME = 57, ///< [Validation] global variable is not found in the program
UR_RESULT_ERROR_INVALID_FUNCTION_NAME = 58, ///< [Validation] function name is not found in the program
UR_RESULT_ERROR_INVALID_GROUP_SIZE_DIMENSION = 59, ///< [Validation] group size dimension is not valid for the kernel or
///< device
UR_RESULT_ERROR_INVALID_GLOBAL_WIDTH_DIMENSION = 61, ///< [Validation] global width dimension is not valid for the kernel or
UR_RESULT_ERROR_INVALID_GLOBAL_WIDTH_DIMENSION = 60, ///< [Validation] global width dimension is not valid for the kernel or
///< device
UR_RESULT_ERROR_PROGRAM_UNLINKED = 62, ///< [Validation] compiled program or program with imports needs to be
UR_RESULT_ERROR_PROGRAM_UNLINKED = 61, ///< [Validation] compiled program or program with imports needs to be
///< linked before kernels can be created from it.
UR_RESULT_ERROR_OVERLAPPING_REGIONS = 63, ///< [Validation] copy operations do not support overlapping regions of
UR_RESULT_ERROR_OVERLAPPING_REGIONS = 62, ///< [Validation] copy operations do not support overlapping regions of
///< memory
UR_RESULT_ERROR_INVALID_HOST_PTR = 64, ///< Invalid host pointer
UR_RESULT_ERROR_INVALID_USM_SIZE = 65, ///< Invalid USM size
UR_RESULT_ERROR_OBJECT_ALLOCATION_FAILURE = 66, ///< Objection allocation failure
UR_RESULT_ERROR_ADAPTER_SPECIFIC = 67, ///< An adapter specific warning/error has been reported and can be
UR_RESULT_ERROR_INVALID_HOST_PTR = 63, ///< Invalid host pointer
UR_RESULT_ERROR_INVALID_USM_SIZE = 64, ///< Invalid USM size
UR_RESULT_ERROR_OBJECT_ALLOCATION_FAILURE = 65, ///< Objection allocation failure
UR_RESULT_ERROR_ADAPTER_SPECIFIC = 66, ///< An adapter specific warning/error has been reported and can be
///< retrieved via the urPlatformGetLastError entry point.
UR_RESULT_ERROR_LAYER_NOT_PRESENT = 68, ///< A requested layer was not found by the loader.
UR_RESULT_ERROR_LAYER_NOT_PRESENT = 67, ///< A requested layer was not found by the loader.
UR_RESULT_ERROR_INVALID_COMMAND_BUFFER_EXP = 0x1000, ///< Invalid Command-Buffer
UR_RESULT_ERROR_INVALID_COMMAND_BUFFER_SYNC_POINT_EXP = 0x1001, ///< Sync point is not valid for the command-buffer
UR_RESULT_ERROR_INVALID_COMMAND_BUFFER_SYNC_POINT_WAIT_LIST_EXP = 0x1002, ///< Sync point wait list is invalid
Expand Down Expand Up @@ -2560,6 +2559,7 @@ typedef struct ur_image_desc_t {
/// - ::UR_RESULT_ERROR_INVALID_HOST_PTR
/// + `pHost == NULL && (flags & (UR_MEM_FLAG_USE_HOST_POINTER | UR_MEM_FLAG_ALLOC_COPY_HOST_POINTER)) != 0`
/// + `pHost != NULL && (flags & (UR_MEM_FLAG_USE_HOST_POINTER | UR_MEM_FLAG_ALLOC_COPY_HOST_POINTER)) == 0`
/// - ::UR_RESULT_ERROR_UNSUPPORTED_IMAGE_FORMAT
/// - ::UR_RESULT_ERROR_OUT_OF_HOST_MEMORY
/// - ::UR_RESULT_ERROR_OUT_OF_RESOURCES
UR_APIEXPORT ur_result_t UR_APICALL
Expand Down
3 changes: 0 additions & 3 deletions include/ur_print.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1434,9 +1434,6 @@ inline std::ostream &operator<<(std::ostream &os, enum ur_result_t value) {
case UR_RESULT_ERROR_INVALID_IMAGE_FORMAT_DESCRIPTOR:
os << "UR_RESULT_ERROR_INVALID_IMAGE_FORMAT_DESCRIPTOR";
break;
case UR_RESULT_ERROR_IMAGE_FORMAT_NOT_SUPPORTED:
os << "UR_RESULT_ERROR_IMAGE_FORMAT_NOT_SUPPORTED";
break;
case UR_RESULT_ERROR_MEM_OBJECT_ALLOCATION_FAILURE:
os << "UR_RESULT_ERROR_MEM_OBJECT_ALLOCATION_FAILURE";
break;
Expand Down
2 changes: 0 additions & 2 deletions scripts/core/common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,6 @@ etors:
desc: "Invalid image size"
- name: ERROR_INVALID_IMAGE_FORMAT_DESCRIPTOR
desc: "Invalid image format descriptor"
- name: ERROR_IMAGE_FORMAT_NOT_SUPPORTED
desc: "Image format not supported"
- name: ERROR_MEM_OBJECT_ALLOCATION_FAILURE
desc: "Memory object allocation failure"
- name: ERROR_INVALID_PROGRAM_EXECUTABLE
Expand Down
1 change: 1 addition & 0 deletions scripts/core/memory.yml
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ returns:
- $X_RESULT_ERROR_INVALID_HOST_PTR:
- "`pHost == NULL && (flags & (UR_MEM_FLAG_USE_HOST_POINTER | UR_MEM_FLAG_ALLOC_COPY_HOST_POINTER)) != 0`"
- "`pHost != NULL && (flags & (UR_MEM_FLAG_USE_HOST_POINTER | UR_MEM_FLAG_ALLOC_COPY_HOST_POINTER)) == 0`"
- $X_RESULT_ERROR_UNSUPPORTED_IMAGE_FORMAT
- $X_RESULT_ERROR_OUT_OF_HOST_MEMORY
- $X_RESULT_ERROR_OUT_OF_RESOURCES
--- #--------------------------------------------------------------------------
Expand Down
6 changes: 2 additions & 4 deletions source/adapters/cuda/command_buffer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ static inline const char *getUrResultString(ur_result_t Result) {
return "UR_RESULT_ERROR_INVALID_IMAGE_SIZE";
case UR_RESULT_ERROR_INVALID_IMAGE_FORMAT_DESCRIPTOR:
return "UR_RESULT_ERROR_INVALID_IMAGE_FORMAT_DESCRIPTOR";
case UR_RESULT_ERROR_IMAGE_FORMAT_NOT_SUPPORTED:
return "UR_RESULT_ERROR_IMAGE_FORMAT_NOT_SUPPORTED";
case UR_RESULT_ERROR_UNSUPPORTED_IMAGE_FORMAT:
return "UR_RESULT_ERROR_UNSUPPORTED_IMAGE_FORMAT";
case UR_RESULT_ERROR_MEM_OBJECT_ALLOCATION_FAILURE:
return "UR_RESULT_ERROR_MEM_OBJECT_ALLOCATION_FAILURE";
case UR_RESULT_ERROR_INVALID_PROGRAM_EXECUTABLE:
Expand Down Expand Up @@ -129,8 +129,6 @@ static inline const char *getUrResultString(ur_result_t Result) {
return "UR_RESULT_ERROR_INVALID_ENUMERATION";
case UR_RESULT_ERROR_UNSUPPORTED_ENUMERATION:
return "UR_RESULT_ERROR_UNSUPPORTED_ENUMERATION";
case UR_RESULT_ERROR_UNSUPPORTED_IMAGE_FORMAT:
return "UR_RESULT_ERROR_UNSUPPORTED_IMAGE_FORMAT";
case UR_RESULT_ERROR_INVALID_NATIVE_BINARY:
return "UR_RESULT_ERROR_INVALID_NATIVE_BINARY";
case UR_RESULT_ERROR_INVALID_GLOBAL_NAME:
Expand Down
8 changes: 4 additions & 4 deletions source/adapters/cuda/image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ ur_result_t urCalculateNumChannels(ur_image_channel_order_t order,
*NumChannels = 2;
return UR_RESULT_SUCCESS;
case ur_image_channel_order_t::UR_IMAGE_CHANNEL_ORDER_RGB:
return UR_RESULT_ERROR_IMAGE_FORMAT_NOT_SUPPORTED;
return UR_RESULT_ERROR_UNSUPPORTED_IMAGE_FORMAT;
case ur_image_channel_order_t::UR_IMAGE_CHANNEL_ORDER_RGBA:
case ur_image_channel_order_t::UR_IMAGE_CHANNEL_ORDER_ARGB:
case ur_image_channel_order_t::UR_IMAGE_CHANNEL_ORDER_BGRA:
Expand All @@ -49,7 +49,7 @@ ur_result_t urCalculateNumChannels(ur_image_channel_order_t order,
case ur_image_channel_order_t::UR_IMAGE_CHANNEL_ORDER_INTENSITY:
case ur_image_channel_order_t::UR_IMAGE_CHANNEL_ORDER_LUMINANCE:
default:
return UR_RESULT_ERROR_IMAGE_FORMAT_NOT_SUPPORTED;
return UR_RESULT_ERROR_UNSUPPORTED_IMAGE_FORMAT;
}
}

Expand Down Expand Up @@ -147,7 +147,7 @@ urToCudaImageChannelFormat(ur_image_channel_type_t image_channel_type,
cuda_format = cuda_format_and_size.first;
pixel_size_bytes = cuda_format_and_size.second;
} catch (const std::out_of_range &) {
return UR_RESULT_ERROR_IMAGE_FORMAT_NOT_SUPPORTED;
return UR_RESULT_ERROR_UNSUPPORTED_IMAGE_FORMAT;
}
}

Expand Down Expand Up @@ -228,7 +228,7 @@ cudaToUrImageChannelFormat(CUarray_format cuda_format,
#endif
#undef MAP
default:
return UR_RESULT_ERROR_IMAGE_FORMAT_NOT_SUPPORTED;
return UR_RESULT_ERROR_UNSUPPORTED_IMAGE_FORMAT;
}
}

Expand Down
5 changes: 2 additions & 3 deletions source/adapters/cuda/memory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urMemImageCreate(
// We only support RBGA channel order
// TODO: check SYCL CTS and spec. May also have to support BGRA
UR_ASSERT(pImageFormat->channelOrder == UR_IMAGE_CHANNEL_ORDER_RGBA,
UR_RESULT_ERROR_UNSUPPORTED_ENUMERATION);
UR_RESULT_ERROR_UNSUPPORTED_IMAGE_FORMAT);

// We have to use cuArray3DCreate, which has some caveats. The height and
// depth parameters must be set to 0 produce 1D or 2D arrays. pImageDesc gives
Expand Down Expand Up @@ -306,8 +306,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urMemImageCreate(
PixelTypeSizeBytes = 4;
break;
default:
detail::ur::die(
"urMemImageCreate given unsupported image_channel_data_type");
return UR_RESULT_ERROR_UNSUPPORTED_IMAGE_FORMAT;
}

// When a dimension isn't used pImageDesc has the size set to 1
Expand Down
6 changes: 2 additions & 4 deletions source/adapters/hip/command_buffer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ static inline const char *getUrResultString(ur_result_t Result) {
return "UR_RESULT_ERROR_INVALID_IMAGE_SIZE";
case UR_RESULT_ERROR_INVALID_IMAGE_FORMAT_DESCRIPTOR:
return "UR_RESULT_ERROR_INVALID_IMAGE_FORMAT_DESCRIPTOR";
case UR_RESULT_ERROR_IMAGE_FORMAT_NOT_SUPPORTED:
return "UR_RESULT_ERROR_IMAGE_FORMAT_NOT_SUPPORTED";
case UR_RESULT_ERROR_UNSUPPORTED_IMAGE_FORMAT:
return "UR_RESULT_ERROR_UNSUPPORTED_IMAGE_FORMAT";
case UR_RESULT_ERROR_MEM_OBJECT_ALLOCATION_FAILURE:
return "UR_RESULT_ERROR_MEM_OBJECT_ALLOCATION_FAILURE";
case UR_RESULT_ERROR_INVALID_PROGRAM_EXECUTABLE:
Expand Down Expand Up @@ -129,8 +129,6 @@ static inline const char *getUrResultString(ur_result_t Result) {
return "UR_RESULT_ERROR_INVALID_ENUMERATION";
case UR_RESULT_ERROR_UNSUPPORTED_ENUMERATION:
return "UR_RESULT_ERROR_UNSUPPORTED_ENUMERATION";
case UR_RESULT_ERROR_UNSUPPORTED_IMAGE_FORMAT:
return "UR_RESULT_ERROR_UNSUPPORTED_IMAGE_FORMAT";
case UR_RESULT_ERROR_INVALID_NATIVE_BINARY:
return "UR_RESULT_ERROR_INVALID_NATIVE_BINARY";
case UR_RESULT_ERROR_INVALID_GLOBAL_NAME:
Expand Down
2 changes: 1 addition & 1 deletion source/adapters/hip/memory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urMemImageCreate(
// We only support RBGA channel order
// TODO: check SYCL CTS and spec. May also have to support BGRA
UR_ASSERT(pImageFormat->channelOrder == UR_IMAGE_CHANNEL_ORDER_RGBA,
UR_RESULT_ERROR_UNSUPPORTED_ENUMERATION);
UR_RESULT_ERROR_UNSUPPORTED_IMAGE_FORMAT);

auto URMemObj = std::unique_ptr<ur_mem_handle_t_>(
new ur_mem_handle_t_{hContext, flags, *pImageFormat, *pImageDesc, pHost});
Expand Down
6 changes: 2 additions & 4 deletions source/adapters/level_zero/common.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ static auto getUrResultString = [](ur_result_t Result) {
return "UR_RESULT_ERROR_INVALID_IMAGE_SIZE";
case UR_RESULT_ERROR_INVALID_IMAGE_FORMAT_DESCRIPTOR:
return "UR_RESULT_ERROR_INVALID_IMAGE_FORMAT_DESCRIPTOR";
case UR_RESULT_ERROR_IMAGE_FORMAT_NOT_SUPPORTED:
return "UR_RESULT_ERROR_IMAGE_FORMAT_NOT_SUPPORTED";
case UR_RESULT_ERROR_UNSUPPORTED_IMAGE_FORMAT:
return "UR_RESULT_ERROR_UNSUPPORTED_IMAGE_FORMAT";
case UR_RESULT_ERROR_MEM_OBJECT_ALLOCATION_FAILURE:
return "UR_RESULT_ERROR_MEM_OBJECT_ALLOCATION_FAILURE";
case UR_RESULT_ERROR_INVALID_PROGRAM_EXECUTABLE:
Expand Down Expand Up @@ -141,8 +141,6 @@ static auto getUrResultString = [](ur_result_t Result) {
return "UR_RESULT_ERROR_INVALID_ENUMERATION";
case UR_RESULT_ERROR_UNSUPPORTED_ENUMERATION:
return "UR_RESULT_ERROR_UNSUPPORTED_ENUMERATION";
case UR_RESULT_ERROR_UNSUPPORTED_IMAGE_FORMAT:
return "UR_RESULT_ERROR_UNSUPPORTED_IMAGE_FORMAT";
case UR_RESULT_ERROR_INVALID_NATIVE_BINARY:
return "UR_RESULT_ERROR_INVALID_NATIVE_BINARY";
case UR_RESULT_ERROR_INVALID_GLOBAL_NAME:
Expand Down
6 changes: 3 additions & 3 deletions source/adapters/level_zero/memory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1437,13 +1437,13 @@ static ur_result_t ur2zeImageDesc(const ur_image_format_t *ImageFormat,
break;
default:
urPrint("urMemImageCreate: unexpected data type Size\n");
return UR_RESULT_ERROR_INVALID_VALUE;
return UR_RESULT_ERROR_UNSUPPORTED_IMAGE_FORMAT;
}
break;
}
default:
urPrint("format layout = %d\n", ImageFormat->channelOrder);
die("urMemImageCreate: unsupported image format layout\n");
return UR_RESULT_ERROR_UNSUPPORTED_IMAGE_FORMAT;
break;
}

Expand Down Expand Up @@ -1472,7 +1472,7 @@ static ur_result_t ur2zeImageDesc(const ur_image_format_t *ImageFormat,
break;
default:
urPrint("urMemImageCreate: unsupported image type\n");
return UR_RESULT_ERROR_INVALID_VALUE;
return UR_RESULT_ERROR_INVALID_IMAGE_FORMAT_DESCRIPTOR;
}

ZeImageDesc.arraylevels = ZeImageDesc.flags = 0;
Expand Down
1 change: 1 addition & 0 deletions source/loader/ur_libapi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1496,6 +1496,7 @@ ur_result_t UR_APICALL urContextSetExtendedDeleter(
/// - ::UR_RESULT_ERROR_INVALID_HOST_PTR
/// + `pHost == NULL && (flags & (UR_MEM_FLAG_USE_HOST_POINTER | UR_MEM_FLAG_ALLOC_COPY_HOST_POINTER)) != 0`
/// + `pHost != NULL && (flags & (UR_MEM_FLAG_USE_HOST_POINTER | UR_MEM_FLAG_ALLOC_COPY_HOST_POINTER)) == 0`
/// - ::UR_RESULT_ERROR_UNSUPPORTED_IMAGE_FORMAT
/// - ::UR_RESULT_ERROR_OUT_OF_HOST_MEMORY
/// - ::UR_RESULT_ERROR_OUT_OF_RESOURCES
ur_result_t UR_APICALL urMemImageCreate(
Expand Down
Loading

0 comments on commit 4db0172

Please sign in to comment.