Title: Error during build in docker image (for CPU and CUDA backends) · Issue #2767 · arrayfire/arrayfire · GitHub
Open Graph Title: Error during build in docker image (for CPU and CUDA backends) · Issue #2767 · arrayfire/arrayfire
X Title: Error during build in docker image (for CPU and CUDA backends) · Issue #2767 · arrayfire/arrayfire
Description: Hi, thanks for the new release! Trying to build in docker image the new version 3.7.0 and have some troubles. For CUDA backend I have error during cmake: -- The C compiler identification is GNU 5.4.0 -- The CXX compiler identification is...
Open Graph Description: Hi, thanks for the new release! Trying to build in docker image the new version 3.7.0 and have some troubles. For CUDA backend I have error during cmake: -- The C compiler identification is GNU 5.4...
X Description: Hi, thanks for the new release! Trying to build in docker image the new version 3.7.0 and have some troubles. For CUDA backend I have error during cmake: -- The C compiler identification is GNU 5.4...
Opengraph URL: https://github.com/arrayfire/arrayfire/issues/2767
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Error during build in docker image (for CPU and CUDA backends)","articleBody":"Hi, thanks for the new release!\r\nTrying to build in docker image the new version 3.7.0 and have some troubles.\r\n\r\nFor CUDA backend I have error during cmake:\r\n```\r\n-- The C compiler identification is GNU 5.4.0\r\n-- The CXX compiler identification is GNU 5.4.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works\r\n-- Detecting C compiler ABI info\r\n-- Detecting C compiler ABI info - done\r\n-- Detecting C compile features\r\n-- Detecting C compile features - done\r\n-- Check for working CXX compiler: /usr/bin/c++\r\n-- Check for working CXX compiler: /usr/bin/c++ -- works\r\n-- Detecting CXX compiler ABI info\r\n-- Detecting CXX compiler ABI info - done\r\n-- Detecting CXX compile features\r\n-- Detecting CXX compile features - done\r\n-- Looking for CL_VERSION_2_0\r\n-- Looking for CL_VERSION_2_0 - not found\r\n-- Looking for CL_VERSION_1_2\r\n-- Looking for CL_VERSION_1_2 - found\r\n-- Could NOT find OpenCL (missing: OpenCL_LIBRARY) (found version \"1.2\")\r\n-- Looking for pthread.h\r\n-- Looking for pthread.h - found\r\n-- Looking for pthread_create\r\n-- Looking for pthread_create - not found\r\n-- Looking for pthread_create in pthreads\r\n-- Looking for pthread_create in pthreads - not found\r\n-- Looking for pthread_create in pthread\r\n-- Looking for pthread_create in pthread - found\r\n-- Found Threads: TRUE\r\n-- Found CUDA: /usr/local/cuda (found suitable version \"10.0\", minimum required is \"7.0\")\r\n-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)\r\n-- Found cuDNN: /usr/lib/x86_64-linux-gnu/libcudnn.so.7 (found suitable version \"7.6\", minimum required is \"4.0\")\r\n-- Could NOT find OpenCL (missing: OpenCL_LIBRARY) (found suitable version \"1.2\", minimum required is \"1.2\")\r\n-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libGL.so\r\n-- Could NOT find FreeImage (missing: FreeImage_INCLUDE_DIR FreeImage_LINK_LIBRARY)\r\n-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)\r\n-- Could NOT find FFTW (missing: FFTW_INCLUDE_DIR FFTW_LIBRARY FFTWF_LIBRARY)\r\n-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)\r\n-- Looking for sys/types.h\r\n-- Looking for sys/types.h - found\r\n-- Looking for stdint.h\r\n-- Looking for stdint.h - found\r\n-- Looking for stddef.h\r\n-- Looking for stddef.h - found\r\n-- Check size of void*\r\n-- Check size of void* - done\r\n-- Checking for [Accelerate]\r\n-- Checking for [vecLib]\r\n-- Checking for [cblas - atlas]\r\n-- Checking for [openblas]\r\n-- Checking for [cblas]\r\n-- Checking for [blas]\r\n-- CBLAS library not found.\r\n-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)\r\n-- Could NOT find LAPACK (missing: LAPACK_INCLUDE_DIR LAPACK_LIBRARIES)\r\n-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)\r\n-- Check size of int\r\n-- Check size of int - done\r\n-- MKL: Thread Layer(Intel OpenMP) Interface(4-byte Integer)\r\nVERBOSEMKL environment variable(LIBRARY_PATH): /usr/local/cuda/lib64/stubs\r\nVERBOSEMKL_ThreadingLibrary_LINK_LIBRARY: /usr/lib/x86_64-linux-gnu/libiomp5.so\r\n-- Could NOT find MKL: Source the compilervars.sh or mklvars.sh scripts included with your installation of MKL. This script searches for the libraries in MKLROOT, LIBRARY_PATHS(Linux), and LIB(Windows) environment variables (missing: MKL_INCLUDE_DIR MKL_Core_LINK_LIBRARY MKL_Interface_LINK_LIBRARY MKL_ThreadLayer_LINK_LIBRARY)\r\n-- Could NOT find MKL: Source the compilervars.sh or mklvars.sh scripts included with your installation of MKL. This script searches for the libraries in MKLROOT, LIBRARY_PATHS(Linux), and LIB(Windows) environment variables (missing: MKL_INCLUDE_DIR MKL_Core_STATIC_LINK_LIBRARY MKL_Interface_STATIC_LINK_LIBRARY MKL_ThreadLayer_STATIC_LINK_LIBRARY)\r\n-- Could NOT find Boost\r\nCMake Warning at CMakeModules/boost_package.cmake:36 (message):\r\n WARN: Found Boost v.. Required 1.70.0. Build will download Boost Compute.\r\nCall Stack (most recent call first):\r\n CMakeLists.txt:48 (include)\r\n\r\n\r\n-- Automatic GPU detection failed. Building for common architectures.\r\n-- CUDA_architecture_build_targets: 3.0;3.5;5.0;5.2;6.0;6.1;7.0;7.0+PTX\r\n-- Performing Test has_ignored_attributes_flag\r\n-- Performing Test has_ignored_attributes_flag - Success\r\n-- CUDA driver library missing. Looking for libcuda stub.\r\n-- CUDA driver stub FOUND: /usr/local/cuda/lib64/stubs/libcuda.so\r\nCMake Error at /usr/share/cmake-3.5/Modules/ExternalProject.cmake:1888 (message):\r\n Could not extract tarball filename from url:\r\n\r\n https://sparse.tamu.edu/MM/JGD_Kocay/Trec4.tar.gz;DOWNLOAD_NO_EXTRACT;False\r\nCall Stack (most recent call first):\r\n /usr/share/cmake-3.5/Modules/ExternalProject.cmake:2459 (_ep_add_download_command)\r\n test/CMakeModules/download_sparse_datasets.cmake:19 (ExternalProject_Add)\r\n test/CMakeModules/download_sparse_datasets.cmake:37 (mtxDownload)\r\n test/CMakeLists.txt:14 (include)\r\n\r\n\r\n-- Configuring incomplete, errors occurred!\r\n```\r\n\r\nand for CPU backend:\r\n```\r\n-- The C compiler identification is GNU 5.4.0\r\n-- The CXX compiler identification is GNU 5.4.0\r\n-- Check for working C compiler: /usr/bin/cc\r\n-- Check for working C compiler: /usr/bin/cc -- works\r\n-- Detecting C compiler ABI info\r\n-- Detecting C compiler ABI info - done\r\n-- Detecting C compile features\r\n-- Detecting C compile features - done\r\n-- Check for working CXX compiler: /usr/bin/c++\r\n-- Check for working CXX compiler: /usr/bin/c++ -- works\r\n-- Detecting CXX compiler ABI info\r\n-- Detecting CXX compiler ABI info - done\r\n-- Detecting CXX compile features\r\n-- Detecting CXX compile features - done\r\n-- Looking for CL_VERSION_2_0\r\n-- Looking for CL_VERSION_2_0 - not found\r\n-- Looking for CL_VERSION_1_2\r\n-- Looking for CL_VERSION_1_2 - not found\r\n-- Looking for CL_VERSION_1_1\r\n-- Looking for CL_VERSION_1_1 - not found\r\n-- Looking for CL_VERSION_1_0\r\n-- Looking for CL_VERSION_1_0 - not found\r\n-- Could NOT find OpenCL (missing: OpenCL_LIBRARY OpenCL_INCLUDE_DIR)\r\nCUDA_TOOLKIT_ROOT_DIR not found or specified\r\n-- Could NOT find CUDA (missing: CUDA_TOOLKIT_ROOT_DIR CUDA_NVCC_EXECUTABLE CUDA_INCLUDE_DIRS CUDA_CUDART_LIBRARY) (Required is at least version \"7.0\")\r\n-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)\r\n-- Could NOT find cuDNN (missing: cuDNN_LINK_LIBRARY cuDNN_INCLUDE_DIRS) (Required is at least version \"4.0\")\r\n-- Could NOT find OpenCL (missing: OpenCL_LIBRARY OpenCL_INCLUDE_DIR) (Required is at least version \"1.2\")\r\n-- Could NOT find OpenGL (missing: OPENGL_gl_LIBRARY OPENGL_INCLUDE_DIR)\r\n-- Could NOT find FreeImage (missing: FreeImage_INCLUDE_DIR FreeImage_LINK_LIBRARY)\r\n-- Looking for pthread.h\r\n-- Looking for pthread.h - found -- Looking for pthread_create -- Looking for pthread_create - not found -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found\r\n-- Found Threads: TRUE\r\n-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)\r\n-- Found FFTW: /usr/include\r\n-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)\r\n-- Looking for sys/types.h\r\n-- Looking for sys/types.h - found\r\n-- Looking for stdint.h\r\n-- Looking for stdint.h - found\r\n-- Looking for stddef.h\r\n-- Looking for stddef.h - found\r\n-- Check size of void*\r\n-- Check size of void* - done\r\n-- Checking for [Accelerate]\r\n-- Checking for [vecLib]\r\n-- Checking for [cblas - atlas]\r\n-- Includes found\r\n-- Looking for cblas_dgemm\r\n-- Looking for cblas_dgemm - found\r\n-- CBLAS Symbols FOUND\r\n-- CBLAS library found\r\n-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)\r\n-- Found LAPACK: /usr/include\r\n-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)\r\n-- Check size of int\r\n-- Check size of int - done\r\n-- MKL: Thread Layer(Intel OpenMP) Interface(4-byte Integer)\r\nVERBOSEMKL environment variable(LIBRARY_PATH):\r\nVERBOSEMKL_Core_LINK_LIBRARY: /opt/intel/mkl/lib/intel64/libmkl_core.so\r\nVERBOSEMKL_Core_STATIC_LINK_LIBRARY: /opt/intel/mkl/lib/intel64/libmkl_core.a\r\nVERBOSEMKL_RT_LINK_LIBRARY: /opt/intel/mkl/lib/intel64/libmkl_rt.so\r\nVERBOSEMKL_ThreadLayer_LINK_LIBRARY: /opt/intel/mkl/lib/intel64/libmkl_intel_thread.so\r\nVERBOSEMKL_ThreadLayer_STATIC_LINK_LIBRARY: /opt/intel/mkl/lib/intel64/libmkl_intel_thread.a\r\nVERBOSEMKL_ThreadingLibrary_LINK_LIBRARY: /usr/lib/x86_64-linux-gnu/libiomp5.so\r\nVERBOSEMKL_Interface_LINK_LIBRARY: /opt/intel/mkl/lib/intel64/libmkl_intel_lp64.so\r\nVERBOSEMKL_Interface_STATIC_LINK_LIBRARY: /opt/intel/mkl/lib/intel64/libmkl_intel_lp64.a\r\nVERBOSEMKL_mkl_def_LINK_LIBRARY: /opt/intel/mkl/lib/intel64/libmkl_def.so\r\nVERBOSEMKL_mkl_mc_LINK_LIBRARY: /opt/intel/mkl/lib/intel64/libmkl_mc.so\r\nVERBOSEMKL_mkl_mc3_LINK_LIBRARY: /opt/intel/mkl/lib/intel64/libmkl_mc3.so\r\nVERBOSEMKL_mkl_avx_LINK_LIBRARY: /opt/intel/mkl/lib/intel64/libmkl_avx.so\r\nVERBOSEMKL_mkl_avx2_LINK_LIBRARY: /opt/intel/mkl/lib/intel64/libmkl_avx2.so\r\nVERBOSEMKL_mkl_avx512_LINK_LIBRARY: /opt/intel/mkl/lib/intel64/libmkl_avx512.so\r\n-- Found MKL_Shared: /opt/intel/mkl/include (found version \"2018.0.4\")\r\n-- Found MKL_Static: /opt/intel/mkl/include (found version \"2018.0.4\")\r\n-- Could NOT find Boost\r\nCMake Warning at CMakeModules/boost_package.cmake:36 (message):\r\n WARN: Found Boost v.. Required 1.70.0. Build will download Boost Compute.\r\nCall Stack (most recent call first):\r\n CMakeLists.txt:48 (include)\r\n\r\n\r\n-- Performing Test has_ignored_attributes_flag\r\n-- Performing Test has_ignored_attributes_flag - Success\r\n-- Could NOT find PythonInterp (missing: PYTHON_EXECUTABLE)\r\n-- Check if compiler accepts -pthread\r\n-- Check if compiler accepts -pthread - yes\r\n-- Configuring done\r\nCMake Error in src/backend/cpu/CMakeLists.txt:\r\n Found relative path while evaluating include directories of\r\n \"cpu_sort_by_key_uchar\":\r\n\r\n \"Boost_INCLUDE_DIR-NOTFOUND\"\r\n\r\n\r\n\r\nCMake Error in src/backend/cpu/CMakeLists.txt:\r\n Found relative path while evaluating include directories of\r\n \"cpu_sort_by_key_uchar\":\r\n\r\n \"Boost_INCLUDE_DIR-NOTFOUND\"\r\n\r\n\r\n\r\nCMake Error in src/backend/cpu/CMakeLists.txt:\r\n Found relative path while evaluating include directories of\r\n \"cpu_sort_by_key_char\":\r\n\r\n \"Boost_INCLUDE_DIR-NOTFOUND\"\r\n\r\n\r\n\r\nCMake Error in src/backend/cpu/CMakeLists.txt:\r\n Found relative path while evaluating include directories of\r\n \"cpu_sort_by_key_char\":\r\n\r\n \"Boost_INCLUDE_DIR-NOTFOUND\"\r\n\r\n\r\n\r\nCMake Error in src/backend/cpu/CMakeLists.txt:\r\n Found relative path while evaluating include directories of\r\n \"cpu_sort_by_key_double\":\r\n\r\n \"Boost_INCLUDE_DIR-NOTFOUND\"\r\nCMake Error in src/backend/cpu/CMakeLists.txt:\r\n Found relative path while evaluating include directories of\r\n \"cpu_sort_by_key_double\":\r\n\r\n \"Boost_INCLUDE_DIR-NOTFOUND\"\r\n\r\n\r\n\r\nCMake Error in src/backend/cpu/CMakeLists.txt:\r\n Found relative path while evaluating include directories of\r\n \"cpu_sort_by_key_uintl\":\r\n\r\n \"Boost_INCLUDE_DIR-NOTFOUND\"\r\n\r\n\r\n\r\nCMake Error in src/backend/cpu/CMakeLists.txt:\r\n Found relative path while evaluating include directories of\r\n \"cpu_sort_by_key_uintl\":\r\n\r\n \"Boost_INCLUDE_DIR-NOTFOUND\"\r\n\r\n\r\n\r\nCMake Error in src/backend/cpu/CMakeLists.txt:\r\n Found relative path while evaluating include directories of\r\n \"cpu_sort_by_key_short\":\r\n\r\n \"Boost_INCLUDE_DIR-NOTFOUND\"\r\n\r\n\r\n\r\nCMake Error in src/backend/cpu/CMakeLists.txt:\r\n Found relative path while evaluating include directories of\r\n \"cpu_sort_by_key_short\":\r\n\r\n \"Boost_INCLUDE_DIR-NOTFOUND\"\r\n\r\n\r\n\r\nCMake Error in src/backend/cpu/CMakeLists.txt:\r\n Found relative path while evaluating include directories of\r\n \"cpu_sort_by_key_float\":\r\n\r\n \"Boost_INCLUDE_DIR-NOTFOUND\"\r\n\r\n\r\n\r\nCMake Error in src/backend/cpu/CMakeLists.txt:\r\n Found relative path while evaluating include directories of\r\n \"cpu_sort_by_key_float\":\r\n\r\n \"Boost_INCLUDE_DIR-NOTFOUND\"\r\n\r\n\r\n\r\nCMake Error in src/backend/cpu/CMakeLists.txt:\r\n Target \"c_api_interface\" contains relative path in its\r\n INTERFACE_INCLUDE_DIRECTORIES:\r\n\r\n \"Boost_INCLUDE_DIR-NOTFOUND\"\r\n....\r\n```\r\nin case I add `sudo apt-get install libboost-all-dev` for CPU backend the following error occurs during make:\r\n```\r\n/tmp/arrayfire/test/mmio/mmio.c: In function 'mm_read_unsymmetric_sparse':\r\n/tmp/arrayfire/test/mmio/mmio.c:68:9: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result]\r\n fscanf(f, \"%d %d %lg\\n\", \u0026I[i], \u0026J[i], \u0026val[i]);\r\n ^\r\n[ 3%] Performing download step (download, verify and extract) for 'boost_compute'\r\n[ 4%] Performing download step (download and verify) for 'mtxDownload-LPnetlib-lpi_vol1'\r\n[ 4%] Performing download step (download and verify) for 'mtxDownload-HB-bcsstm02'\r\n[ 4%] Performing download step (download and verify) for 'mtxDownload-QCD-conf6_0-4x4-20'\r\n[ 4%] Performing download step (download and verify) for 'mtxDownload-Sandia-oscil_dcop_42'\r\n[ 4%] Performing download step (download and verify) for 'mtxDownload-Sandia-oscil_dcop_12'\r\n-- Downloading...\r\n dst='/tmp/arrayfire/build/boost_compute-prefix/src/boost-1.70.0.tar.gz'\r\n timeout='none'\r\nIn file included from /tmp/arrayfire/src/backend/cpu/./err_cpu.hpp:10:0,\r\n from /tmp/arrayfire/src/backend/cpu/./kernel/sort_by_key_impl.hpp:12,\r\n from /tmp/arrayfire/src/backend/cpu/kernel/sort_by_key/sort_by_key_impl.cpp:10:\r\n/tmp/arrayfire/src/backend/cpu/../common/err_common.hpp:12:32: fatal error: boost/stacktrace.hpp: No such file or directory\r\ncompilation terminated.\r\n-- Using src='https://github.com/boostorg/compute/archive/boost-1.70.0.tar.gz'\r\n[ 4%] Performing download step (download and verify) for 'mtxDownload-QCD-conf6_0-4x4-30'\r\nIn file included from /tmp/arrayfire/src/backend/cpu/./err_cpu.hpp:10:0,\r\n from /tmp/arrayfire/src/backend/cpu/./kernel/sort_by_key_impl.hpp:12, from /tmp/arrayfire/src/backend/cpu/kernel/sort_by_key/sort_by_key_impl.cpp:10: /tmp/arrayfire/src/backend/cpu/../common/err_common.hpp:12:32: fatal error: boost/stacktrace.hpp: No such file or directory\r\ncompilation terminated.\r\n```\r\n\r\nI am using the following docker files:\r\n- for CUDA:\r\n```\r\nFROM nvidia/cuda:10.0-cudnn7-devel-ubuntu16.04\r\n\r\nRUN APT_INSTALL=\"apt-get install -y --no-install-recommends\" \u0026\u0026 \\\r\n rm -rf /var/lib/apt/lists/* \\\r\n /etc/apt/sources.list.d/cuda.list \\\r\n /etc/apt/sources.list.d/nvidia-ml.list \u0026\u0026 \\\r\n apt-get update \u0026\u0026 \\\r\n DEBIAN_FRONTEND=noninteractive $APT_INSTALL \\\r\n build-essential \\\r\n ca-certificates \\\r\n cmake \\\r\n wget \\\r\n git \\\r\n vim \\\r\n emacs \\\r\n nano \\\r\n htop \\\r\n g++ \\\r\n # ssh for OpenMPI\r\n openssh-server openssh-client \\\r\n # OpenMPI\r\n libopenmpi-dev libomp-dev \\\r\n # nccl: for flashlight\r\n libnccl2 libnccl-dev \\\r\n libglfw3-dev \u0026\u0026 \\\r\n# ==================================================================\r\n# arrayfire https://github.com/arrayfire/arrayfire/wiki/\r\n# ------------------------------------------------------------------\r\n cd /tmp \u0026\u0026 git clone --recursive https://github.com/arrayfire/arrayfire.git \u0026\u0026 \\\r\n cd arrayfire \u0026\u0026 git checkout v3.7.0 \u0026\u0026 git submodule update --init --recursive \u0026\u0026 \\\r\n mkdir build \u0026\u0026 cd build \u0026\u0026 \\\r\n CXXFLAGS=-DOS_LNX cmake .. -DCMAKE_BUILD_TYPE=Release -DAF_BUILD_CPU=OFF -DAF_BUILD_OPENCL=OFF -DAF_BUILD_EXAMPLES=OFF \u0026\u0026 \\\r\n make -j$(nproc) \u0026\u0026 \\\r\n make install \u0026\u0026 \\\r\n# ==================================================================\r\n# config \u0026 cleanup\r\n# ------------------------------------------------------------------\r\n ldconfig \u0026\u0026 \\\r\n apt-get clean \u0026\u0026 \\\r\n apt-get autoremove \u0026\u0026 \\\r\n rm -rf /var/lib/apt/lists/* /tmp/* ~/* \u0026\u0026 \\\r\n # If the driver is not found (during docker build) the cuda driver api need to be linked against the\r\n # libcuda.so stub located in the lib[64]/stubs directory\r\n ln -s /usr/local/cuda/lib64/stubs/libcuda.so /usr/lib/x86_64-linux-gnu/libcuda.so.1\r\n```\r\n- for CPU:\r\n```\r\nFROM ubuntu:16.04\r\n\r\nRUN APT_INSTALL=\"apt-get install -y --no-install-recommends\" \u0026\u0026 \\\r\n apt-get update \u0026\u0026 \\\r\n DEBIAN_FRONTEND=noninteractive $APT_INSTALL \\\r\n build-essential \\\r\n ca-certificates \\\r\n wget \\\r\n git \\\r\n vim \\\r\n emacs \\\r\n nano \\\r\n htop \\\r\n g++ \\\r\n # for MKL\r\n apt-transport-https \\\r\n # for arrayfire CPU backend\r\n # OpenBLAS\r\n libopenblas-dev libfftw3-dev liblapacke-dev \\\r\n # ATLAS\r\n libatlas3-base libatlas-dev libfftw3-dev liblapacke-dev \\\r\n # ssh for OpenMPI\r\n openssh-server openssh-client \\\r\n # OpenMPI\r\n libopenmpi-dev libomp-dev \u0026\u0026 \\\r\n# ==================================================================\r\n# cmake 3.10 (for MKLDNN)\r\n# ------------------------------------------------------------------\r\n apt-get purge -y cmake \u0026\u0026 \\\r\n # for cmake\r\n DEBIAN_FRONTEND=noninteractive $APT_INSTALL zlib1g-dev libcurl4-openssl-dev \u0026\u0026 \\\r\n cd /tmp \u0026\u0026 wget https://cmake.org/files/v3.10/cmake-3.10.3.tar.gz \u0026\u0026 \\\r\n tar -xzvf cmake-3.10.3.tar.gz \u0026\u0026 cd cmake-3.10.3 \u0026\u0026 \\\r\n ./bootstrap --system-curl \u0026\u0026 \\\r\n make -j$(nproc) \u0026\u0026 make install \u0026\u0026 cmake --version \u0026\u0026 \\\r\n# ==================================================================\r\n# MKL https://software.intel.com/en-us/mkl\r\n# ------------------------------------------------------------------\r\n cd /tmp \u0026\u0026 wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS-2019.PUB \u0026\u0026 \\\r\n apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS-2019.PUB \u0026\u0026 \\\r\n wget https://apt.repos.intel.com/setup/intelproducts.list -O /etc/apt/sources.list.d/intelproducts.list \u0026\u0026 \\\r\n sh -c 'echo deb https://apt.repos.intel.com/mkl all main \u003e /etc/apt/sources.list.d/intel-mkl.list' \u0026\u0026 \\\r\n apt-get update \u0026\u0026 DEBIAN_FRONTEND=noninteractive $APT_INSTALL intel-mkl-64bit-2018.4-057 \u0026\u0026 \\\r\n export MKLROOT=/opt/intel/mkl \u0026\u0026 \\\r\n# ==================================================================\r\n# arrayfire with CPU backend https://github.com/arrayfire/arrayfire/wiki/\r\n# ------------------------------------------------------------------\r\n cd /tmp \u0026\u0026 git clone --recursive https://github.com/arrayfire/arrayfire.git \u0026\u0026 \\\r\n cd arrayfire \u0026\u0026 git checkout v3.7.0 \u0026\u0026 git submodule update --init --recursive \u0026\u0026 \\\r\n mkdir build \u0026\u0026 cd build \u0026\u0026 \\\r\n CXXFLAGS=-DOS_LNX cmake .. -DCMAKE_BUILD_TYPE=Release -DAF_BUILD_CUDA=OFF -DAF_BUILD_OPENCL=OFF -DAF_BUILD_EXAMPLES=OFF \u0026\u0026 \\\r\n make -j$(nproc) \u0026\u0026 make install \u0026\u0026 \\\r\n# ==================================================================\r\n# MKLDNN https://github.com/intel/mkl-dnn/\r\n# ------------------------------------------------------------------\r\n cd /tmp \u0026\u0026 git clone https://github.com/intel/mkl-dnn.git \u0026\u0026 \\\r\n cd mkl-dnn \u0026\u0026 git checkout 4bdffc2 \u0026\u0026 mkdir -p build \u0026\u0026 cd build \u0026\u0026 \\\r\n cmake .. -DMKLDNN_USE_MKL=FULL \u0026\u0026 \\\r\n make -j$(nproc) \u0026\u0026 make install \u0026\u0026 \\\r\n# ==================================================================\r\n# Gloo https://github.com/facebookincubator/gloo.git\r\n# ------------------------------------------------------------------\r\n cd /tmp \u0026\u0026 git clone https://github.com/facebookincubator/gloo.git \u0026\u0026 \\\r\n cd gloo \u0026\u0026 git checkout b7e0906 \u0026\u0026 mkdir build \u0026\u0026 cd build \u0026\u0026 \\\r\n cmake .. -DUSE_MPI=ON \u0026\u0026 \\\r\n make -j$(nproc) \u0026\u0026 make install \u0026\u0026 \\\r\n# ==================================================================\r\n# config \u0026 cleanup\r\n# ------------------------------------------------------------------\r\n ldconfig \u0026\u0026 \\\r\n apt-get clean \u0026\u0026 \\\r\n apt-get autoremove \u0026\u0026 \\\r\n rm -rf /var/lib/apt/lists/* /tmp/* ~/*\r\n```\r\n\r\nThis docker files worked fine with 3.6.4 version.\r\n\r\nThanks for the help!","author":{"url":"https://github.com/tlikhomanenko","@type":"Person","name":"tlikhomanenko"},"datePublished":"2020-02-14T21:35:45.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":14},"url":"https://github.com/2767/arrayfire/issues/2767"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:4e5724e7-5862-bbe6-915d-2854aafd5257 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 988E:2ADE67:2AB8445:3AD1602:6964E92F |
| html-safe-nonce | 238e17cb6f7b76a40ccb28f6dcfae86d84d223f671f83ba34a44163d54c05f35 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5ODhFOjJBREU2NzoyQUI4NDQ1OjNBRDE2MDI6Njk2NEU5MkYiLCJ2aXNpdG9yX2lkIjoiNzY2MDI4NTUxMjM0NDk4Nzk1MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 4cb487583be3d191802ed2e30de84d6d99747effc5570e87d3278b42f1adb711 |
| hovercard-subject-tag | issue:565567270 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/arrayfire/arrayfire/2767/issue_layout |
| twitter:image | https://opengraph.githubassets.com/460c33baf25a5da0a8904ec35ecb715c3236088586fa65d446b4a8b87e651815/arrayfire/arrayfire/issues/2767 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/460c33baf25a5da0a8904ec35ecb715c3236088586fa65d446b4a8b87e651815/arrayfire/arrayfire/issues/2767 |
| og:image:alt | Hi, thanks for the new release! Trying to build in docker image the new version 3.7.0 and have some troubles. For CUDA backend I have error during cmake: -- The C compiler identification is GNU 5.4... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tlikhomanenko |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3c30097417ecb9dfdab6b2e8bc7dc38d73e183d6ad48f94cb69e4a5daa2dbb87 |
| turbo-cache-control | no-preview |
| go-import | github.com/arrayfire/arrayfire git https://github.com/arrayfire/arrayfire.git |
| octolytics-dimension-user_id | 5395442 |
| octolytics-dimension-user_login | arrayfire |
| octolytics-dimension-repository_id | 25889802 |
| octolytics-dimension-repository_nwo | arrayfire/arrayfire |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 25889802 |
| octolytics-dimension-repository_network_root_nwo | arrayfire/arrayfire |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 69fc54a84c74307369dba42af5401200531d116e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width