Lesson 9 of 10Buy with evidence3 min read

Check GPU fit before paying for Spark GPU hours

GPU acceleration costs GPU instance hours, so it only lowers the bill for jobs that speed up enough. NVIDIA's qualification tool reads your existing Spark event logs on EMR and lists recommended applications with an estimated speedup and savings percentage. Run it before you change a single node.

By The Meter DeskSpark Cost ComparePublished

Why check fit first?

NVIDIA cuDF for Apache Spark, formerly the RAPIDS Accelerator, has no plugin fee. Its cost is the GPU instances it needs: on EMR, core and task nodes must be GPU instance types. Those cost more per hour than comparable CPU instances, so a job must finish enough faster to come out ahead. Some work also falls back to the CPU, because the plugin replaces only the parts of the physical plan it supports.

What does the qualification tool do?

NVIDIA's EMR guide documents a command:

spark_rapids_user_tools emr qualification --eventlogs <s3-log-path> --cpu_cluster <cluster-name>

It reads Spark event logs from jobs you have already run on CPU clusters, and outputs recommended applications with an estimated GPU speedup and savings percentage. The input is your own history, not a benchmark, which makes it a better starting point than any headline figure.

What do you need before running it?

  1. Spark event logs for the jobs you care about, stored in S3. Event logs are the same records the Spark history server reads; if they are not enabled, enable them and let a representative week of jobs run.
  2. The name of the CPU cluster the jobs ran on, so the tool can compare against its instance types.
  3. A short list of the jobs that drive your bill, so you can read the output against cost rather than against job count.

How should you read the output?

Treat the savings percentage as an estimate to test, not a forecast. Group the recommended applications by how much they cost today. A strong estimate on a job that costs little is worth less than a moderate estimate on your most expensive job. Jobs the tool does not recommend are candidates for a CPU engine, Spot or capacity work instead.

What does a pilot look like on EMR?

AWS documents the setup for EMR 6.2.0 and later: the enableSparkRapids classification, YARN GPU settings, spark.plugins=com.nvidia.spark.SQLPlugin and the DominantResourceCalculator. AWS states it works without code changes. Note the version: EMR 7.13 and 7.12 ship rapids-4-spark 25.08.0, while the upstream release is 26.08.0, so features in the latest NVIDIA notes may not be in the EMR bundle.

Run the recommended job on a GPU cluster with the same data, record runtime and node count, and compare cost per run with the CPU baseline. If the result is close, remember that GPU instance types also narrow your Spot and Graviton options, as covered in lesson 6.

Is there an equivalent for other engines?

Not on the pages reviewed for this site. For other engines, the equivalent step is a vendor- or self-run pilot on your own job, as described in lesson 8.

Sources