Skip to content
Closed
Show file tree
Hide file tree
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 @@ -64,7 +64,7 @@ def setUpClass(cls):
builder = builder.config(
"spark.driver.resource.gpu.discoveryScript", cls.gpu_discovery_script_file_name
)
cls.spark = builder.remote("local-cluster[2,2,1024]").getOrCreate()
cls.spark = builder.remote("local-cluster[2,2,512]").getOrCreate()

@classmethod
def tearDownClass(cls):
Expand Down Expand Up @@ -126,7 +126,7 @@ def setUpClass(cls):
builder = builder.config(
"spark.worker.resource.gpu.discoveryScript", cls.gpu_discovery_script_file_name
)
cls.spark = builder.remote("local-cluster[2,2,1024]").getOrCreate()
cls.spark = builder.remote("local-cluster[2,2,512]").getOrCreate()

@classmethod
def tearDownClass(cls):
Expand Down
8 changes: 6 additions & 2 deletions python/pyspark/ml/torch/tests/test_distributor.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ def get_local_mode_conf():
return {
"spark.test.home": SPARK_HOME,
"spark.driver.resource.gpu.amount": "3",
"spark.driver.memory": "512M",
"spark.executor.memory": "512M",
}


Expand All @@ -158,6 +160,8 @@ def get_distributed_mode_conf():
"spark.task.cpus": "2",
"spark.task.resource.gpu.amount": "1",
"spark.executor.resource.gpu.amount": "1",
"spark.driver.memory": "512M",
"spark.executor.memory": "512M",
}


Expand Down Expand Up @@ -412,7 +416,7 @@ def setUpClass(cls):
"spark.driver.resource.gpu.discoveryScript", cls.gpu_discovery_script_file_name
)

sc = SparkContext("local-cluster[2,2,1024]", cls.__name__, conf=conf)
sc = SparkContext("local-cluster[2,2,512]", cls.__name__, conf=conf)
cls.spark = SparkSession(sc)

@classmethod
Expand Down Expand Up @@ -502,7 +506,7 @@ def setUpClass(cls):
"spark.worker.resource.gpu.discoveryScript", cls.gpu_discovery_script_file_name
)

sc = SparkContext("local-cluster[2,2,1024]", cls.__name__, conf=conf)
sc = SparkContext("local-cluster[2,2,512]", cls.__name__, conf=conf)
cls.spark = SparkSession(sc)

@classmethod
Expand Down