Disable cooperative groups for musa

Didn't find any doc online, so I don't even know if they support this
This commit is contained in:
Oliver Simons 2025-12-09 19:09:52 +01:00
parent a25fda5290
commit 6dc6614bf0
1 changed files with 7 additions and 3 deletions

View File

@ -243,9 +243,13 @@ static ggml_cuda_device_info ggml_cuda_init() {
info.devices[id].smpb = prop.sharedMemPerBlock;
info.devices[id].warp_size = prop.warpSize;
int supportsCoopLaunch = 0;
CUDA_CHECK(cudaDeviceGetAttribute(&supportsCoopLaunch, cudaDevAttrCooperativeLaunch, id));
info.devices[id].supports_cooperative_launch = !!supportsCoopLaunch;
#ifndef GGML_USE_MUSA
int supports_coop_launch = 0;
CUDA_CHECK(cudaDeviceGetAttribute(&supports_coop_launch, cudaDevAttrCooperativeLaunch, id));
info.devices[id].supports_cooperative_launch = !!supports_coop_launch;
#else
info.devices[id].supports_cooperative_launch = false;
#endif // !(GGML_USE_MUSA)
#if defined(GGML_USE_HIP)
info.devices[id].smpbo = prop.sharedMemPerBlock;