Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions sycl/plugins/cuda/pi_cuda.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5383,7 +5383,7 @@ pi_result cuda_piextUSMGetMemAllocInfo(pi_context context, const void *ptr,
PI_MEM_TYPE_UNKNOWN);
}
case PI_MEM_ALLOC_BASE_PTR: {
#if __CUDA_API_VERSION >= 10020
#if CUDA_VERSION >= 10020
// CU_POINTER_ATTRIBUTE_RANGE_START_ADDR was introduced in CUDA 10.2
unsigned int value;
result = PI_CHECK_ERROR(cuPointerGetAttribute(
Expand All @@ -5395,7 +5395,7 @@ pi_result cuda_piextUSMGetMemAllocInfo(pi_context context, const void *ptr,
#endif
}
case PI_MEM_ALLOC_SIZE: {
#if __CUDA_API_VERSION >= 10020
#if CUDA_VERSION >= 10020
// CU_POINTER_ATTRIBUTE_RANGE_SIZE was introduced in CUDA 10.2
unsigned int value;
result = PI_CHECK_ERROR(cuPointerGetAttribute(
Expand Down