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:
parent
a25fda5290
commit
6dc6614bf0
|
|
@ -243,9 +243,13 @@ static ggml_cuda_device_info ggml_cuda_init() {
|
||||||
info.devices[id].smpb = prop.sharedMemPerBlock;
|
info.devices[id].smpb = prop.sharedMemPerBlock;
|
||||||
info.devices[id].warp_size = prop.warpSize;
|
info.devices[id].warp_size = prop.warpSize;
|
||||||
|
|
||||||
int supportsCoopLaunch = 0;
|
#ifndef GGML_USE_MUSA
|
||||||
CUDA_CHECK(cudaDeviceGetAttribute(&supportsCoopLaunch, cudaDevAttrCooperativeLaunch, id));
|
int supports_coop_launch = 0;
|
||||||
info.devices[id].supports_cooperative_launch = !!supportsCoopLaunch;
|
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)
|
#if defined(GGML_USE_HIP)
|
||||||
info.devices[id].smpbo = prop.sharedMemPerBlock;
|
info.devices[id].smpbo = prop.sharedMemPerBlock;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue