mirror of
https://github.com/vosen/ZLUDA.git
synced 2025-08-02 14:57:43 +03:00
Fix code with debug assertions turned off
This commit is contained in:
@ -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)]
|
||||
|
@ -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)]
|
||||
|
@ -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)]
|
||||
|
Reference in New Issue
Block a user