-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
changes to support db 13.3+ #716
Merged
eordentlich
merged 3 commits into
NVIDIA:branch-24.08
from
eordentlich:eo_db_13.3_patch
Aug 25, 2024
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
# needed for bm script arguments | ||
cat <<EOF | ||
{ | ||
"num_workers": $num_gpus, | ||
"cluster_name": "$cluster_name", | ||
"spark_version": "${db_version}.x-gpu-ml-scala2.12", | ||
"spark_conf": { | ||
"spark.task.resource.gpu.amount": "0.25", | ||
"spark.task.cpus": "1", | ||
"spark.databricks.delta.preview.enabled": "true", | ||
"spark.python.worker.reuse": "true", | ||
"spark.executorEnv.PYTHONPATH": "/databricks/jars/rapids-4-spark_2.12-24.06.1.jar:/databricks/spark/python", | ||
"spark.sql.files.minPartitionNum": "2", | ||
"spark.sql.execution.arrow.maxRecordsPerBatch": "10000", | ||
"spark.executor.cores": "8", | ||
"spark.executor.memory": "5g", | ||
"spark.rapids.memory.gpu.minAllocFraction": "0.0001", | ||
"spark.plugins": "com.nvidia.spark.SQLPlugin", | ||
"spark.locality.wait": "0s", | ||
"spark.sql.cache.serializer": "com.nvidia.spark.ParquetCachedBatchSerializer", | ||
"spark.rapids.memory.gpu.pooling.enabled": "false", | ||
"spark.rapids.sql.explain": "ALL", | ||
"spark.sql.execution.sortBeforeRepartition": "false", | ||
"spark.rapids.sql.python.gpu.enabled": "true", | ||
"spark.rapids.memory.pinnedPool.size": "2G", | ||
"spark.python.daemon.module": "rapids.daemon_databricks", | ||
"spark.rapids.sql.batchSizeBytes": "512m", | ||
"spark.sql.adaptive.enabled": "false", | ||
"spark.sql.execution.arrow.pyspark.enabled": "true", | ||
"spark.sql.files.maxPartitionBytes": "2000000000000", | ||
"spark.databricks.delta.optimizeWrite.enabled": "false", | ||
"spark.rapids.sql.concurrentGpuTasks": "2" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. While we keep this here, do we need to remove it from gpu_cluster_spec.sh (the one without GPU ETL)? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes. Will delete there. Good catch. |
||
}, | ||
"aws_attributes": { | ||
"first_on_demand": 1, | ||
"availability": "SPOT_WITH_FALLBACK", | ||
"zone_id": "us-west-2a", | ||
"spot_bid_price_percent": 100, | ||
"ebs_volume_count": 0 | ||
}, | ||
"node_type_id": "g5.2xlarge", | ||
"driver_node_type_id": "g4dn.xlarge", | ||
"custom_tags": {}, | ||
"cluster_log_conf": { | ||
"dbfs": { | ||
"destination": "dbfs:${BENCHMARK_HOME}/cluster_logs/${cluster_name}" | ||
} | ||
}, | ||
"spark_env_vars": { | ||
"LIBCUDF_CUFILE_POLICY": "OFF", | ||
"NCCL_DEBUG": "INFO" | ||
}, | ||
"autotermination_minutes": 30, | ||
"enable_elastic_disk": false, | ||
"init_scripts": [ | ||
{ | ||
"workspace": { | ||
"destination": "${INIT_SCRIPT_DIR}/init-pip-cuda-11.8.sh" | ||
} | ||
} | ||
], | ||
"enable_local_disk_encryption": false, | ||
"runtime_engine": "STANDARD" | ||
} | ||
EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting. Any intuition as to why slice can get the hanging resolved?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. It is an unsupported expression in spark-rapids so falls back to cpu and injects columnartorow and rowtocolumnar transformations which do some batching that doesn't (but should after patching) happen otherwise.