forked from codeplaysoftware/portBLAS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_docker.sh
executable file
·32 lines (27 loc) · 1.13 KB
/
run_docker.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash
# This script runs the SYCL-BLAS tests using the provided Dockerfile.
# The intention is to provide a seamless alternative to .travis.yml, so that
# developers can locally test changes in a (somewhat) platform-agnostic manner
# without the usual delay that travis testing entails.
#
# By default, this script will compile the SYCL-BLAS with g++-7. Other compilers
# can be enabled by changing the `CXX_COMPILER` and `CC_COMPILER` environment
# variables, e.g.:
# export CXX_COMPILER=clang++-6.0
# export CC_COMPILER=clang-6.0
# Targets and git "slug" are also equally configurable. By default, the target
# is OpenCL, and the git repository cloned is codeplay's sycl blas master.
export IMPL=COMPUTECPP
export CXX_COMPILER=g++-7
export CC_COMPILER=gcc-7
export TARGET=opencl
export GIT_SLUG="codeplaysoftware/sycl-blas"
export GIT_BRANCH="master"
docker build --build-arg c_compiler=${CC_COMPILER} \
--build-arg cxx_compiler=${CXX_COMPILER} \
--build-arg git_branch=${GIT_BRANCH} \
--build-arg git_slug=${GIT_SLUG} \
--build-arg impl=${IMPL} \
--build-arg target=${TARGET} \
-t sycl-blas .
docker run sycl-blas