From d336effad818b1fd3a7674cf3cc0699868a9b1d7 Mon Sep 17 00:00:00 2001 From: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com> Date: Thu, 19 Dec 2024 08:34:39 -0800 Subject: [PATCH] Replace as_device_scalar with cudf.Scalar.device_value --- python/legate_dataframe/lib/core/scalar.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/legate_dataframe/lib/core/scalar.pyx b/python/legate_dataframe/lib/core/scalar.pyx index 863ff27..27403e3 100644 --- a/python/legate_dataframe/lib/core/scalar.pyx +++ b/python/legate_dataframe/lib/core/scalar.pyx @@ -39,5 +39,5 @@ cdef cpp_ScalarArg cpp_scalar_arg_from_python(scalar: ScalarLike): # NOTE: Converting to a cudf scalar isn't really ideal, as we copy # to the device, just to copy it back again to get a legate one. - cdef DeviceScalar cudf_scalar = as_device_scalar(scalar) + cdef DeviceScalar cudf_scalar = (cudf.Scalar(scalar).device_value) return cpp_ScalarArg(dereference(cudf_scalar.get_raw_ptr()))