Skip to content

Commit

Permalink
[Fix_ci] set PLUGIN_TAG release/2.6 (PaddlePaddle#62731)
Browse files Browse the repository at this point in the history
* set PLUGIN_TAG release/2.6

* clone PaddleCustomDevice release/2.6
  • Loading branch information
Tongkaio authored Mar 19, 2024
1 parent 6a73547 commit 97ffa07
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion test/custom_runtime/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
if(WITH_CUSTOM_DEVICE AND NOT WITH_GPU)
set(PLUGIN_URL https://github.com/PaddlePaddle/PaddleCustomDevice.git)
set(PLUGIN_TAG develop)
set(PLUGIN_TAG release/2.6)

file(
GLOB TEST_OPS
Expand Down
3 changes: 2 additions & 1 deletion test/custom_runtime/test_collective_process_group_xccl.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def setUp(self):
cur_dir = os.path.dirname(os.path.abspath(__file__))
self.temp_dir = tempfile.TemporaryDirectory()
cmd = 'cd {} \
&& git clone --depth 1 {} \
&& git clone --depth 1 {} -b {} \
&& cd PaddleCustomDevice \
&& git fetch origin \
&& git checkout {} -b dev \
Expand All @@ -159,6 +159,7 @@ def setUp(self):
self.temp_dir.name,
os.getenv('PLUGIN_URL'),
os.getenv('PLUGIN_TAG'),
os.getenv('PLUGIN_TAG'),
sys.executable,
)
os.system(cmd)
Expand Down
3 changes: 2 additions & 1 deletion test/custom_runtime/test_custom_cpu_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def setUp(self):
cur_dir = os.path.dirname(os.path.abspath(__file__))
self.temp_dir = tempfile.TemporaryDirectory()
cmd = 'cd {} \
&& git clone --depth 1 {} \
&& git clone --depth 1 {} -b {} \
&& cd PaddleCustomDevice \
&& git fetch origin \
&& git checkout {} -b dev \
Expand All @@ -35,6 +35,7 @@ def setUp(self):
self.temp_dir.name,
os.getenv('PLUGIN_URL'),
os.getenv('PLUGIN_TAG'),
os.getenv('PLUGIN_TAG'),
sys.executable,
)
os.system(cmd)
Expand Down
3 changes: 2 additions & 1 deletion test/custom_runtime/test_custom_cpu_profiler_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def setUp(self):
cur_dir = os.path.dirname(os.path.abspath(__file__))
self.temp_dir = tempfile.TemporaryDirectory()
cmd = 'cd {} \
&& git clone --depth 1 {} \
&& git clone --depth 1 {} -b {} \
&& cd PaddleCustomDevice \
&& git fetch origin \
&& git checkout {} -b dev \
Expand All @@ -33,6 +33,7 @@ def setUp(self):
self.temp_dir.name,
os.getenv('PLUGIN_URL'),
os.getenv('PLUGIN_TAG'),
os.getenv('PLUGIN_TAG'),
sys.executable,
)
os.system(cmd)
Expand Down
3 changes: 2 additions & 1 deletion test/custom_runtime/test_custom_cpu_to_static.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def setUp(self):
cur_dir = os.path.dirname(os.path.abspath(__file__))
self.temp_dir = tempfile.TemporaryDirectory()
cmd = 'cd {} \
&& git clone --depth 1 {} \
&& git clone --depth 1 {} -b {} \
&& cd PaddleCustomDevice \
&& git fetch origin \
&& git checkout {} -b dev \
Expand All @@ -115,6 +115,7 @@ def setUp(self):
self.temp_dir.name,
os.getenv('PLUGIN_URL'),
os.getenv('PLUGIN_TAG'),
os.getenv('PLUGIN_TAG'),
sys.executable,
)
os.system(cmd)
Expand Down
3 changes: 2 additions & 1 deletion test/custom_runtime/test_custom_op_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def setUp(self):
self.cur_dir = os.path.dirname(os.path.abspath(__file__))
self.temp_dir = tempfile.TemporaryDirectory()
cmd = 'cd {} \
&& git clone --depth 1 {} \
&& git clone --depth 1 {} -b {} \
&& cd PaddleCustomDevice \
&& git fetch origin \
&& git checkout {} -b dev \
Expand All @@ -114,6 +114,7 @@ def setUp(self):
self.temp_dir.name,
os.getenv('PLUGIN_URL'),
os.getenv('PLUGIN_TAG'),
os.getenv('PLUGIN_TAG'),
sys.executable,
self.cur_dir,
)
Expand Down
2 changes: 1 addition & 1 deletion test/custom_runtime/test_fleet_launch_custom_device.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ set -e

temp_dir=$(mktemp --directory)
pushd ${temp_dir} \
&& git clone --depth 1 ${PLUGIN_URL} \
&& git clone --depth 1 ${PLUGIN_URL} -b ${PLUGIN_TAG} \
&& pushd PaddleCustomDevice/ \
&& git fetch origin \
&& git checkout ${PLUGIN_TAG} -b dev \
Expand Down

0 comments on commit 97ffa07

Please sign in to comment.