Skip to content

Commit

Permalink
Merge branch 'master' into sharp-oob
Browse files Browse the repository at this point in the history
  • Loading branch information
bureddy authored Mar 13, 2023
2 parents 0f1fd69 + 1cdc03d commit b6ebc8a
Show file tree
Hide file tree
Showing 3 changed files with 34 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
13 changes: 13 additions & 0 deletions test/mpi/main.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
* Copyright (c) Advanced Micro Devices, Inc. 2023. ALL RIGHTS RESERVED.
*
* See file LICENSE for terms.
*/

#include <getopt.h>
#include <sstream>
#include "test_mpi.h"
Expand Down Expand Up @@ -626,6 +633,12 @@ int main(int argc, char *argv[])
" elapsed : " <<
std::chrono::duration_cast<std::chrono::seconds>(end - begin).count()
<< "s" << std::endl;

if (skipped == test->results.size()) {
std::cout << "\n All tests have been skipped, indicating most likely "
"a problem\n";
failed = 1;
}
}
test_exit:
delete test;
Expand Down

0 comments on commit b6ebc8a

Please sign in to comment.