HIP: remove the use of __HIP_PLATFORM_AMD__, explicitly support only AMD targets (#14945)

This commit is contained in:
uvos
2025-07-29 20:23:04 +02:00
committed by GitHub
parent b77d11179d
commit aa79524c51
10 changed files with 67 additions and 65 deletions

View File

@@ -68,7 +68,7 @@ namespace ggml_cuda_mma {
static constexpr int I = I_;
static constexpr int J = J_;
#if defined(GGML_USE_HIP) && defined(__HIP_PLATFORM_AMD__)
#if defined(GGML_USE_HIP)
static constexpr int ne = I * J / 64;
T x[ne] = {0};
@@ -132,7 +132,7 @@ namespace ggml_cuda_mma {
static_assert(I == -1 && J == -1, "template specialization not implemented");
}
}
#endif // defined(GGML_USE_HIP) && defined(__HIP_PLATFORM_AMD__)
#endif // defined(GGML_USE_HIP)
};
template <int I_, int J_>