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
OpenDAS
fairscale
Commits
676ab281
Commit
676ab281
authored
Sep 10, 2025
by
limm
Committed by
limm
Sep 10, 2025
Browse files
add jenkins.sh
(cherry picked from commit
3f459ced
)
parent
43863ad7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
0 deletions
+35
-0
jenkins.sh
jenkins.sh
+35
-0
No files found.
jenkins.sh
0 → 100755
View file @
676ab281
#!/bin/bash
pip
install
-r
requirements.txt
pip
install
pygit2
pip
install
pgzip
set
-e
source
/opt/dtk/env.sh
source
/usr/local/bin/fastpt
-C
export
BUILD_CUDA_EXTENSIONS
=
1
export
HIPCC_COMPILE_FLAGS_APPEND
=
"--gpu-max-threads-per-block=1024"
echo
"开始编译组件fairscale"
python3 setup.py
-v
bdist_wheel
echo
"组件fairscale编译完成"
ls
dist/
pip
install
dist/fairscale
*
.whl
--force-reinstall
--no-deps
echo
"组件fairscale安装完成"
echo
"开始fairscale单元测试"
if
command
-v
pytest &> /dev/null
;
then
echo
"pytest 已安装,版本:
$(
pytest
--version
)
"
# 跳过安装
else
echo
"pytest 未安装,正在安装..."
# 使用 pip 安装 (最常见)
pip
install
pytest
fi
pytest
-vs
./tests
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