Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while building Docker image from source #1076

Open
mpenagar opened this issue Feb 14, 2023 · 0 comments
Open

Error while building Docker image from source #1076

mpenagar opened this issue Feb 14, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@mpenagar
Copy link

Bug Description

Error while building the CUDA Docker image from source:

oneDNN required to build oneDNN backend: oneDNN was not found

Reproduction Steps

git clone --recursive https://github.com/flashlight/flashlight.git
cd flashlight
sudo docker build -f .docker/Dockerfile-CUDA -t flashlight .

Platform and Hardware

  • Host: Ubuntu 22.04.1 LTS
  • CUDA Version: 12.0
  • Docker version 20.10.23

Complete Log

$ docker build -f .docker/Dockerfile-CUDA -t flashlight-cuda .
Sending build context to Docker daemon  7.149MB
Step 1/5 : FROM flml/flashlight:cuda-base-consolidation-latest
 ---> add8d7c096c6
Step 2/5 : ENV MKLROOT="/opt/intel/mkl"
 ---> Using cache
 ---> 767cbfab8a0c
Step 3/5 : RUN mkdir /root/flashlight
 ---> Using cache
 ---> 33862a6a2728
Step 4/5 : COPY . /root/flashlight
 ---> Using cache
 ---> d0cd18311adb
Step 5/5 : RUN cd /root/flashlight && mkdir -p build &&     cd build && cmake .. -DCMAKE_BUILD_TYPE=Release                          -DCMAKE_INSTALL_PREFIX=/opt/flashlight                          -DFL_BACKEND=CUDA                          -DFL_BUILD_ALL_APPS=ON &&     make install -j$(nproc)
 ---> Running in 5bbbb3bd84a8
-- The CXX compiler identification is GNU 9.3.0
-- The C compiler identification is GNU 9.3.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Performing Test COMPILER_SUPPORTS_RDYNAMIC
-- Performing Test COMPILER_SUPPORTS_RDYNAMIC - Success
-- -rdynamic supported.
-- Could NOT find GTest (missing: GTEST_LIBRARY GTEST_INCLUDE_DIR GTEST_MAIN_LIBRARY) (Required is at least version "1.10.0")
-- googletest not found - will download and build from source
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- 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
-- Found Threads: TRUE
-- Building Flashlight with contrib components.
-- Could NOT find cereal (missing: cereal_DIR)
-- Could NOT find cereal (missing: cereal_INCLUDE_DIRS)
-- cereal NOT found. Will download from source
-- ArrayFire found (include: /opt/arrayfire/include, library: ArrayFire::afcuda)
CMake Error at flashlight/fl/tensor/backend/onednn/CMakeLists.txt:8 (message):
  oneDNN required to build oneDNN backend: oneDNN was not found
Call Stack (most recent call first):
  flashlight/fl/tensor/CMakeLists.txt:45 (include)
  flashlight/fl/CMakeLists.txt:41 (include)
  CMakeLists.txt:94 (include)


-- Could NOT find DNNL (missing: DNNL_DIR)
-- Configuring incomplete, errors occurred!
See also "/root/flashlight/build/CMakeFiles/CMakeOutput.log".
See also "/root/flashlight/build/CMakeFiles/CMakeError.log".
The command '/bin/sh -c cd /root/flashlight && mkdir -p build &&     cd build && cmake .. -DCMAKE_BUILD_TYPE=Release                          -DCMAKE_INSTALL_PREFIX=/opt/flashlight                          -DFL_BACKEND=CUDA                          -DFL_BUILD_ALL_APPS=ON &&     make install -j$(nproc)' returned a non-zero code: 1
@mpenagar mpenagar added the bug Something isn't working label Feb 14, 2023
@jacobkahn jacobkahn self-assigned this Mar 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants