Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
brandon-b-miller committed Jan 27, 2022
1 parent 643d55e commit 0af638f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions python/cudf/cudf/core/indexed_frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -769,7 +769,7 @@ def _apply(self, func, kernel_getter, *args, **kwargs):
)
except Exception as e:
raise ValueError(
"user defined function compilation or execution failed."
"user defined function compilation failed."
) from e

# Mask and data column preallocated
Expand All @@ -790,7 +790,11 @@ def _apply(self, func, kernel_getter, *args, **kwargs):
offsets.append(col.offset)
launch_args += offsets
launch_args += list(args)
kernel.forall(len(self))(*launch_args)

try:
kernel.forall(len(self))(*launch_args)
except Exception as e:
raise RuntimeError("UDF kernel execution failed.") from e

col = as_column(ans_col)
col.set_base_mask(libcudf.transform.bools_to_mask(ans_mask))
Expand Down

0 comments on commit 0af638f

Please sign in to comment.