Skip to content

Commit bb7774a

Browse files
committed
Update script error return.
Fix format. Signed-off-by: JackAKirk <jack.kirk@codeplay.com>
1 parent 056c1e2 commit bb7774a

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

scripts/core/exp-bindless-images.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -469,6 +469,7 @@ returns:
469469
- "`pImageDesc && UR_MEM_TYPE_IMAGE1D_ARRAY < pImageDesc->type`"
470470
- $X_RESULT_ERROR_INVALID_IMAGE_SIZE
471471
- $X_RESULT_ERROR_INVALID_OPERATION
472+
- $X_RESULT_ERROR_ADAPTER_SPECIFIC
472473
--- #--------------------------------------------------------------------------
473474
type: function
474475
desc: "Create a bindless sampled image handle"
@@ -507,6 +508,7 @@ returns:
507508
- $X_RESULT_ERROR_INVALID_IMAGE_SIZE
508509
- $X_RESULT_ERROR_INVALID_SAMPLER
509510
- $X_RESULT_ERROR_INVALID_OPERATION
511+
- $X_RESULT_ERROR_ADAPTER_SPECIFIC
510512
--- #--------------------------------------------------------------------------
511513
type: function
512514
desc: "Copy image data Host to Device or Device to Host"

source/adapters/cuda/image.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -314,9 +314,9 @@ ur_result_t urTextureCreate(ur_sampler_handle_t hSampler,
314314
#if CUDA_VERSION >= 11060
315315
ImageTexDesc.flags |= CU_TRSF_SEAMLESS_CUBEMAP;
316316
#else
317-
setErrorMessage("The "UR_EXP_SAMPLER_CUBEMAP_FILTER_MODE_SEAMLESS" feature requires cuda 11.6 or later.",
318-
UR_RESULT_ERROR_ADAPTER_SPECIFIC);
319-
return UR_RESULT_ERROR_ADAPTER_SPECIFIC;
317+
setErrorMessage("The " UR_EXP_SAMPLER_CUBEMAP_FILTER_MODE_SEAMLESS
318+
" feature requires cuda 11.6 or later.",
319+
UR_RESULT_ERROR_ADAPTER_SPECIFIC);
320320
#endif
321321
}
322322

0 commit comments

Comments
 (0)