-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1190 from masterleinad/nightly-sycl
Add nightly CI check for SYCL
- Loading branch information
Showing
12 changed files
with
242 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
ARG BASE=nvidia/cuda:10.2-devel | ||
FROM $BASE | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
bc \ | ||
wget \ | ||
ccache \ | ||
ninja-build \ | ||
python3 \ | ||
git \ | ||
&& \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
RUN KEYDUMP_URL=https://cloud.cees.ornl.gov/download && \ | ||
KEYDUMP_FILE=keydump && \ | ||
wget --quiet ${KEYDUMP_URL}/${KEYDUMP_FILE} && \ | ||
wget --quiet ${KEYDUMP_URL}/${KEYDUMP_FILE}.sig && \ | ||
gpg --import ${KEYDUMP_FILE} && \ | ||
gpg --verify ${KEYDUMP_FILE}.sig ${KEYDUMP_FILE} && \ | ||
rm ${KEYDUMP_FILE}* | ||
|
||
ARG CMAKE_VERSION=3.18.5 | ||
ENV CMAKE_DIR=/opt/cmake | ||
RUN CMAKE_URL=https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION} && \ | ||
CMAKE_SCRIPT=cmake-${CMAKE_VERSION}-Linux-x86_64.sh && \ | ||
CMAKE_SHA256=cmake-${CMAKE_VERSION}-SHA-256.txt && \ | ||
wget --quiet ${CMAKE_URL}/${CMAKE_SHA256} && \ | ||
wget --quiet ${CMAKE_URL}/${CMAKE_SHA256}.asc && \ | ||
wget --quiet ${CMAKE_URL}/${CMAKE_SCRIPT} && \ | ||
gpg --verify ${CMAKE_SHA256}.asc ${CMAKE_SHA256} && \ | ||
grep ${CMAKE_SCRIPT} ${CMAKE_SHA256} | sha256sum --check && \ | ||
mkdir -p ${CMAKE_DIR} && \ | ||
sh ${CMAKE_SCRIPT} --skip-license --prefix=${CMAKE_DIR} && \ | ||
rm cmake* | ||
ENV PATH=${CMAKE_DIR}/bin:$PATH | ||
|
||
ENV SYCL_DIR=/opt/sycl | ||
RUN SYCL_VERSION=20210903 && \ | ||
SYCL_URL=https://github.com/intel/llvm/archive/sycl-nightly && \ | ||
SYCL_ARCHIVE=${SYCL_VERSION}.tar.gz && \ | ||
SCRATCH_DIR=/scratch && mkdir -p ${SCRATCH_DIR} && cd ${SCRATCH_DIR} && \ | ||
wget --quiet ${SYCL_URL}/${SYCL_ARCHIVE} && \ | ||
mkdir llvm && \ | ||
tar -xf ${SYCL_ARCHIVE} -C llvm --strip-components=1 && \ | ||
cd llvm && \ | ||
python3 buildbot/configure.py --cuda && \ | ||
python3 buildbot/compile.py && \ | ||
mkdir -p ${SYCL_DIR} && \ | ||
mv ${SCRATCH_DIR}/llvm/build/install/* ${SYCL_DIR} && \ | ||
echo "${SYCL_DIR}/lib" > /etc/ld.so.conf.d/sycl.conf && ldconfig && \ | ||
rm -rf ${SCRATCH_DIR} | ||
ENV PATH=${SYCL_DIR}/bin:$PATH |
Oops, something went wrong.