[BUILD] Fix generate.py for gfx950 (#1575)

* [BUILD] Fix generate.py for gfx950

Signed-off-by: nilenegi <Nilesh.Negi@amd.com>

* [BUILD] Cleaner way to check for gfx targets

Signed-off-by: nilenegi <Nilesh.Negi@amd.com>

---------

Signed-off-by: nilenegi <Nilesh.Negi@amd.com>

[ROCm/rccl commit: 02b8e504f0]
이 커밋은 다음에 포함됨:
Nilesh M Negi 작성하고 GitHub가 2025-02-26 18:43:37 -06:00를 커밋함
1 부모 a9d09c6551
커밋 a3f44b4a10
1 파일이 변경됨
+2 -2
+2 -2
파일 보기
@@ -164,7 +164,7 @@ def calc_unroll_for_local_arch():
# Homogeneous system is required to build for only 1 varient of unroll factor
if len(gfx_targets) == 1:
gfx_name, cu_count = gfx_targets[0]
if "gfx908" == gfx_name or ("gfx94" in gfx_name and cu_count > 80):
if "gfx908" == gfx_name or (gfx_name in ["gfx942", "gfx950"] and cu_count > 80):
return 2
else:
return 4
@@ -516,4 +516,4 @@ if is_msccl_kernels:
out(
"MSCCL_IMPL_KERNEL_ENTRY_FUNC_DEVREDOP_TYPE({redop}, {ty_cxx}, false);\n"
.format(redop=redop, ty_cxx=ty_to_cxx[ty])
)
)