Skip to content

Commit

Permalink
Change platform macro definition check ifdef from if
Browse files Browse the repository at this point in the history
Co-authored-by: Hugh Delaney <hugh.delaney@codeplay.com>
  • Loading branch information
GeorgeWeb and hdelan authored Apr 30, 2024
1 parent c7df3b7 commit ed37f6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/adapters/hip/device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +774,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
UR_MEMORY_ORDER_CAPABILITY_FLAG_ACQUIRE |
UR_MEMORY_ORDER_CAPABILITY_FLAG_RELEASE |
UR_MEMORY_ORDER_CAPABILITY_FLAG_ACQ_REL;
#if __HIP_PLATFORM_NVIDIA__
#ifdef __HIP_PLATFORM_NVIDIA__
// Nvidia introduced fence.sc for seq_cst only since SM 7.0.
int Major = 0;
UR_CHECK_ERROR(hipDeviceGetAttribute(
Expand Down

0 comments on commit ed37f6c

Please sign in to comment.