Skip to content

Commit

Permalink
fabtests/multinode: Skip tests for unsupported collective operations
Browse files Browse the repository at this point in the history
Some collective providers do not support all collective operations.
In such a case unsupported operations will not affect the final test result.

fi_query_collective() is used to check operation support.

A new function, test_query(), call fi_query_collective() with parameters defined in
extended coll_test structure.
The test is silently skipped if fi_query_collective returns -FI_ENOSYS.

Signed-off-by: Tomasz Gromadzki <[email protected]>
  • Loading branch information
grom72 committed Dec 21, 2022
1 parent 316a078 commit 129bc8a
Show file tree
Hide file tree
Showing 2 changed files with 129 additions and 119 deletions.
20 changes: 9 additions & 11 deletions fabtests/multinode/include/coll_test.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,13 @@
*/
#pragma once



typedef int (*coll_test_setup_t)();
typedef int (*coll_test_run_t)();
typedef void (*coll_test_teardown_t)();

struct coll_test {
char *name;
coll_test_setup_t setup;
coll_test_run_t run;
coll_test_teardown_t teardown;
};
char *name;
int (*setup)(void);
int (*run)(enum fi_collective_op coll_op, enum fi_op op,
enum fi_datatype datatype);
int (*teardown)(void);
enum fi_collective_op coll_op;
enum fi_op op;
enum fi_datatype datatype;
};
Loading

0 comments on commit 129bc8a

Please sign in to comment.