Skip to content

Commit c8e834e

Browse files
author
Diptorup Deb
committed
Changes to core.runtime.context.py
- Improve few docstrins. - Change the type signature of DPEXRT_MemInfo_fill to use an llvmlite.ir.InteValue(64) instead of cguitls.intp_t
1 parent 518406a commit c8e834e

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

numba_dpex/core/runtime/context.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,8 @@ def wrap(self, builder, *args, **kwargs):
3030
@_check_null_result
3131
def meminfo_alloc(self, builder, size, usm_type, device):
3232
"""
33-
A wrapped caller for :func:`~context.DpexRTContext.meminfo_alloc_unchecked`
34-
with null check. Please refer to that function for the details on how the
35-
null check is done.
33+
Wrapper to call :func:`~context.DpexRTContext.meminfo_alloc_unchecked`
34+
with null checking of the returned value.
3635
"""
3736
return self.meminfo_alloc_unchecked(builder, size, usm_type, device)
3837

@@ -48,9 +47,8 @@ def meminfo_fill(
4847
device,
4948
):
5049
"""
51-
A wrapped caller for :func:`~context.DpexRTContext.meminfo_fill_unchecked`
52-
with null check. Please refer to that function for the details on how the
53-
null check is done.
50+
Wrapper to call :func:`~context.DpexRTContext.meminfo_fill_unchecked`
51+
with null checking of the returned value.
5452
"""
5553
return self.meminfo_fill_unchecked(
5654
builder,
@@ -126,7 +124,7 @@ def meminfo_fill_unchecked(
126124
b = llvmir.IntType(1)
127125
fnty = llvmir.FunctionType(
128126
cgutils.voidptr_t,
129-
[cgutils.voidptr_t, u64, b, b, cgutils.intp_t, cgutils.voidptr_t],
127+
[cgutils.voidptr_t, u64, b, b, u64, cgutils.voidptr_t],
130128
)
131129
fn = cgutils.get_or_insert_function(mod, fnty, "DPEXRT_MemInfo_fill")
132130
fn.return_value.add_attribute("noalias")

0 commit comments

Comments
 (0)