mirror of
https://github.com/NVIDIA/TensorRT-LLM.git
synced 2026-01-13 22:18:36 +08:00
Signed-off-by: William Tambellini <wtambellini@sdl.com>
This commit is contained in:
parent
af403848d7
commit
a6ed0d17d6
1
.gitignore
vendored
1
.gitignore
vendored
@ -7,6 +7,7 @@ __pycache__/
|
||||
*.npy
|
||||
.VSCodeCounter
|
||||
cpp/build*
|
||||
cpp/Release
|
||||
build
|
||||
!tensorrt_llm/bench/build
|
||||
!builders/
|
||||
|
||||
@ -14,16 +14,18 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
#pragma once
|
||||
#include "nccl.h"
|
||||
#include "tensorrt_llm/runtime/worldConfig.h"
|
||||
#include <memory>
|
||||
#if ENABLE_MULTI_DEVICE
|
||||
#include "nccl.h"
|
||||
#include "userbuffers.h"
|
||||
#ifdef _WIN32
|
||||
#include <windows.h>
|
||||
#else
|
||||
#include <dlfcn.h>
|
||||
#endif
|
||||
#else
|
||||
using ncclWindow_t = void*;
|
||||
#endif
|
||||
|
||||
namespace tensorrt_llm::runtime::ub
|
||||
@ -50,6 +52,7 @@ struct UBBuffer
|
||||
return (addr == nullptr) || (handle == -1) || (size == 0);
|
||||
}
|
||||
};
|
||||
|
||||
#if ENABLE_MULTI_DEVICE
|
||||
class UserBufferAllocator
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user