Repository navigation
UCT/GDA: Use gpunetio submodule #11122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
cd1a43b
UCT/GDA: Use gpunetio submodule
Artemy-Mellanox 5dfed4b
UCT/GDA: Use gpunetio submodule - 2
Artemy-Mellanox bf2100f
UCT/GDA: Use gpunetio submodule - 3
Artemy-Mellanox 682c1e8
UCT/GDA: Use gpunetio submodule - 4
Artemy-Mellanox 432a4ba
UCT/GDA: Use gpunetio submodule - 5
Artemy-Mellanox a3204c7
Merge remote-tracking branch 'origin/master' into topic/gpunetio-use
Artemy-Mellanox b5b2f04
UCT/GDA: Use gpunetio submodule - 6
Artemy-Mellanox e79b87a
UCT/GDA: Use gpunetio submodule - 7
Artemy-Mellanox 9f3b8c4
UCT/GDA: Use gpunetio submodule - 8
Artemy-Mellanox d0e5ea0
UCT/GDA: Use gpunetio submodule - 9
Artemy-Mellanox 1133624
UCT/GDA: Use gpunetio submodule - 10
Artemy-Mellanox 82dbc5e
UCT/GDA: Use gpunetio submodule - 11
Artemy-Mellanox d4b2655
UCT/GDA: Use gpunetio submodule - 12
Artemy-Mellanox 94c18a9
UCT/GDA: Use gpunetio submodule - 13
Artemy-Mellanox 3fe30bc
UCT/GDA: Use gpunetio submodule - 14
Artemy-Mellanox 1dd18a1
UCT/GDA: Use gpunetio submodule - 15
Artemy-Mellanox b8b1885
UCT/GDA: Use gpunetio submodule - 16
Artemy-Mellanox 22762c9
UCT/GDA: Use gpunetio submodule - 17
Artemy-Mellanox af10456
Merge remote-tracking branch 'origin/master' into topic/gpunetio-use
Artemy-Mellanox File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| [submodule "src/uct/ib/mlx5/gdaki/gpunetio"] | ||
| path = src/uct/ib/mlx5/gdaki/gpunetio | ||
| path = external/gpunetio | ||
| url = https://github.com/NVIDIA-DOCA/gpunetio |
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -41,8 +41,7 @@ SUBDIRS = \ | |
| src/ucm \ | ||
| src/ucs \ | ||
| src/uct \ | ||
| src/ucp \ | ||
| stubs | ||
| src/ucp | ||
|
|
||
| SUBDIRS += \ | ||
| src/tools/vfs \ | ||
|
|
||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -1,2 +1,4 @@ | ||
| usr/lib/ucx/libucx_perftest_cuda.* | ||
| usr/lib/ucx/libuc?_cuda.* | ||
| usr/lib/ucx/libuct_ib_mlx5_gda.* | ||
| usr/include/uct/ib/mlx5/gdaki/* |
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -13,10 +13,17 @@ | |
| #include <uct/cuda/cuda_ipc/cuda_ipc.cuh> | ||
| #include <ucs/sys/device_code.h> | ||
|
|
||
| #include <uct/ib/mlx5/gdaki/gdaki.cuh> | ||
| #if __has_include(<uct/ib/mlx5/gdaki/gdaki.cuh>) && __has_include(<infiniband/mlx5dv.h>) | ||
| # include <uct/ib/mlx5/gdaki/gdaki.cuh> | ||
| # define UCT_RC_MLX5_GDA_SUPPORTED 1 | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd propose unified naming: |
||
| #else | ||
| # define UCT_RC_MLX5_GDA_SUPPORTED 0 | ||
| #endif | ||
|
|
||
| union uct_device_completion { | ||
| #if UCT_RC_MLX5_GDA_SUPPORTED | ||
| uct_rc_gda_completion_t rc_gda; | ||
| #endif | ||
| uct_cuda_ipc_completion_t cuda_ipc; | ||
| }; | ||
|
|
||
|
|
@@ -56,12 +63,15 @@ UCS_F_DEVICE ucs_status_t uct_device_ep_put_single( | |
| const void *address, uint64_t remote_address, size_t length, | ||
| unsigned channel_id, uint64_t flags, uct_device_completion_t *comp) | ||
| { | ||
| #if UCT_RC_MLX5_GDA_SUPPORTED | ||
| if (device_ep->uct_tl_id == UCT_DEVICE_TL_RC_MLX5_GDA) { | ||
| return uct_rc_mlx5_gda_ep_put_single<level>(device_ep, mem_elem, | ||
| address, remote_address, | ||
| length, channel_id, flags, | ||
| comp); | ||
| } else if (device_ep->uct_tl_id == UCT_DEVICE_TL_CUDA_IPC) { | ||
| } else | ||
| #endif | ||
| if (device_ep->uct_tl_id == UCT_DEVICE_TL_CUDA_IPC) { | ||
| return uct_cuda_ipc_ep_put_single<level>(device_ep, mem_elem, address, | ||
| remote_address, length, flags, | ||
| comp); | ||
|
|
@@ -109,12 +119,15 @@ uct_device_ep_put(uct_device_ep_h device_ep, | |
| uint64_t remote_address, size_t length, unsigned channel_id, | ||
| uint64_t flags, uct_device_completion_t *comp) | ||
| { | ||
| #if UCT_RC_MLX5_GDA_SUPPORTED | ||
| if (device_ep->uct_tl_id == UCT_DEVICE_TL_RC_MLX5_GDA) { | ||
| return uct_rc_mlx5_gda_ep_put_single<level>(device_ep, src_uct_elem, | ||
| mem_elem, address, | ||
| remote_address, length, | ||
| channel_id, flags, comp); | ||
| } else if (device_ep->uct_tl_id == UCT_DEVICE_TL_CUDA_IPC) { | ||
| } else | ||
| #endif | ||
| if (device_ep->uct_tl_id == UCT_DEVICE_TL_CUDA_IPC) { | ||
| return uct_cuda_ipc_ep_put_single<level>(device_ep, mem_elem, address, | ||
| remote_address, length, flags, | ||
| comp); | ||
|
|
@@ -157,11 +170,14 @@ UCS_F_DEVICE ucs_status_t uct_device_ep_atomic_add( | |
| uint64_t inc_value, uint64_t remote_address, unsigned channel_id, | ||
| uint64_t flags, uct_device_completion_t *comp) | ||
| { | ||
| #if UCT_RC_MLX5_GDA_SUPPORTED | ||
| if (device_ep->uct_tl_id == UCT_DEVICE_TL_RC_MLX5_GDA) { | ||
| return uct_rc_mlx5_gda_ep_atomic_add<level>(device_ep, mem_elem, | ||
| inc_value, remote_address, | ||
| channel_id, flags, comp); | ||
| } else if (device_ep->uct_tl_id == UCT_DEVICE_TL_CUDA_IPC) { | ||
| } else | ||
| #endif | ||
| if (device_ep->uct_tl_id == UCT_DEVICE_TL_CUDA_IPC) { | ||
| return uct_cuda_ipc_ep_atomic_add<level>(device_ep, mem_elem, inc_value, | ||
| remote_address, flags, comp); | ||
| } | ||
|
|
@@ -247,14 +263,17 @@ UCS_F_DEVICE ucs_status_t uct_device_ep_put_multi( | |
| uint64_t counter_inc_value, uint64_t counter_remote_address, | ||
| unsigned channel_id, uint64_t flags, uct_device_completion_t *comp) | ||
| { | ||
| #if UCT_RC_MLX5_GDA_SUPPORTED | ||
| if (device_ep->uct_tl_id == UCT_DEVICE_TL_RC_MLX5_GDA) { | ||
| return uct_rc_mlx5_gda_ep_put_multi<level>(device_ep, mem_list, | ||
| mem_list_count, addresses, | ||
| remote_addresses, lengths, | ||
| counter_inc_value, | ||
| counter_remote_address, | ||
| channel_id, flags, comp); | ||
| } else if (device_ep->uct_tl_id == UCT_DEVICE_TL_CUDA_IPC) { | ||
| } else | ||
| #endif | ||
| if (device_ep->uct_tl_id == UCT_DEVICE_TL_CUDA_IPC) { | ||
| return uct_cuda_ipc_ep_put_multi<level>(device_ep, mem_list, | ||
| mem_list_count, addresses, | ||
| remote_addresses, lengths, | ||
|
|
@@ -331,13 +350,16 @@ UCS_F_DEVICE ucs_status_t uct_device_ep_put_multi_partial( | |
| uint64_t counter_inc_value, uint64_t counter_remote_address, | ||
| unsigned channel_id, uint64_t flags, uct_device_completion_t *comp) | ||
| { | ||
| #if UCT_RC_MLX5_GDA_SUPPORTED | ||
| if (device_ep->uct_tl_id == UCT_DEVICE_TL_RC_MLX5_GDA) { | ||
| return uct_rc_mlx5_gda_ep_put_multi_partial<level>( | ||
| device_ep, mem_list, mem_list_indices, mem_list_count, | ||
| addresses, remote_addresses, local_offsets, remote_offsets, | ||
| lengths, counter_index, counter_inc_value, | ||
| counter_remote_address, channel_id, flags, comp); | ||
| } else if (device_ep->uct_tl_id == UCT_DEVICE_TL_CUDA_IPC) { | ||
| } else | ||
| #endif | ||
| if (device_ep->uct_tl_id == UCT_DEVICE_TL_CUDA_IPC) { | ||
| return uct_cuda_ipc_ep_put_multi_partial<level>( | ||
| device_ep, mem_list, mem_list_indices, mem_list_count, | ||
| addresses, remote_addresses, local_offsets, remote_offsets, | ||
|
|
@@ -357,9 +379,11 @@ UCS_F_DEVICE ucs_status_t uct_device_ep_put_multi_partial( | |
| template<ucs_device_level_t level> | ||
| UCS_F_DEVICE void uct_device_ep_progress(uct_device_ep_h device_ep) | ||
| { | ||
| #if UCT_RC_MLX5_GDA_SUPPORTED | ||
| if (device_ep->uct_tl_id == UCT_DEVICE_TL_RC_MLX5_GDA) { | ||
| uct_rc_mlx5_gda_ep_progress<level>(device_ep); | ||
| } | ||
| #endif | ||
| } | ||
|
|
||
|
|
||
|
|
@@ -379,9 +403,11 @@ template<ucs_device_level_t level> | |
| UCS_F_DEVICE ucs_status_t uct_device_ep_check_completion( | ||
| uct_device_ep_h device_ep, uct_device_completion_t *comp) | ||
| { | ||
| #if UCT_RC_MLX5_GDA_SUPPORTED | ||
| if (device_ep->uct_tl_id == UCT_DEVICE_TL_RC_MLX5_GDA) { | ||
| return uct_rc_mlx5_gda_ep_check_completion<level>(device_ep, comp); | ||
| } | ||
| #endif | ||
|
|
||
| return UCS_ERR_UNSUPPORTED; | ||
| } | ||
|
|
||
This file contains hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.