prop.memoryPoolsSupported cant be found in cuda 17. Revert back to basic error check.
This commit is contained in:
parent
c42ca8f1b7
commit
815bf1a2f6
1 changed files with 6 additions and 9 deletions
15
ggml-cuda.cu
15
ggml-cuda.cu
|
@ -5851,16 +5851,13 @@ void ggml_init_cublas() {
|
|||
fprintf(stderr, " Device %d: %s, compute capability %d.%d", id, prop.name, prop.major, prop.minor);
|
||||
#if defined(CUDA_USE_MEMORY_POOL)
|
||||
// configure memory pool
|
||||
if (prop.memoryPoolsSupported == 1) {
|
||||
cudaError_t err = cudaDeviceGetMemPool(&g_cudaMemPools[id], id);
|
||||
if (err == cudaSuccess) {
|
||||
size_t treshold = UINT64_MAX;
|
||||
CUDA_CHECK(cudaMemPoolSetAttribute(g_cudaMemPools[id], cudaMemPoolAttrReleaseThreshold, &treshold));
|
||||
fprintf(stderr, ", CUDA memory pool is supported\n");
|
||||
} else {
|
||||
g_cudaMemPools[id] = nullptr;
|
||||
}
|
||||
cudaError_t err = cudaDeviceGetMemPool(&g_cudaMemPools[id], id);
|
||||
if (err == cudaSuccess) {
|
||||
size_t treshold = UINT64_MAX;
|
||||
CUDA_CHECK(cudaMemPoolSetAttribute(g_cudaMemPools[id], cudaMemPoolAttrReleaseThreshold, &treshold));
|
||||
fprintf(stderr, ", CUDA memory pool is supported\n");
|
||||
} else {
|
||||
g_cudaMemPools[id] = nullptr;
|
||||
fprintf(stderr, ", CUDA memory pool is not supported\n");
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue