You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
310 B
Docker

FROM rust as builder
RUN apt-get update
RUN apt-get install ocl-icd-opencl-dev -y
COPY . .
RUN cargo build --release
FROM nvidia/opencl:devel-ubuntu18.04
RUN apt-get update
WORKDIR benchmark
COPY --from=builder target/release/rust-opencl-demo .
ENV PATH="${PATH}:/benchmark"
ENTRYPOINT ["./rust-opencl-demo"]