Skip to content

Commit 97c8e82

Browse files
committed
Enable CI for nvptx64-nvidia-cuda
1 parent d3903d5 commit 97c8e82

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,8 @@ matrix:
186186
if: branch = auto
187187
- env: IMAGE=mingw-check
188188
if: type = pull_request OR branch = auto
189+
- env: IMAGE=nvptx-cuda
190+
if: branch = auto
189191

190192
- stage: publish toolstate
191193
if: branch = master AND type = push

src/ci/docker/dist-various-2/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ ENV TARGETS=$TARGETS,x86_64-sun-solaris
7070
ENV TARGETS=$TARGETS,x86_64-unknown-linux-gnux32
7171
ENV TARGETS=$TARGETS,x86_64-unknown-cloudabi
7272
ENV TARGETS=$TARGETS,x86_64-fortanix-unknown-sgx
73+
ENV TARGETS=$TARGETS,nvptx64-nvidia-cuda
7374

7475
ENV X86_FORTANIX_SGX_LIBS="/x86_64-fortanix-unknown-sgx/lib/"
7576

src/ci/docker/nvptx-cuda/Dockerfile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
FROM ubuntu:18.04
2+
3+
RUN apt-get update
4+
RUN apt-get install -y --no-install-recommends \
5+
g++ make file curl ca-certificates python git \
6+
cmake sudo gdb
7+
8+
# TODO(denzp): setup `ptx-linker` CI for auttomatic binary releases.
9+
RUN curl -sL https://github.com/denzp/rust-ptx-linker/releases/download/v0.9.0-alpha/rust-ptx-linker.linux64.tar.gz | \
10+
tar -xzvC /usr/bin
11+
12+
COPY scripts/sccache.sh /scripts/
13+
RUN sh /scripts/sccache.sh
14+
15+
ENV TARGETS=nvptx64-nvidia-cuda
16+
17+
ENV SCRIPT python2.7 /checkout/x.py test --target $TARGETS \
18+
src/test/run-make

0 commit comments

Comments
 (0)