forked from openucx/ucc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
43 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
cmake_minimum_required(VERSION 3.5) | ||
|
||
project(test_ucc) | ||
find_package(UCC REQUIRED) | ||
add_executable(test_ucc main.cpp) | ||
target_link_libraries(test_ucc ucc::ucc) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#include <ucc/api/ucc.h> | ||
#include <cassert> | ||
|
||
int main(int argc, char *argv[]) { | ||
ucc_status_t st; | ||
|
||
ucc_lib_config_h lib_config; | ||
st = ucc_lib_config_read(nullptr, nullptr, &lib_config); | ||
assert(st == UCC_OK); | ||
|
||
ucc_lib_params_t lib_params = {}; | ||
lib_params.mask = UCC_LIB_PARAM_FIELD_THREAD_MODE; | ||
lib_params.thread_mode = UCC_THREAD_MULTIPLE; | ||
|
||
ucc_lib_h lib; | ||
st = ucc_init(&lib_params, lib_config, &lib); | ||
assert(st == UCC_OK); | ||
|
||
ucc_lib_config_release(lib_config); | ||
ucc_finalize(lib); | ||
return 0; | ||
} |