-
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.
Split AutoTuner for Profiling and Qualification and override batch size
Signed-off-by: Partho Sarthi <[email protected]>
- Loading branch information
Showing
11 changed files
with
574 additions
and
314 deletions.
There are no files selected for viewing
228 changes: 136 additions & 92 deletions
228
core/src/main/scala/com/nvidia/spark/rapids/tool/profiling/AutoTuner.scala
Large diffs are not rendered by default.
Oops, something went wrong.
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
51 changes: 51 additions & 0 deletions
51
core/src/main/scala/com/nvidia/spark/rapids/tool/qualification/QualificationAutoTuner.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,51 @@ | ||
/* | ||
* 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.qualification | ||
|
||
import com.nvidia.spark.rapids.tool.{AppSummaryInfoBaseProvider, Platform} | ||
import com.nvidia.spark.rapids.tool.profiling.{AutoTuner, AutoTunerConfigsProvider, ClusterProperties, DriverLogInfoProvider} | ||
|
||
|
||
/** | ||
* Implementation of the `AutoTuner` designed the Qualification Tool. This class can be used to | ||
* implement the logic to recommend AutoTuner configurations by the Qualification Tool. | ||
*/ | ||
class QualificationAutoTuner( | ||
clusterProps: ClusterProperties, | ||
appInfoProvider: AppSummaryInfoBaseProvider, | ||
platform: Platform, | ||
driverInfoProvider: DriverLogInfoProvider) | ||
extends AutoTuner(clusterProps, appInfoProvider, platform, driverInfoProvider, | ||
QualificationAutoTunerConfigsProvider) | ||
|
||
/** | ||
* Provides configuration settings for the Qualification Tool's AutoTuner | ||
*/ | ||
object QualificationAutoTunerConfigsProvider extends AutoTunerConfigsProvider { | ||
|
||
// For qualification tool's auto-tuner, the batch size to be recommended is 1GB | ||
// See https://github.com/NVIDIA/spark-rapids-tools/issues/1399 | ||
override val BATCH_SIZE_BYTES = 1073741824 | ||
|
||
override def createAutoTunerInstance( | ||
clusterProps: ClusterProperties, | ||
appInfoProvider: AppSummaryInfoBaseProvider, | ||
platform: Platform, | ||
driverInfoProvider: DriverLogInfoProvider): AutoTuner = { | ||
new QualificationAutoTuner(clusterProps, appInfoProvider, platform, driverInfoProvider) | ||
} | ||
} |
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.