Skip to content

Commit

Permalink
Merge branch 'main' of github.com:maximilianbehr/cuexpm
Browse files Browse the repository at this point in the history
  • Loading branch information
maximilianbehr committed Feb 20, 2024
2 parents ef2bddc + 2ba6bd7 commit fddc30e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cuexpm.cu
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
if (error_code != cudaSuccess) { \
fprintf(stderr, "CUDA Error %d: %s. In file '%s' on line %d\n", error_code, cudaGetErrorString(error_code), __FILE__, __LINE__); \
fflush(stderr); \
return -1; \
return -2; \
} \
} while (false)

Expand All @@ -58,7 +58,7 @@
if (error_code != CUBLAS_STATUS_SUCCESS) { \
fprintf(stderr, "CUBLAS Error %d - %s. In file '%s' on line %d\n", error_code, cublasGetStatusString(error_code), __FILE__, __LINE__); \
fflush(stderr); \
return -2; \
return -3; \
} \
} while (false)

Expand Down Expand Up @@ -92,7 +92,7 @@ static inline const char *cuexpm_cusolverGetErrorEnum(cusolverStatus_t error) {
if (error_code != CUSOLVER_STATUS_SUCCESS) { \
fprintf(stderr, "CUSOLVER Error %d - %s. In file '%s' on line %d\n", error_code, cuexpm_cusolverGetErrorEnum(error_code), __FILE__, __LINE__); \
fflush(stderr); \
return -3; \
return -4; \
} \
} while (false)

Expand Down Expand Up @@ -604,7 +604,7 @@ static int cuexpm(const T *d_A, const int n, void *d_buffer, void *h_buffer, T *
} else {
fprintf(stderr, "m must be 3, 5, 7, 9, or 13\n");
fflush(stderr);
return -4;
return -1;
}
CHECK_CUDA(cudaStreamSynchronize(streamU));
CHECK_CUDA(cudaStreamSynchronize(streamV));
Expand Down

0 comments on commit fddc30e

Please sign in to comment.