Skip to content

Commit 9f6856a

Browse files
GeorgeWebHugh Delaney
authored andcommitted
Change platform macro definition check ifdef from if
Co-authored-by: Hugh Delaney <[email protected]>
1 parent 2c9c407 commit 9f6856a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/adapters/hip/device.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -813,7 +813,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
813813
UR_MEMORY_ORDER_CAPABILITY_FLAG_ACQUIRE |
814814
UR_MEMORY_ORDER_CAPABILITY_FLAG_RELEASE |
815815
UR_MEMORY_ORDER_CAPABILITY_FLAG_ACQ_REL;
816-
#if __HIP_PLATFORM_NVIDIA__
816+
#ifdef __HIP_PLATFORM_NVIDIA__
817817
// Nvidia introduced fence.sc for seq_cst only since SM 7.0.
818818
int Major = 0;
819819
UR_CHECK_ERROR(hipDeviceGetAttribute(

0 commit comments

Comments
 (0)