Skip to content

Commit 056c1e2

Browse files
committed
Fix for cuda < 11.6 support.
A bindless_images api requires cuda 11.6 to work. Signed-off-by: JackAKirk <jack.kirk@codeplay.com>
1 parent 4030080 commit 056c1e2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

source/adapters/cuda/image.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,13 @@ ur_result_t urTextureCreate(ur_sampler_handle_t hSampler,
311311
ur_exp_sampler_cubemap_filter_mode_t CubemapFilterModeProp =
312312
hSampler->getCubemapFilterMode();
313313
if (CubemapFilterModeProp == UR_EXP_SAMPLER_CUBEMAP_FILTER_MODE_SEAMLESS) {
314+
#if CUDA_VERSION >= 11060
314315
ImageTexDesc.flags |= CU_TRSF_SEAMLESS_CUBEMAP;
316+
#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;
320+
#endif
315321
}
316322

317323
CUtexObject Texture;

0 commit comments

Comments
 (0)