1# Licensed to the Apache Software Foundation (ASF) under one 2# or more contributor license agreements. See the NOTICE file 3# distributed with this work for additional information 4# regarding copyright ownership. The ASF licenses this file 5# to you under the Apache License, Version 2.0 (the 6# "License"); you may not use this file except in compliance 7# with the License. You may obtain a copy of the License at 8# 9# http://www.apache.org/licenses/LICENSE-2.0 10# 11# Unless required by applicable law or agreed to in writing, 12# software distributed under the License is distributed on an 13# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14# KIND, either express or implied. See the License for the 15# specific language governing permissions and limitations 16# under the License. 17 18set(CMAKE_BUILD_TYPE "Distribution" CACHE STRING "Build type") 19set(CFLAGS "-mno-avx" CACHE STRING "CFLAGS") 20set(CXXFLAGS "-mno-avx" CACHE STRING "CXXFLAGS") 21 22set(USE_CUDA ON CACHE BOOL "Build with CUDA support") 23set(USE_CUDNN ON CACHE BOOL "Build with CUDA support") 24set(USE_NCCL ON CACHE BOOL "Build with NCCL support") 25set(USE_OPENCV ON CACHE BOOL "Build with OpenCV support") 26set(USE_OPENMP ON CACHE BOOL "Build with Openmp support") 27set(USE_MKL_IF_AVAILABLE OFF CACHE BOOL "Use Intel MKL if found") 28set(USE_MKLDNN ON CACHE BOOL "Build with MKL-DNN support") 29set(USE_LAPACK ON CACHE BOOL "Build with lapack support") 30set(USE_TVM_OP OFF CACHE BOOL "Enable use of TVM operator build system.") 31set(USE_SSE ON CACHE BOOL "Build with x86 SSE instruction support") 32set(USE_F16C OFF CACHE BOOL "Build with x86 F16C instruction support") 33set(USE_LIBJPEG_TURBO ON CACHE BOOL "Build with libjpeg-turbo") 34set(USE_DIST_KVSTORE ON CACHE BOOL "Build with DIST_KVSTORE support") 35set(CUDACXX "/usr/local/cuda-11.2/bin/nvcc" CACHE STRING "Cuda compiler") 36set(MXNET_CUDA_ARCH "5.0;6.0;7.0;8.0;8.6" CACHE STRING "Cuda architectures") 37