Skip to content

Commit

Permalink
Fix-ups after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Wee-Free-Scot committed Dec 6, 2023
1 parent a9c6aa2 commit b8850be
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ if(UR_FORMAT_CPP_STYLE)
message(STATUS "Found clang-format: ${CLANG_FORMAT} (version: ${CLANG_FORMAT_VERSION})")

set(CLANG_FORMAT_REQUIRED "15.0")
if(NOT (CLANG_FORMAT_VERSION VERSION_EQUAL CLANG_FORMAT_REQUIRED))
if(NOT (CLANG_FORMAT_VERSION VERSION_GREATER_EQUAL CLANG_FORMAT_REQUIRED))
message(FATAL_ERROR "required clang-format version is ${CLANG_FORMAT_REQUIRED}")
endif()
else()
Expand Down
8 changes: 4 additions & 4 deletions include/ur_print.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15630,11 +15630,11 @@ inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct
/// @brief Print operator for the ur_device_get_selected_params_t type
/// @returns
/// std::ostream &
inline std::ostream &operator<<(std::ostream &os, , [[maybe_unused]] const struct ur_device_get_selected_params_t *params) {
inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct ur_device_get_selected_params_t *params) {

os << ".hPlatform = ";

ur_params::serializePtr(os, *(params->phPlatform));
ur::details::printPtr(os, *(params->phPlatform));

os << ", ";
os << ".DeviceType = ";
Expand All @@ -15654,14 +15654,14 @@ inline std::ostream &operator<<(std::ostream &os, , [[maybe_unused]] const struc
os << ", ";
}

ur_params::serializePtr(os, (*(params->pphDevices))[i]);
ur::details::printPtr(os, (*(params->pphDevices))[i]);
}
os << "}";

os << ", ";
os << ".pNumDevices = ";

ur_params::serializePtr(os, *(params->ppNumDevices));
ur::details::printPtr(os, *(params->ppNumDevices));

return os;
}
Expand Down

0 comments on commit b8850be

Please sign in to comment.