config.cmake 3.14 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
#--------------------------------------------------------------------
#  Template custom cmake configuration for compiling
#
#  This file is used to override the build options in build.
#  If you want to change the configuration, please use the following
#  steps. Assume you are on the root directory. First copy the this
#  file so that any local changes will be ignored by git
#
#  $ mkdir build
#  $ cp cmake/config.cmake build
#
#  Next modify the according entries, and then compile by
#
#  $ cd build
#  $ cmake ..
#
#  Then buld in parallel with 8 threads
#
#  $ make -j8
#--------------------------------------------------------------------

#---------------------------------------------
# Backend runtimes.
#---------------------------------------------
25 26 27 28 29

# Whether enable CUDA during compile,
#
# Possible values:
# - ON: enable CUDA with cmake's auto search
30
# - OFF: disable CUDA
31
# - /path/to/cuda: use specific path to cuda toolkit
32 33
set(USE_CUDA OFF)

34 35 36 37
# Whether enable ROCM runtime
#
# Possible values:
# - ON: enable ROCM with cmake's auto search
38
# - OFF: disable ROCM
39
# - /path/to/rocm: use specific path to rocm
40 41
set(USE_ROCM OFF)

42 43 44
# Whether enable SDAccel runtime
set(USE_SDACCEL OFF)

45 46 47
# Whether enable Intel FPGA SDK for OpenCL (AOCL) runtime
set(USE_AOCL OFF)

48 49 50 51 52 53 54
# Whether enable OpenCL runtime
set(USE_OPENCL OFF)

# Whether enable Metal runtime
set(USE_METAL OFF)

# Whether enable Vulkan runtime
55 56 57
#
# Possible values:
# - ON: enable Vulkan with cmake's auto search
58
# - OFF: disable vulkan
59
# - /path/to/vulkan-sdk: use specific path to vulkan-sdk
60 61
set(USE_VULKAN OFF)

62 63 64
# Whether enable OpenGL runtime
set(USE_OPENGL OFF)

nhynes committed
65 66 67 68 69 70 71 72 73 74 75
# Whether to enable SGX runtime
#
# Possible values for USE_SGX:
# - /path/to/sgxsdk: path to Intel SGX SDK
# - OFF: disable SGX
#
# SGX_MODE := HW|SIM
set(USE_SGX OFF)
set(SGX_MODE "SIM")
set(RUST_SGX_SDK "/path/to/rust-sgx-sdk")

76 77 78
# Whether enable RPC runtime
set(USE_RPC ON)

79 80 81
# Whether embed stackvm into the runtime
set(USE_STACKVM_RUNTIME OFF)

82 83 84 85 86 87 88 89 90 91
# Whether enable tiny embedded graph runtime.
set(USE_GRAPH_RUNTIME ON)

# Whether enable additional graph debug functions
set(USE_GRAPH_RUNTIME_DEBUG OFF)

# Whether build with LLVM support
# Requires LLVM version >= 4.0
#
# Possible values:
92
# - ON: enable llvm with cmake's find search
93
# - OFF: disable llvm
94
# - /path/to/llvm-config: enable specific LLVM when multiple llvm-dev is available.
95 96 97 98 99
set(USE_LLVM OFF)

#---------------------------------------------
# Contrib libraries
#---------------------------------------------
100
# Whether use BLAS, choices: openblas, mkl, atlas, apple
101 102
set(USE_BLAS none)

103 104 105 106 107
# /path/to/mkl: mkl root path when use mkl blas library
# set(USE_MKL_PATH /opt/intel/mkl) for UNIX
# set(USE_MKL_PATH ../IntelSWTools/compilers_and_libraries_2018/windows/mkl) for WIN32
set(USE_MKL_PATH none)

108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129
# Whether use contrib.random in runtime
set(USE_RANDOM OFF)

# Whether use NNPack
set(USE_NNPACK OFF)

# Whether use CuDNN
set(USE_CUDNN OFF)

# Whether use cuBLAS
set(USE_CUBLAS OFF)

# Whether use MIOpen
set(USE_MIOPEN OFF)

# Whether use MPS
set(USE_MPS OFF)

# Whether use rocBlas
set(USE_ROCBLAS OFF)

# Whether use contrib sort
130
set(USE_SORT ON)
131 132 133

# Build ANTLR parser for Relay text format
set(USE_ANTLR OFF)