mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2024-12-26 11:24:35 +00:00
cuda : fix multi-gpu with tensor cores
This commit is contained in:
parent
706ff4c2e0
commit
cd3e20fb50
@ -461,7 +461,12 @@ static_assert(K_QUANTS_PER_ITERATION == 1 || K_QUANTS_PER_ITERATION == 2, "K_QUA
|
|||||||
#define GGML_CUDA_PEER_MAX_BATCH_SIZE 128
|
#define GGML_CUDA_PEER_MAX_BATCH_SIZE 128
|
||||||
#endif // GGML_CUDA_PEER_MAX_BATCH_SIZE
|
#endif // GGML_CUDA_PEER_MAX_BATCH_SIZE
|
||||||
|
|
||||||
|
#ifdef GGML_CUDA_FORCE_MMQ
|
||||||
#define MUL_MAT_SRC1_COL_STRIDE 128
|
#define MUL_MAT_SRC1_COL_STRIDE 128
|
||||||
|
#else
|
||||||
|
// with tensor cores, we copy the entire hidden state to the devices in one go
|
||||||
|
#define MUL_MAT_SRC1_COL_STRIDE 4096
|
||||||
|
#endif
|
||||||
|
|
||||||
#define MAX_STREAMS 8
|
#define MAX_STREAMS 8
|
||||||
static cudaStream_t g_cudaStreams[GGML_CUDA_MAX_DEVICES][MAX_STREAMS] = { nullptr };
|
static cudaStream_t g_cudaStreams[GGML_CUDA_MAX_DEVICES][MAX_STREAMS] = { nullptr };
|
||||||
|
Loading…
Reference in New Issue
Block a user