NVIDIA ships cuDF agent skills to rewrite Spark UDFs for GPUs
NVIDIA's technical blog introduced cuDF skills for Apache Spark, a set of skills that let AI agents rewrite Apache Spark user-defined functions (UDFs) into GPU-accelerable form, covering testing, benchmarking and integration. NVIDIA says UDFs are opaque to accelerated query engines, forcing an otherwise GPU-resident pipeline to fall back to the CPU with round-trip data conversion, and that rewrites using SQL expressions, the RapidsUDF interface or CUDA kernels keep execution on the GPU. NVIDIA also says an unnamed major consumer technology company converted 30+ production UDFs with this workflow, with one UDF's operator time dropping from 274.55 to 12.78 hours on a 600-billion-row workload, about 22x — figures that come from the vendor and were not independently verified.
NVIDIA says the agent skills reduce UDF rewrite iteration from days or weeks to hours without compromising correctness, a vendor claim.
Enterprise applications have become increasingly demanding. Agentic AI has compounded the need for vast amounts of enterprise data with frequent, complex queries across increasingly large datasets.
Meeting that demand requires greater data throughput without a proportional increase in cost. NVIDIA cuDF addresses this challenge by leveraging the massive parallelism and high-bandwidth memory of GPUs for data analytics. Particularly, the NVIDIA cuDF plugin for Apache Spark brings this acceleration to Apache Spark, the industry-leading platform for big data processing and analytics, to achieve better TCO performance in major workloads.
User-defined functions (UDFs) have long been problematic for accelerated query engines, introducing runtime overheads due to their opaque nature. While UDFs can often be replaced with more performant code, rewriting UDFs has long been a laborious process requiring careful validation.
This post describes how to use agents to rewrite UDFs into GPU-accelerated equivalents within minutes, achieving 22x+ speedups in Apache Spark jobs. We’ll introduce the cuDF skills for Apache Spark, a set of skills to quickly break through the UDF bottleneck for end-to-end development, from testing, to benchmarking, through integration.