代码拉取完成,页面将自动刷新
同步操作将从 Gitee 极速下载/Taichi 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
pipeline {
agent any
environment {
PYPI_PWD = credentials('PYPI_PWD')
PATH = "/usr/local/clang-7.0.1/bin:/usr/local/cuda/bin/:$PATH"
LD_LIBRARY_PATH = "/usr/local/clang-7.0.1/lib:/usr/local/cuda/lib64:$LD_LIBRARY_PATH"
CC = "clang-7"
CXX = "clang++"
}
stages{
stage('Build') {
parallel {
stage('cuda10.0-python3.6') {
agent {
node {
label "cuda10_0 && python3_6"
customWorkspace "taichi_cu100_py36"
}
}
environment {
PYTHON_EXECUTABLE = "python3.6"
CUDA_VERSION = "10.0"
}
steps{
build_taichi()
}
}
stage('cuda10.0-python3.7') {
agent {
node {
label "cuda10_0 && python3_7"
customWorkspace "taichi_cu100_py37"
}
}
environment {
PYTHON_EXECUTABLE = "python3.7"
CUDA_VERSION = "10.0"
}
steps{
build_taichi()
}
}
stage('cuda10.0-python3.8') {
agent {
node {
label "cuda10_0 && python3_8"
customWorkspace "taichi_cu100_py38"
}
}
environment {
PYTHON_EXECUTABLE = "python3.8"
CUDA_VERSION = "10.0"
}
steps{
build_taichi()
}
}
}
}
stage('Test') {
steps {
sh "echo Testing"
}
}
stage('Release') {
steps {
sh "echo releasing"
}
}
}
}
void build_taichi() {
sh "echo building"
sh "echo $PATH"
git 'https://github.com/taichi-dev/taichi.git'
sh label: '', script: '''
echo $PATH
echo $CC
echo $CXX
$CC --version
$CXX --version
echo $WORKSPACE
$PYTHON_EXECUTABLE -m pip install twine numpy Pillow scipy pybind11 colorama setuptools astor matplotlib pytest autograd GitPython dill --user
export TAICHI_REPO_DIR=$WORKSPACE/
echo $TAICHI_REPO_DIR
export PYTHONPATH=$TAICHI_REPO_DIR/python
export PATH=$WORKSPACE/bin/:$PATH
nvidia-smi
cd $TAICHI_REPO_DIR
git submodule update --init --recursive
[ -e build ] && rm -rf build
mkdir build && cd build
export CUDA_BIN_PATH=/usr/local/cuda-${CUDA_VERSION}
cmake .. -DPYTHON_EXECUTABLE=$PYTHON_EXECUTABLE -DCUDA_VERSION=$CUDA_VERSION
make -j 8
ldd libtaichi_core.so
objdump -T libtaichi_core.so| grep GLIBC
cd ../python
ti test -t 1 -na opengl
$PYTHON_EXECUTABLE build.py upload
'''
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。