[arrayfire] 135/284: Add missing af_err to string
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Sun Feb 7 18:59:27 UTC 2016
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch debian/experimental
in repository arrayfire.
commit b89ab5dba7487e0b30191371d7111845fa75cdde
Author: Shehzan Mohammed <shehzan at arrayfire.com>
Date: Thu Dec 31 13:54:04 2015 -0500
Add missing af_err to string
---
src/api/c/err_common.cpp | 43 ++++++++++++++++++++++++-------------------
1 file changed, 24 insertions(+), 19 deletions(-)
diff --git a/src/api/c/err_common.cpp b/src/api/c/err_common.cpp
index b9fa492..886e43b 100644
--- a/src/api/c/err_common.cpp
+++ b/src/api/c/err_common.cpp
@@ -182,26 +182,31 @@ void af_get_last_error(char **str, dim_t *len)
const char *af_err_to_string(const af_err err)
{
switch (err) {
- case AF_SUCCESS: return "Success";
- case AF_ERR_INTERNAL: return "Internal error";
- case AF_ERR_NO_MEM: return "Device out of memory";
- case AF_ERR_DRIVER: return "Driver not available or incompatible";
- case AF_ERR_RUNTIME: return "Runtime error ";
- case AF_ERR_INVALID_ARRAY: return "Invalid array";
- case AF_ERR_ARG: return "Invalid input argument";
- case AF_ERR_SIZE: return "Invalid input size";
- case AF_ERR_DIFF_TYPE: return "Input types are not the same";
- case AF_ERR_NOT_SUPPORTED: return "Function not supported";
- case AF_ERR_NOT_CONFIGURED: return "Function not configured to build";
- case AF_ERR_TYPE: return "Function does not support this data type";
- case AF_ERR_NO_DBL: return "Double precision not supported for this device";
- case AF_ERR_LOAD_LIB: return "Failed to load dynamic library. See http://www.arrayfire.com/docs/unifiedbackend.htm for instructions to set up environment for Unified backend";
- case AF_ERR_LOAD_SYM: return "Failed to load symbol";
- case AF_ERR_ARR_BKND_MISMATCH :
- return "There was a mismatch between an array and the current backend";
+ case AF_SUCCESS: return "Success";
+ case AF_ERR_NO_MEM: return "Device out of memory";
+ case AF_ERR_DRIVER: return "Driver not available or incompatible";
+ case AF_ERR_RUNTIME: return "Runtime error ";
+ case AF_ERR_INVALID_ARRAY: return "Invalid array";
+ case AF_ERR_ARG: return "Invalid input argument";
+ case AF_ERR_SIZE: return "Invalid input size";
+ case AF_ERR_TYPE: return "Function does not support this data type";
+ case AF_ERR_DIFF_TYPE: return "Input types are not the same";
+ case AF_ERR_BATCH: return "Invalid batch configuration";
+ case AF_ERR_NOT_SUPPORTED: return "Function not supported";
+ case AF_ERR_NOT_CONFIGURED: return "Function not configured to build";
+ case AF_ERR_NONFREE: return "Function unavailable."
+ "ArrayFire compiled without Non-Free algorithms support";
+ case AF_ERR_NO_DBL: return "Double precision not supported for this device";
+ case AF_ERR_NO_GFX: return "Graphics functionality unavailable."
+ "ArrayFire compiled without Graphics support";
+ case AF_ERR_LOAD_LIB: return "Failed to load dynamic library."
+ "See http://www.arrayfire.com/docs/unifiedbackend.htm"
+ "for instructions to set up environment for Unified backend";
+ case AF_ERR_LOAD_SYM: return "Failed to load symbol";
+ case AF_ERR_ARR_BKND_MISMATCH: return "There was a mismatch between an array and the current backend";
+ case AF_ERR_INTERNAL: return "Internal error";
case AF_ERR_UNKNOWN:
- default:
- return "Unknown error";
+ default: return "Unknown error";
}
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/arrayfire.git
More information about the debian-science-commits
mailing list