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
tianlh
LightGBM-DCU
Commits
7c1ab96f
Unverified
Commit
7c1ab96f
authored
Dec 28, 2022
by
James Lamb
Committed by
GitHub
Dec 28, 2022
Browse files
[ci] use LightGBM CI image for building aarch64 wheels (fixes #5595) (#5622)
parent
4131ef8f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
29 deletions
+1
-29
.ci/setup.sh
.ci/setup.sh
+0
-28
.vsts-ci.yml
.vsts-ci.yml
+1
-1
No files found.
.ci/setup.sh
View file @
7c1ab96f
...
...
@@ -98,34 +98,6 @@ else # Linux
sudo
apt-get update
sudo
apt-get
install
--no-install-recommends
-y
\
pocl-opencl-icd
elif
[[
$(
uname
-m
)
==
"aarch64"
]]
;
then
yum
install
-y
\
epel-release
\
gcc-c++
\
hwloc-devel
\
sudo
yum
install
-y
\
llvm-toolset-7.0-clang-devel
\
llvm-toolset-7.0-llvm-devel
\
ocl-icd-devel
git clone
--depth
1
--branch
v1.8 https://github.com/pocl/pocl.git
cmake
\
-B
pocl/build
\
-S
pocl
\
-DCMAKE_BUILD_TYPE
=
release
\
-DCMAKE_C_COMPILER
=
/usr/bin/gcc
\
-DCMAKE_CXX_COMPILER
=
/usr/bin/g++
\
-DCMAKE_C_FLAGS
=
-std
=
gnu99
\
-DPOCL_INSTALL_ICD_VENDORDIR
=
/etc/OpenCL/vendors
\
-DPOCL_DEBUG_MESSAGES
=
OFF
\
-DINSTALL_OPENCL_HEADERS
=
OFF
\
-DENABLE_SPIR
=
OFF
\
-DENABLE_POCLCC
=
OFF
\
-DENABLE_TESTS
=
OFF
\
-DENABLE_EXAMPLES
=
OFF
\
-DLLC_HOST_CPU
=
generic
cmake
--build
pocl/build
-j4
sudo
cmake
--install
pocl/build
elif
[[
$(
uname
-m
)
==
"x86_64"
]]
;
then
sudo
yum update
-y
sudo
yum
install
-y
\
...
...
.vsts-ci.yml
View file @
7c1ab96f
...
...
@@ -192,7 +192,7 @@ jobs:
$ROOT_DOCKER_FOLDER/.ci/setup.sh || exit -1
$ROOT_DOCKER_FOLDER/.ci/test.sh || exit -1
EOF
IMAGE_URI="
quay.io/pypa/
manylinux2014_
${ARCH}
"
IMAGE_URI="
lightgbm/vsts-agent:
manylinux2014_
aarch64
"
docker pull "${IMAGE_URI}" || exit -1
PLATFORM=$(docker inspect --format='{{.Os}}/{{.Architecture}}' "${IMAGE_URI}") || exit -1
echo "detected image platform: ${PLATFORM}"
...
...
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