Skip to content

Commit ac44187

Browse files
yhmtsaiGregor Olenik
authored andcommitted
cuda13 removes some error kind from cufft
1 parent 22164fb commit ac44187

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

cuda/base/exception.cpp

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
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

0 commit comments

Comments
 (0)