Skip to content

Commit 74af149

Browse files
committed
Update wrappers for CUDA 12.2.
1 parent 5083033 commit 74af149

File tree

13 files changed

+1794
-929
lines changed

13 files changed

+1794
-929
lines changed

lib/cublas/libcublas.jl

Lines changed: 69 additions & 56 deletions
Large diffs are not rendered by default.

lib/cudadrv/libcuda.jl

Lines changed: 396 additions & 200 deletions
Large diffs are not rendered by default.

lib/cudadrv/pool.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ mutable struct CuMemoryPool
1313

1414
function CuMemoryPool(dev::CuDevice;
1515
alloc_type::CUmemAllocationType=ALLOCATION_TYPE_PINNED,
16-
handle_type::CUmemAllocationHandleType=HANDLE_TYPE_NONE)
16+
handle_type::CUmemAllocationHandleType=HANDLE_TYPE_NONE,
17+
maxSize::Integer=0)
1718
props = Ref(CUmemPoolProps(
1819
alloc_type,
1920
handle_type,
@@ -22,7 +23,8 @@ mutable struct CuMemoryPool
2223
deviceid(dev)
2324
),
2425
C_NULL,
25-
ntuple(i->Cuchar(0), 64)
26+
maxSize,
27+
ntuple(i->Cuchar(0), 56)
2628
))
2729
handle_ref = Ref{CUmemoryPool}()
2830
cuMemPoolCreate(handle_ref, props)

lib/cudnn/src/libcudnn.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ end
1414

1515
function check(f, errs...)
1616
res = retry_reclaim(in((CUDNN_STATUS_ALLOC_FAILED, errs...))) do
17-
f()
17+
return f()
1818
end
1919

2020
if res != CUDNN_STATUS_SUCCESS

lib/cufft/libcufft.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ end
1414

1515
function check(f, errs...)
1616
res = retry_reclaim(in((CUFFT_ALLOC_FAILED, errs...))) do
17-
f()
17+
return f()
1818
end
1919

2020
if res != CUFFT_SUCCESS

lib/cupti/CUPTI.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ using ..CUDA_Runtime
66

77
using ..CUDA
88
using ..CUDA: retry_reclaim, initialize_context
9-
using ..CUDA: CUuuid, CUcontext, CUstream, CUdevice, CUdevice_attribute,
10-
CUgraph, CUgraphNode, CUgraphNodeType, CUgraphExec, CUaccessPolicyWindow
9+
using ..CUDA: CUuuid, CUcontext, CUstream, CUdevice, CUdevice_attribute, CUstreamAttrID,
10+
CUgraph, CUgraphNode, CUgraphNodeType, CUgraphExec, CUaccessPolicyWindow,
11+
CUstreamAttrValue
1112

1213
using CEnum: @cenum
1314

0 commit comments

Comments
 (0)