Skip to content
This repository was archived by the owner on Nov 28, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@ def __init__(self,
a discovery script that is formatted according to the
Spark configuration docs. Make sure
`spark.driver.resource.{gpu_resource_name}.discoveryScript` and
`spark.driver.resource.{gpu_resource_name}.discoveryScript` are
also set in the Spark conf. In particular, the GPU addresses
should be zero indexed. For example, the output of the
discovery script for 3 GPUs with gpu_resource_name='gpu'
`spark.executor.resource.{gpu_resource_name}.discoveryScript`
are also set in the Spark conf. In particular, the GPU
addresses should be zero indexed. For example, the output of
the discovery script for 3 GPUs with gpu_resource_name='gpu'
would be `{"name": "gpu", "addresses":["0","1","2"]}`.
See an example discovery script: `github.com/apache/spark/blob/
master/examples/src/main/scripts/getGpusResources.sh`.
Expand Down