-
Notifications
You must be signed in to change notification settings - Fork 107
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·43 lines (36 loc) · 950 Bytes
/
Makefile
File metadata and controls
executable file
·43 lines (36 loc) · 950 Bytes
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
# Feel free to change these
PRODUCT=redisai
DOCKER_ORG=redislabs
export REDIS_VERSION=6.2.4
export REDIS_CUDA_VERSION=11.0-cudnn8
export REDISAI_LITE=0
PACK=1 # to fetch the artifacts
TEST=1 # because dockers
OSNICK ?= bionic
DEFAULT_TAG=${DOCKER_ORG}/${PRODUCT}:${VERSION}-cpu-${OSNICK}
# jetson flavour
ifdef REDIS_JETSON
export REDIS_JETSON=1
export REDIS_CUDA_VERSION=10.2-cudnn7
DOCKER_SUFFIX=.jetson
DOCKER_ARGS=gpu_build=1
DEFAULT_TAG=${DOCKER_ORG}/${PRODUCT}:${VERSION}-gpu-jetson
endif
# set gpu arguments
ifeq ($(GPU),1)
DOCKER_ARGS = gpu_build=1
DOCKER_SUFFIX=.gpu
DEFAULT_TAG=${DOCKER_ORG}/${PRODUCT}:${VERSION}-gpu-${OSNICK}
endif
# remap ubuntu versions because of nvidia cuda
ifeq ($(OSNICK),xenial)
export REDIS_CUDA_UBUNTUVERSION=16.04
endif
ifeq ($(OSNICK),bionic)
export REDIS_CUDA_UBUNTUVERSION=18.04
endif
### Defaults ###
ROOT=../../..
READIES=${ROOT}/opt/readies
# rules, for building
include ${READIES}/mk/docker.rules