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.
TL/UCP: Add stubs for sliding window allreduce
- Loading branch information
Showing
15 changed files
with
593 additions
and
57 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
71 changes: 71 additions & 0 deletions
71
src/components/tl/ucp/allreduce/allreduce_sliding_window.c
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,71 @@ | ||
/** | ||
* Copyright(c) 2021-2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||
* | ||
* See file LICENSE for terms. | ||
*/ | ||
|
||
#include "allreduce.h" | ||
#include "../allgather/allgather.h" | ||
#include "../barrier/barrier.h" | ||
#include "utils/ucc_dt_reduce.h" | ||
#include "tl_ucp_ep.h" | ||
|
||
static inline void | ||
ucc_tl_ucp_allreduce_sliding_window_reset_buf(ucc_tl_ucp_allreduce_sw_buf *buf) | ||
{ | ||
} | ||
|
||
static inline void ucc_tl_ucp_allreduce_sliding_window_reset_pipeline( | ||
ucc_tl_ucp_allreduce_sw_pipeline *pipe, ucc_rank_t rank, | ||
size_t put_window_size) | ||
{ | ||
} | ||
|
||
ucc_status_t | ||
ucc_tl_ucp_allreduce_sliding_window_start(ucc_coll_task_t *coll_task) | ||
{ | ||
return UCC_OK; | ||
} | ||
|
||
ucc_status_t | ||
ucc_tl_ucp_allreduce_sliding_window_finalize(ucc_coll_task_t *coll_task) | ||
{ | ||
return UCC_OK; | ||
} | ||
|
||
static inline void ucc_tl_ucp_allreduce_sliding_window_reduction( | ||
ucc_coll_task_t *coll_task, ucc_tl_ucp_allreduce_sw_buf *accbuf, | ||
ucc_tl_ucp_allreduce_sw_buf *getbuf) | ||
{ | ||
} | ||
|
||
static inline void | ||
ucc_tl_ucp_allreduce_sliding_window_test_reduction(ucc_tl_ucp_task_t *task) | ||
{ | ||
} | ||
|
||
static inline ucc_status_t | ||
ucc_tl_ucp_allreduce_sliding_window_req_test(ucs_status_ptr_t request, | ||
ucc_tl_ucp_task_t *task) | ||
{ | ||
return UCC_OK; | ||
} | ||
|
||
static inline void ucc_tl_ucp_allreduce_sliding_window_allgather_info_test( | ||
ucc_coll_task_t *coll_task) | ||
{ | ||
} | ||
|
||
static inline void ucc_tl_ucp_allreduce_sliding_window_allgather_free_rkeys( | ||
ucc_coll_task_t *coll_task) | ||
{ | ||
} | ||
|
||
static inline void | ||
ucc_tl_ucp_allreduce_sliding_window_barrier(ucc_coll_task_t *coll_task) | ||
{ | ||
} | ||
|
||
void ucc_tl_ucp_allreduce_sliding_window_progress(ucc_coll_task_t *coll_task) | ||
{ | ||
} |
38 changes: 38 additions & 0 deletions
38
src/components/tl/ucp/allreduce/allreduce_sliding_window_setup.c
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,38 @@ | ||
/** | ||
* Copyright(c) 2021-2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||
* | ||
* See file LICENSE for terms. | ||
*/ | ||
|
||
#include "allreduce.h" | ||
#include "../allgather/allgather.h" | ||
#include "utils/ucc_dt_reduce.h" | ||
#include "tl_ucp_ep.h" | ||
|
||
ucc_status_t | ||
ucc_tl_ucp_allreduce_sliding_window_task_init(ucc_base_coll_args_t *coll_args, | ||
ucc_base_team_t * team, | ||
ucc_tl_ucp_task_t * task) | ||
{ | ||
return UCC_OK; | ||
} | ||
|
||
ucc_status_t ucc_tl_ucp_allreduce_sliding_window_allgather_info_finalize( | ||
ucc_service_coll_req_t *scoll_req, ucc_tl_ucp_task_t *sw_task) | ||
{ | ||
return UCC_OK; | ||
} | ||
|
||
ucc_status_t | ||
ucc_tl_ucp_allreduce_sliding_window_alloc_pipe(ucc_base_coll_args_t *coll_args, | ||
ucc_base_team_t * team, | ||
ucc_tl_ucp_task_t * task) | ||
{ | ||
return UCC_OK; | ||
} | ||
|
||
ucc_status_t | ||
ucc_tl_ucp_allreduce_sliding_window_free_gwbi(ucc_coll_task_t *coll_task) | ||
{ | ||
return UCC_OK; | ||
} |
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
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
Oops, something went wrong.