Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jerrrrry
ci-demo
Commits
8f0e5355
Commit
8f0e5355
authored
Jan 19, 2026
by
jerrrrry
Browse files
Update .gitlab-ci.yml
parent
a575892f
Pipeline
#3227
passed with stage
in 8 minutes and 38 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
.gitlab-ci.yml
.gitlab-ci.yml
+11
-4
No files found.
.gitlab-ci.yml
View file @
8f0e5355
# 定义流水线要使用的 Docker 镜像
# 定义流水线要使用的 Docker 镜像
# GitLab Runner 会使用这个镜像来创建一个临时的任务容器
image
:
image.sourcefind.cn:5000/dcu/admin/base/custom:vllm0.8.5-ubuntu22.04-dtk25.04-rc7-das1.5-py3.10-20250612-fixpy-rocblas0611-rc2
image
:
image.sourcefind.cn:5000/dcu/admin/base/custom:vllm0.8.5-ubuntu22.04-dtk25.04-rc7-das1.5-py3.10-20250612-fixpy-rocblas0611-rc2
# 定义流水线的所有阶段
# 定义流水线的所有阶段
...
@@ -16,9 +15,17 @@ resnet_benchmark_job:
...
@@ -16,9 +15,17 @@ resnet_benchmark_job:
# 定义该作业要执行的脚本命令
# 定义该作业要执行的脚本命令
script
:
script
:
-
echo "Running inside the powerful DCU container..."
-
echo "Running inside the powerful DCU container..."
# 检查 PyTorch 环境和设备
-
echo "Checking PyTorch environment..."
-
python -c "import torch; print(f'PyTorch version
:
{
torch.__version__
}
'
);
print(f'
Device
:
{
torch.cuda.get_device_name(0) if torch.cuda.is_available() else \"CPU\"
}
'
)"
-
|
#
运行我们的压测脚本
python -c "
import torch
print(f'PyTorch version: {torch.__version__}')
if torch.cuda.is_available():
print(f'Device: {torch.cuda.get_device_name(0)}')
else:
print('Device: CPU')
"
-
echo "Environment check complete."
-
python benchmark_resnet50.py
-
python benchmark_resnet50.py
# 定义作业产物
# 定义作业产物
artifacts
:
artifacts
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment