-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into spark-rapids-tools-1420
# Conflicts: # core/src/main/scala/org/apache/spark/sql/rapids/tool/AppBase.scala
- Loading branch information
Showing
139 changed files
with
3,435 additions
and
1,630 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# Copyright (c) 2024, NVIDIA CORPORATION. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
# A workflow to check copyright/license header | ||
name: license header check | ||
|
||
on: | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
|
||
jobs: | ||
license-header-check: | ||
runs-on: ubuntu-latest | ||
if: "!contains(github.event.pull_request.title, '[bot]')" | ||
steps: | ||
- name: Get checkout depth | ||
run: | | ||
echo "PR_FETCH_DEPTH=$(( ${{ github.event.pull_request.commits }} + 10 ))" >> $GITHUB_ENV | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: ${{ env.PR_FETCH_DEPTH }} | ||
|
||
- name: license-header-check | ||
uses: NVIDIA/spark-rapids-common/license-header-check@main | ||
with: | ||
included_file_patterns: | | ||
*.py, | ||
*.toml, | ||
*.ini, | ||
*.yml, | ||
*.yaml, | ||
*.sh, | ||
*.properties, | ||
*.xml, | ||
*.feature, | ||
*.scala | ||
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
36 changes: 36 additions & 0 deletions
36
core/src/main/scala/com/nvidia/spark/rapids/tool/analysis/AnalysisUtils.scala
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,36 @@ | ||
/* | ||
* Copyright (c) 2024, NVIDIA CORPORATION. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package com.nvidia.spark.rapids.tool.analysis | ||
|
||
object StageAccumDiagnosticMetrics { | ||
val MEMORY_SPILLED_METRIC = "internal.metrics.memoryBytesSpilled" | ||
val DISK_SPILLED_METRIC = "internal.metrics.diskBytesSpilled" | ||
val INPUT_BYTES_READ_METRIC = "internal.metrics.input.bytesRead" | ||
val OUTPUT_BYTES_WRITTEN_METRIC = "internal.metrics.output.bytesWritten" | ||
val SW_TOTAL_BYTES_METRIC = "internal.metrics.shuffle.write.bytesWritten" | ||
val SR_FETCH_WAIT_TIME_METRIC = "internal.metrics.shuffle.read.fetchWaitTime" | ||
val SW_WRITE_TIME_METRIC = "internal.metrics.shuffle.write.writeTime" | ||
val GPU_SEMAPHORE_WAIT_METRIC = "gpuSemaphoreWait" | ||
|
||
/** | ||
* Get all diagnostic metrics | ||
*/ | ||
def getAllDiagnosticMetrics: Set[String] = Set(MEMORY_SPILLED_METRIC, | ||
DISK_SPILLED_METRIC, INPUT_BYTES_READ_METRIC, OUTPUT_BYTES_WRITTEN_METRIC, | ||
SW_TOTAL_BYTES_METRIC, SR_FETCH_WAIT_TIME_METRIC, SW_WRITE_TIME_METRIC, | ||
GPU_SEMAPHORE_WAIT_METRIC) | ||
} |
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
Oops, something went wrong.