File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- // SPDX-FileCopyrightText: 2017 - 2024 The Ginkgo authors
1+ // SPDX-FileCopyrightText: 2017 - 2025 The Ginkgo authors
22//
33// SPDX-License-Identifier: BSD-3-Clause
44
55#include " ginkgo/core/base/exception.hpp"
66
77#include < string>
88
9+ #include < cuda.h>
910#include < cuda_runtime.h>
1011#include < cublas_v2.h>
1112#include < cufft.h>
@@ -114,13 +115,15 @@ std::string CufftError::get_error(int64 error_code)
114115 GKO_REGISTER_CUFFT_ERROR (CUFFT_SETUP_FAILED)
115116 GKO_REGISTER_CUFFT_ERROR (CUFFT_INVALID_SIZE)
116117 GKO_REGISTER_CUFFT_ERROR (CUFFT_UNALIGNED_DATA)
117- GKO_REGISTER_CUFFT_ERROR (CUFFT_INCOMPLETE_PARAMETER_LIST)
118118 GKO_REGISTER_CUFFT_ERROR (CUFFT_INVALID_DEVICE)
119- GKO_REGISTER_CUFFT_ERROR (CUFFT_PARSE_ERROR)
120119 GKO_REGISTER_CUFFT_ERROR (CUFFT_NO_WORKSPACE)
121120 GKO_REGISTER_CUFFT_ERROR (CUFFT_NOT_IMPLEMENTED)
122- GKO_REGISTER_CUFFT_ERROR (CUFFT_LICENSE_ERROR)
123121 GKO_REGISTER_CUFFT_ERROR (CUFFT_NOT_SUPPORTED)
122+ #if CUDA_VERSION < 13000
123+ GKO_REGISTER_CUFFT_ERROR (CUFFT_INCOMPLETE_PARAMETER_LIST)
124+ GKO_REGISTER_CUFFT_ERROR (CUFFT_PARSE_ERROR)
125+ GKO_REGISTER_CUFFT_ERROR (CUFFT_LICENSE_ERROR)
126+ #endif
124127 return " Unknown error" ;
125128
126129#undef GKO_REGISTER_CUFFT_ERROR
You can’t perform that action at this time.
0 commit comments