'libunwind.h' not found
-DWITH_UNWIND=OFF
, or install libunwind in your system.CUDNN_STATUS_NOT_INITIALIZED
I0729 22:37:45.483937439 56788 ev_epoll_linux.c:82] Use of signals is disabled. Epoll enginll not be used
E0729 22:37:45.515343 56788 version.cpp:82] Failed to get cuda runtime version: CUDA driver version nsufficient for CUDA runtime version
F0729 22:38:31.209002 56788 improver.cpp:535] Check failed: mem_size > 0 (-524288000 vs. 0)
F0723 19:05:56.194067 40970 cuda_util.cpp:82] Check failed: error == CUDNN_STATUS_SUCCESS (1 vs. 0) CUDNN_STATUS_NOT_INITIALIZED
Failed to compile .cu
files
How do I know what compilers and flags are used to compile OneFlow?
make clean && make VERBOSE=1
to get exact compile commands with compiler path and flagsHow to compile OneFlow with RDMA support?
-DBUILD_RDMA
to compile OneFlowWhich version of g++ CMake is using to build OneFlow?
You should find a line like this in CMake output:
-- CMAKE_CXX_COMPILER_VERSION: [YOUR G++ VERSION NUMBER]
Failed to compile NCCL
Try use less threads when compiling OneFlow third party. For instance, use
cmake -DTHIRD_PARTY=ON .. && make
instead of
cmake -DTHIRD_PARTY=ON .. && make -j$(nproc) `
"CUDA_VERSION" "VERSION_GREATER_EQUAL" "10.0"
PATH
CUBLAS not found
Usually it happens when using CUDA 10.1 or newer
You should see error massage by CMake like this:
cuda lib not found: /usr/local/miniconda3/envs/dl/lib/libcublas_static.a or
/usr/local/cuda/lib64/libcublas_static.a
Make sure libcublas_static.a
is in one of the two directories.
When running OneFlow in gdb, there is no debug information for code location.
-DCMAKE_BUILD_TYPE=RELWITHDEBINFO
or -DCMAKE_BUILD_TYPE=DEBUG
and recompilelibof_ccobj.a: File truncated
You might see error message like this:
/usr/bin/ar: libof_ccobj.a: File truncated
make[2]: *** [libof_ccobj.a] Error 1
make[2]: *** Deleting file `libof_ccobj.a'
make[1]: *** [CMakeFiles/of_ccobj.dir/all] Error 2
make: *** [all] Error 2
You should upgrade your GNU Binutils. Version 2.33.1 is recommended. If you are using conda, you could install it by running conda install -c conda-forge binutils
Failed to compile because C++ 17 is enabled
CXXFLAGS
is not empty and contains --std c++17
.echo $CXXFLAGS
and clear it with unset CXXFLAGS
.conda env config vars set CXXFLAGS="-fPIC"
cmake outputs error No CMAKE_ASM_NASM_COMPILER could be found.
nasm
. For instance, run sudo yum install nasm
if you are on centos.No module named 'google.protobuf'
Scanning dependencies of target generate_api
...
from google.protobuf import descriptor as _descriptor
ModuleNotFoundError: No module named 'google.protobuf'
CMakeFiles/generate_api.dir/build.make:57: recipe for target 'CMakeFiles/generate_api' failed
make[2]: *** [CMakeFiles/generate_api] Error 1
pip3 install -r dev-requirements.txt
Get gdb warning ptrace: Operation not permitted.
and gdb command bt
prints no backtrace
docker run --cap-add=SYS_PTRACE --security-opt seccomp=unconfined
It takes too long to download python packages when running make
python3 -m pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。