Skip to content

Commit

Permalink
API: moving get version to ucc.h (#739)
Browse files Browse the repository at this point in the history
  • Loading branch information
shimmybalsam authored and jirikraus committed Mar 13, 2023
1 parent 665a500 commit 50ca53e
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/core/ucc_lib.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@ typedef struct ucc_lib_info {
ucc_cl_lib_attr_t *cl_attrs;
} ucc_lib_info_t;

void ucc_get_version(unsigned *major_version, unsigned *minor_version,
unsigned *release_number);

int ucc_tl_is_required(ucc_lib_info_t *lib, ucc_tl_iface_t *tl_iface,
int forced);
#endif
21 changes: 21 additions & 0 deletions src/ucc/api/ucc.h
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,27 @@ void ucc_lib_config_print(const ucc_lib_config_h config, FILE *stream,
ucc_status_t ucc_lib_config_modify(ucc_lib_config_h config, const char *name,
const char *value);

/**
* @ingroup UCC_LIB
* @brief Get UCC library version.
*
* This routine returns the UCC library version.
*
* @param [out] major_version Filled with library major version.
* @param [out] minor_version Filled with library minor version.
* @param [out] release_number Filled with library release number.
*/
void ucc_get_version(unsigned *major_version, unsigned *minor_version,
unsigned *release_number);

/**
* @ingroup UCC_LIB
* @brief Get UCC library version as a string.
*
* This routine returns the UCC library version as a string which consists of:
* "major.minor.release".
*/
const char *ucc_get_version_string(void);

/**
* @ingroup UCC_LIB
Expand Down

0 comments on commit 50ca53e

Please sign in to comment.