From 74969bf2dbb850e0076d938c3c70429af399f6f1 Mon Sep 17 00:00:00 2001 From: Jian Chen Date: Wed, 19 Jun 2024 13:32:15 -0700 Subject: [PATCH] Update cufft_plan_cache.h Co-authored-by: Edward Chen <18449977+edgchen1@users.noreply.github.com> --- onnxruntime/contrib_ops/cuda/math/cufft_plan_cache.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/onnxruntime/contrib_ops/cuda/math/cufft_plan_cache.h b/onnxruntime/contrib_ops/cuda/math/cufft_plan_cache.h index 7a875631708cf..3d21b12f9b55c 100644 --- a/onnxruntime/contrib_ops/cuda/math/cufft_plan_cache.h +++ b/onnxruntime/contrib_ops/cuda/math/cufft_plan_cache.h @@ -33,8 +33,8 @@ struct CufftPlanInfo { // see https://en.wikipedia.org/wiki/Fowler%E2%80%93Noll%E2%80%93Vo_hash_function template struct ParamsHash { - // Params must be a trivial because we read out its memory - // constant as char* when hashing + // Params must be a trivial type because we read out its memory + // contents as char* when hashing static_assert(std::is_trivial::value, "Params is not a trivial type"); size_t operator()(const T& params) const {