-
Notifications
You must be signed in to change notification settings - Fork 232
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Support UCX when AQE is enabled Signed-off-by: Andy Grove <andygrove@nvidia.com> * Bug fix: Shuffle exchange needs to look at tagged plan Signed-off-by: Andy Grove <andygrove@nvidia.com> * re-implement makeShuffleConsistent to support AQE Signed-off-by: Andy Grove <andygrove@nvidia.com> * update comments Signed-off-by: Andy Grove <andygrove@nvidia.com> * revert tpcds bench changes Signed-off-by: Andy Grove <andygrove@nvidia.com> * make comments more consistent Signed-off-by: Andy Grove <andygrove@nvidia.com> * unit test Signed-off-by: Andy Grove <andygrove@nvidia.com> * code refinement Signed-off-by: Andy Grove <andygrove@nvidia.com> * remove redundant repartitioning from test Signed-off-by: Andy Grove <andygrove@nvidia.com> * fix incorrect logic in test for determining which spark versions are supported Signed-off-by: Andy Grove <andygrove@nvidia.com> * fix scalastyle Signed-off-by: Andy Grove <andygrove@nvidia.com> * Remove changes unrelated to supporting UCX Signed-off-by: Andy Grove <andygrove@nvidia.com>
- Loading branch information
Showing
7 changed files
with
70 additions
and
10 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
52 changes: 52 additions & 0 deletions
52
.../src/main/scala/com/nvidia/spark/rapids/shims/spark301/RapidsShuffleInternalManager.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,52 @@ | ||
/* | ||
* Copyright (c) 2019-2020, 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 org.apache.spark.sql.rapids.shims.spark301 | ||
|
||
import org.apache.spark.{SparkConf, TaskContext} | ||
import org.apache.spark.shuffle._ | ||
import org.apache.spark.sql.rapids.RapidsShuffleInternalManagerBase | ||
|
||
/** | ||
* A shuffle manager optimized for the RAPIDS Plugin For Apache Spark. | ||
* @note This is an internal class to obtain access to the private | ||
* `ShuffleManager` and `SortShuffleManager` classes. | ||
*/ | ||
class RapidsShuffleInternalManager(conf: SparkConf, isDriver: Boolean) | ||
extends RapidsShuffleInternalManagerBase(conf, isDriver) { | ||
|
||
override def getReaderForRange[K, C]( | ||
handle: ShuffleHandle, | ||
startMapIndex: Int, | ||
endMapIndex: Int, | ||
startPartition: Int, | ||
endPartition: Int, | ||
context: TaskContext, | ||
metrics: ShuffleReadMetricsReporter): ShuffleReader[K, C] = { | ||
getReaderInternal(handle, startMapIndex, endMapIndex, startPartition, endPartition, context, | ||
metrics) | ||
} | ||
|
||
def getReader[K, C]( | ||
handle: ShuffleHandle, | ||
startPartition: Int, | ||
endPartition: Int, | ||
context: TaskContext, | ||
metrics: ShuffleReadMetricsReporter): ShuffleReader[K, C] = { | ||
getReaderInternal(handle, 0, Int.MaxValue, startPartition, endPartition, context, metrics) | ||
} | ||
|
||
} |
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