File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -184,7 +184,7 @@ static ggml_cuda_device_info ggml_cuda_init() {
184
184
for (int id = 0 ; id < info.device_count ; ++id) {
185
185
int device_vmm = 0 ;
186
186
187
- #if !defined(GGML_USE_HIPBLAS) && !defined(GGML_CUDA_NO_VMM) && !defined(GGML_USE_MUSA)
187
+ #if !defined(GGML_USE_HIPBLAS) && !defined(GGML_CUDA_NO_VMM)
188
188
CUdevice device;
189
189
CU_CHECK (cuDeviceGet (&device, id));
190
190
CU_CHECK (cuDeviceGetAttribute (&device_vmm, CU_DEVICE_ATTRIBUTE_VIRTUAL_MEMORY_MANAGEMENT_SUPPORTED, device));
@@ -196,7 +196,7 @@ static ggml_cuda_device_info ggml_cuda_init() {
196
196
alloc_prop.location .id = id;
197
197
CU_CHECK (cuMemGetAllocationGranularity (&info.devices [id].vmm_granularity , &alloc_prop, CU_MEM_ALLOC_GRANULARITY_RECOMMENDED));
198
198
}
199
- #endif // !defined(GGML_USE_HIPBLAS) && !defined(GGML_CUDA_NO_VMM) && !defined(GGML_USE_MUSA)
199
+ #endif // !defined(GGML_USE_HIPBLAS) && !defined(GGML_CUDA_NO_VMM)
200
200
info.devices [id].vmm = !!device_vmm;
201
201
202
202
cudaDeviceProp prop;
You can’t perform that action at this time.
0 commit comments