forked from pytorch/FBGEMM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yml
53 lines (48 loc) · 1.26 KB
/
config.yml
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
version: 2
jobs:
build:
docker:
- image: buildpack-deps:xenial
steps:
- checkout
- run:
name: Pull submodules
command: |
git submodule update --init --recursive
- run:
name: Install prerequisites
command: |
set -e
apt-get update -y
apt-get update
apt-get -qq install cmake -y
- run:
name: Build FBGEMM static lib
command: |
set -e
mkdir build_static
cd build_static
cmake -DCMAKE_INSTALL_PREFIX=/root/project/install -DFBGEMM_LIBRARY_TYPE=static ../
make
make install
- run:
name: Test FBGEMM static lib
command: |
set -e
cd build_static
ctest --verbose
- run:
name: Build FBGEMM shared lib
command: |
set -e
mkdir build_shared
cd build_shared
cmake -DCMAKE_INSTALL_PREFIX=/root/project/install -DFBGEMM_LIBRARY_TYPE=shared ../
make
make install
- run:
name: Test FBGEMM shared lib
command: |
set -e
cd build_shared
ctest --verbose