Fix code with debug assertions turned off

This commit is contained in:
Violet
2025-07-28 21:16:59 +00:00
parent 9ebfe9d996
commit 970c6b7fdd
3 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
use cuda_types::cublas::cublasStatus_t;
use cuda_types::cublas::*;
#[cfg(debug_assertions)]
pub(crate) fn unimplemented() -> cublasStatus_t {
@ -7,7 +7,7 @@ pub(crate) fn unimplemented() -> cublasStatus_t {
#[cfg(not(debug_assertions))]
pub(crate) fn unimplemented() -> cublasStatus_t {
cublasStatus_t::CUBLAS_STATUS_NOT_SUPPORTED
cublasStatus_t::ERROR_NOT_SUPPORTED
}
#[allow(non_snake_case)]

View File

@ -1,4 +1,4 @@
use cuda_types::cublas::cublasStatus_t;
use cuda_types::cublas::*;
#[cfg(debug_assertions)]
pub(crate) fn unimplemented() -> cublasStatus_t {
@ -7,7 +7,7 @@ pub(crate) fn unimplemented() -> cublasStatus_t {
#[cfg(not(debug_assertions))]
pub(crate) fn unimplemented() -> cublasStatus_t {
cublasStatus_t::CUBLAS_STATUS_NOT_SUPPORTED
cublasStatus_t::ERROR_NOT_SUPPORTED
}
#[allow(non_snake_case)]

View File

@ -1,4 +1,4 @@
use cuda_types::cusparse::cusparseStatus_t;
use cuda_types::cusparse::*;
#[cfg(debug_assertions)]
pub(crate) fn unimplemented() -> cusparseStatus_t {
@ -7,7 +7,7 @@ pub(crate) fn unimplemented() -> cusparseStatus_t {
#[cfg(not(debug_assertions))]
pub(crate) fn unimplemented() -> cusparseStatus_t {
cusparseStatus_t::CUSPARSE_STATUS_NOT_SUPPORTED
cusparseStatus_t::ERROR_NOT_SUPPORTED
}
#[allow(non_snake_case)]