Skip to content

Commit 27c1473

Browse files
amontoisonmaleadt
andauthored
CUBLAS: Use the ILP64 API with CUDA 12 (#2270)
Co-authored-by: Tim Besard <tim.besard@gmail.com>
1 parent 6a58662 commit 27c1473

File tree

4 files changed

+417
-325
lines changed

4 files changed

+417
-325
lines changed

lib/cublas/libcublas.jl

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1746,56 +1746,56 @@ end
17461746
initialize_context()
17471747
@gcsafe_ccall libcublas.cublasIsamax_v2_64(handle::cublasHandle_t, n::Int64,
17481748
x::CuPtr{Cfloat}, incx::Int64,
1749-
result::RefOrCuRef{Cint})::cublasStatus_t
1749+
result::RefOrCuRef{Int64})::cublasStatus_t
17501750
end
17511751

17521752
@checked function cublasIdamax_v2_64(handle, n, x, incx, result)
17531753
initialize_context()
17541754
@gcsafe_ccall libcublas.cublasIdamax_v2_64(handle::cublasHandle_t, n::Int64,
17551755
x::CuPtr{Cdouble}, incx::Int64,
1756-
result::RefOrCuRef{Cint})::cublasStatus_t
1756+
result::RefOrCuRef{Int64})::cublasStatus_t
17571757
end
17581758

17591759
@checked function cublasIcamax_v2_64(handle, n, x, incx, result)
17601760
initialize_context()
17611761
@gcsafe_ccall libcublas.cublasIcamax_v2_64(handle::cublasHandle_t, n::Int64,
17621762
x::CuPtr{cuComplex}, incx::Int64,
1763-
result::RefOrCuRef{Cint})::cublasStatus_t
1763+
result::RefOrCuRef{Int64})::cublasStatus_t
17641764
end
17651765

17661766
@checked function cublasIzamax_v2_64(handle, n, x, incx, result)
17671767
initialize_context()
17681768
@gcsafe_ccall libcublas.cublasIzamax_v2_64(handle::cublasHandle_t, n::Int64,
17691769
x::CuPtr{cuDoubleComplex}, incx::Int64,
1770-
result::RefOrCuRef{Cint})::cublasStatus_t
1770+
result::RefOrCuRef{Int64})::cublasStatus_t
17711771
end
17721772

17731773
@checked function cublasIsamin_v2_64(handle, n, x, incx, result)
17741774
initialize_context()
17751775
@gcsafe_ccall libcublas.cublasIsamin_v2_64(handle::cublasHandle_t, n::Int64,
17761776
x::CuPtr{Cfloat}, incx::Int64,
1777-
result::RefOrCuRef{Cint})::cublasStatus_t
1777+
result::RefOrCuRef{Int64})::cublasStatus_t
17781778
end
17791779

17801780
@checked function cublasIdamin_v2_64(handle, n, x, incx, result)
17811781
initialize_context()
17821782
@gcsafe_ccall libcublas.cublasIdamin_v2_64(handle::cublasHandle_t, n::Int64,
17831783
x::CuPtr{Cdouble}, incx::Int64,
1784-
result::RefOrCuRef{Cint})::cublasStatus_t
1784+
result::RefOrCuRef{Int64})::cublasStatus_t
17851785
end
17861786

17871787
@checked function cublasIcamin_v2_64(handle, n, x, incx, result)
17881788
initialize_context()
17891789
@gcsafe_ccall libcublas.cublasIcamin_v2_64(handle::cublasHandle_t, n::Int64,
17901790
x::CuPtr{cuComplex}, incx::Int64,
1791-
result::RefOrCuRef{Cint})::cublasStatus_t
1791+
result::RefOrCuRef{Int64})::cublasStatus_t
17921792
end
17931793

17941794
@checked function cublasIzamin_v2_64(handle, n, x, incx, result)
17951795
initialize_context()
17961796
@gcsafe_ccall libcublas.cublasIzamin_v2_64(handle::cublasHandle_t, n::Int64,
17971797
x::CuPtr{cuDoubleComplex}, incx::Int64,
1798-
result::RefOrCuRef{Cint})::cublasStatus_t
1798+
result::RefOrCuRef{Int64})::cublasStatus_t
17991799
end
18001800

18011801
@checked function cublasSasum_v2_64(handle, n, x, incx, result)
@@ -3466,7 +3466,7 @@ end
34663466
@gcsafe_ccall libcublas.cublasIamaxEx_64(handle::cublasHandle_t, n::Int64,
34673467
x::CuPtr{Cvoid}, xType::cudaDataType,
34683468
incx::Int64,
3469-
result::RefOrCuRef{Cint})::cublasStatus_t
3469+
result::RefOrCuRef{Int64})::cublasStatus_t
34703470
end
34713471

34723472
@checked function cublasIaminEx(handle, n, x, xType, incx, result)
@@ -3481,7 +3481,7 @@ end
34813481
@gcsafe_ccall libcublas.cublasIaminEx_64(handle::cublasHandle_t, n::Int64,
34823482
x::CuPtr{Cvoid}, xType::cudaDataType,
34833483
incx::Int64,
3484-
result::RefOrCuRef{Cint})::cublasStatus_t
3484+
result::RefOrCuRef{Int64})::cublasStatus_t
34853485
end
34863486

34873487
@checked function cublasAsumEx(handle, n, x, xType, incx, result, resultType, executiontype)

0 commit comments

Comments
 (0)