intel / ai-reference-models

Intel® AI Reference Models: contains Intel optimizations for running deep learning workloads on Intel® Xeon® Scalable processors and Intel® Data Center GPUs
Apache License 2.0
674 stars 219 forks source link

Build torch-ccl failed #131

Open Fred-cell opened 1 year ago

Fred-cell commented 1 year ago

https://github.com/IntelAI/models/blob/master/docs/general/pytorch/BareMetalSetup.md when I installed torch-ccl according guide as below: git clone https://github.com/intel-innersource/frameworks.ai.pytorch.torch-ccl.git cd frameworks.ai.pytorch.torch-ccl && git checkout ccl_torch_1.13 git submodule sync git submodule update --init --recursive python setup.py install there are some errors in setup step: -- The C compiler identification is GNU 11.3.0 -- The CXX compiler identification is GNU 11.3.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done CMake Error at /home/fred/anaconda3/envs/ipex-training/lib/python3.9/site-packages/torch/share/cmake/Torch/TorchConfig.cmake:68 (find_package): Could not find a package configuration file provided by "Caffe2" with any of the following names:

Caffe2Config.cmake
caffe2-config.cmake

Add the installation prefix of "Caffe2" to CMAKE_PREFIX_PATH or set "Caffe2_DIR" to a directory containing one of the above files. If "Caffe2" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): CMakeLists.txt:27 (find_package)

sramakintel commented 6 months ago

@Fred-cell can you try the latest build for torch-ccl from here: https://github.com/intel/torch-ccl ?