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

Failed to build oneflow inside your docker #10551

Open
cam-ai opened this issue Aug 16, 2024 · 1 comment
Open

Failed to build oneflow inside your docker #10551

cam-ai opened this issue Aug 16, 2024 · 1 comment
Labels
bug community events from community

Comments

@cam-ai
Copy link

cam-ai commented Aug 16, 2024

Summary

I downloaded your project and docker, when i try to build oneflow inside your docker, it failed.

Code to reproduce bug

cmake .. -C ../cmake/caches/cn/cuda.cmake -DCMAKE_CUDA_ARCHITECTURES=80 -DCUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda -DCUDNN_ROOT_DIR=/usr/lib64

CMake Error at /opt/_internal/pipx/venvs/cmake/lib/python3.10/site-packages/cmake/data/share/cmake-3.27/Modules/FetchContent.cmake:1662 (message):
Build step for tbb failed: 2
Call Stack (most recent call first):
/opt/_internal/pipx/venvs/cmake/lib/python3.10/site-packages/cmake/data/share/cmake-3.27/Modules/FetchContent.cmake:1802:EVAL:2 (__FetchContent_directPopulate)
/opt/_internal/pipx/venvs/cmake/lib/python3.10/site-packages/cmake/data/share/cmake-3.27/Modules/FetchContent.cmake:1802 (cmake_language)
/opt/_internal/pipx/venvs/cmake/lib/python3.10/site-packages/cmake/data/share/cmake-3.27/Modules/FetchContent.cmake:2016 (FetchContent_Populate)
external/onetbb/CMakeLists.txt:14 (FetchContent_MakeAvailable)

System Information

ubuntu 20.04

  • What is your OneFlow installation (pip, source, dockerhub):
  • OS:
  • OneFlow version (run python3 -m oneflow --doctor):
  • Python version:
  • CUDA driver version:
  • GPU models:
  • Other info:
@cam-ai cam-ai added bug community events from community labels Aug 16, 2024
@westfly
Copy link

westfly commented Aug 20, 2024

@cam-ai Which Docker image do you employ?I test oneflowinc/oneflow:0.9.1.dev20240202-cuda12.1 works fine

docker run -it --rm --runtime=nvidia --privileged --network host oneflowinc/oneflow:0.9.1.dev20240202-cuda12.1  python3 -m oneflow --doctor

It appears that this image is a running image which has no gcc and nvcc rather than a build-dev image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug community events from community
Projects
None yet
Development

No branches or pull requests

2 participants