pytorch / FBGEMM

FB (Facebook) + GEMM (General Matrix-Matrix Multiplication) - https://code.fb.com/ml-applications/fbgemm/
Other
1.17k stars 474 forks source link

FBGEMM build steps are not correct and failing #2921

Closed jdgh000 closed 1 month ago

jdgh000 commented 1 month ago

appears there are two issues:

++ [[ -z env_fbgemm ]] ++ conda install -n env_fbgemm -y bazel cmake doxygen make ninja openblas Channels:

PackagesNotFoundError: The following packages are not available from current channels:

Current channels:

To search for alternate channels that may provide the conda package you're looking for, navigate to

https://anaconda.org

and use the search bar at the top of the page.

++ git clone --recurse-submodules https://github.com/pytorch/FBGEMM.git fatal: destination path 'FBGEMM' already exists and is not an empty directory. ++ pushd FBGEMM ~/git/FBGEMM ~/git ~/git/ ++ mkdir build mkdir: cannot create directory ‘build’: File exists ++ cd build ++ build_args=(-DUSE_SANITIZER=address -DFBGEMM_LIBRARY_TYPE=shared -DPYTHON_EXECUTABLE=which python3 -DFBGEMM_BUILD_DOCS=ON) +++ which python3 +++ alias +++ eval declare -f ++++ declare -f +++ /usr/bin/which --tty-only --read-alias --read-functions --show-tilde --show-dot python3 ++ build_args+=(-DCMAKE_C_COMPILER="${cc_path}" -DCMAKE_CXX_COMPILER="${cxx_path}" -DCMAKE_C_FLAGS=\"-fopenmp=libomp -stdlib=libc++ -I $CONDA_PREFIX/include\" -DCMAKE_CXX_FLAGS=\"-fopenmp=libomp -stdlib=libc++ -I $CONDA_PREFIX/include\") ++ cmake -DUSE_SANITIZER=address -DFBGEMM_LIBRARY_TYPE=shared -DPYTHON_EXECUTABLE=/root/miniconda3_src/envs/env_fbgemm/bin/python3 -DFBGEMM_BUILD_DOCS=ON -DCMAKE_C_COMPILER= -DCMAKE_CXX_COMPILER= '-DCMAKE_C_FLAGS="-fopenmp=libomp' -stdlib=libc++ -I '/root/miniconda3_src/envs/env_fbgemm/include"' '-DCMAKE_CXX_FLAGS="-fopenmp=libomp' -stdlib=libc++ -I '/root/miniconda3_src/envs/env_fbgemm/include"' .. CMake Warning: Ignoring extra path from command line:

"/root/miniconda3_src/envs/env_fbgemm/include""

CMake Error: Unknown argument -I CMake Error: Run 'cmake --help' for all supported options. ++ make -j VERBOSE=1 make: No targets specified and no makefile found. Stop. ++ make test make: No rule to make target 'test'. Stop. ++ make install make: *** No rule to make target 'install'. Stop. ++ popd ~/git ~/git/

q10 commented 1 month ago

You have to specify -c conda-forge when running conda install, since those packages are in the conda-forge channel. The instructions for building the docs can be found in https://pytorch.org/FBGEMM/general/documentation/Overview.html