Skip to content

Commit

Permalink
Don't try to cast info param in cublas*getrsBatched wrappers because …
Browse files Browse the repository at this point in the history
…it needs to be a host ptr.
  • Loading branch information
lebedov committed Oct 8, 2018
1 parent 87f34fb commit ab0d3e2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions skcuda/cublas.py
Original file line number Diff line number Diff line change
Expand Up @@ -5865,7 +5865,7 @@ def cublasSgetrsBatched(handle, trans, n, nrhs, Aarray, lda, devIpiv, Barray,

status = _libcublas.cublasSgetrsBatched(handle, _CUBLAS_OP[trans], n, nrhs,
int(Aarray), lda, int(devIpiv),
int(Barray), ldb, int(info), batchSize)
int(Barray), ldb, info, batchSize)
cublasCheckStatus(status)

if _cublas_version >= 5000:
Expand Down Expand Up @@ -5894,7 +5894,7 @@ def cublasDgetrsBatched(handle, trans, n, nrhs, Aarray, lda, devIpiv, Barray,

status = _libcublas.cublasDgetrsBatched(handle, _CUBLAS_OP[trans], n, nrhs,
int(Aarray), lda, int(devIpiv),
int(Barray), ldb, int(info), batchSize)
int(Barray), ldb, info, batchSize)
cublasCheckStatus(status)

if _cublas_version >= 5000:
Expand Down Expand Up @@ -5923,7 +5923,7 @@ def cublasCgetrsBatched(handle, trans, n, nrhs, Aarray, lda, devIpiv, Barray,

status = _libcublas.cublasCgetrsBatched(handle, _CUBLAS_OP[trans], n, nrhs,
int(Aarray), lda, int(devIpiv),
int(Barray), ldb, int(info), batchSize)
int(Barray), ldb, info, batchSize)
cublasCheckStatus(status)

if _cublas_version >= 5000:
Expand Down Expand Up @@ -5952,9 +5952,9 @@ def cublasZgetrsBatched(handle, trans, n, nrhs, Aarray, lda, devIpiv, Barray,

status = _libcublas.cublasZgetrsBatched(handle, _CUBLAS_OP[trans], n, nrhs,
int(Aarray), lda, int(devIpiv),
int(Barray), ldb, int(info), batchSize)
int(Barray), ldb, info, batchSize)
cublasCheckStatus(status)

# SgetriBatched, DgetriBatched, CgetriBatched, ZgetriBatched
if _cublas_version >= 5050:
_libcublas.cublasSgetriBatched.restype = int
Expand Down

0 comments on commit ab0d3e2

Please sign in to comment.