-
Notifications
You must be signed in to change notification settings - Fork 511
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move topology detection out of merge pooled embedding (#1440)
Summary: Pull Request resolved: #1440 We want to expose the get_nvlink_matrix helper func from fbgemm to use it to detect the GPU topology. This is just a refactoring to move it out of the private namespace. Reviewed By: jspark1105 Differential Revision: D40464755 fbshipit-source-id: ee50feb07d32daffacad6d3f34f93efe884932ee
- Loading branch information
1 parent
f030ebc
commit 43ca0c7
Showing
3 changed files
with
205 additions
and
181 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* | ||
* Copyright (c) Meta Platforms, Inc. and affiliates. | ||
* All rights reserved. | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include <functional> | ||
|
||
using Node = int64_t; | ||
using Links = int64_t; | ||
template <typename T> | ||
using AdjacencyMatrix = std::function<T(Node, Node)>; | ||
|
||
namespace fbgemm_gpu { | ||
AdjacencyMatrix<Links> get_nvlink_matrix(); | ||
} // namespace fbgemm_gpu |
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.