Enum cusparseStatus
This is a status type returned by the library functions and it can have the following values.
Namespace: ManagedCuda.CudaSparse
Assembly: CudaSparse.dll
Syntax
public enum cusparseStatus
Fields
| Name | Description |
|---|---|
| AllocFailed | "Resource allocation failed inside the CUSPARSE library. This is usually caused by a cudaMalloc() failure. To correct: prior to the function call, deallocate previously allocated memory as much as possible. |
| ArchMismatch | "The function requires a feature absent from the device architecture; usually caused by the lack of support for atomic operations or double precision. To correct: compile and run the application on a device with appropriate compute capability, which is 1.1 for 32-bit atomic operations and 1.3 for double precision. |
| ExecutionFailed | "The GPU program failed to execute. This is often caused by a launch failure of the kernel on the GPU, which can be caused by multiple reasons. To correct: check that the hardware, an appropriate version of the driver, and the CUSPARSE library are correctly installed. |
| InternalError | "An internal CUSPARSE operation failed. This error is usually caused by a cudaMemcpyAsync() failure. To correct: check that the hardware, an appropriate version of the driver, and the CUSPARSE library are correctly installed. Also, check that the memory passed as a parameter to the routine is not being deallocated prior to the routine’s completion. |
| InvalidValue | "An unsupported value or parameter was passed to the function (a negative vector size, for example). To correct: ensure that all the parameters being passed have valid values. |
| MappingError | "An access to GPU memory space failed, which is usually caused by a failure to bind a texture. To correct: prior to the function call, unbind any previously bound textures. |
| MatrixTypeNotSupported | "The matrix type is not supported by this function. This is usually caused by passing an invalid matrix descriptor to the function. To correct: check that the fields in cusparseMatDescr_t descrA were set correctly. |
| NotInitialized | "The CUSPARSE library was not initialized. This is usually caused by the lack of a prior cusparseCreate() call, an error in the CUDA Runtime API called by the CUSPARSE routine, or an error in the hardware setup. To correct: call cusparseCreate() prior to the function call; and check that the hardware, an appropriate version of the driver, and the CUSPARSE library are correctly installed. |
| Success | The operation completed successfully. |
| ZeroPivot |