'Performing download step (git clone) for 'faiss' Failed to checkout tag: 'master'

when cmake .. && make && cd -

-- Found glog    (include: /home/ly/anaconda3/envs/Wiki/include, library: /home/ly/anaconda3/envs/Wiki/lib/libglog.so)
-- Found gflags  (include: /home/ly/anaconda3/envs/Wiki/include, library: /home/ly/anaconda3/envs/Wiki/lib/libgflags.so)
-- Found pybind11: /home/ly/anaconda3/envs/Wiki/include (found version "2.9.1")
-- Autodetected CUDA architecture(s):  7.5 7.5 7.5 7.5 7.5 7.5 7.5 7.5
-- Configuring done
CMake Warning (dev) in src/CMakeLists.txt:
  Policy CMP0104 is not set: CMAKE_CUDA_ARCHITECTURES now detected for NVCC,
  empty CUDA_ARCHITECTURES not allowed.  Run "cmake --help-policy CMP0104"
  for policy details.  Use the cmake_policy command to set the policy and
  suppress this warning.

  CUDA_ARCHITECTURES is empty for target "graphvite".
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) in src/CMakeLists.txt:
  Policy CMP0104 is not set: CMAKE_CUDA_ARCHITECTURES now detected for NVCC,
  empty CUDA_ARCHITECTURES not allowed.  Run "cmake --help-policy CMP0104"
  for policy details.  Use the cmake_policy command to set the policy and
  suppress this warning.

  CUDA_ARCHITECTURES is empty for target "graphvite".
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Generating done
-- Build files have been written to: /data1/ly/small/graphvite/build
[ 11%] Performing download step (git clone) for 'faiss'
正克隆到 'faiss'...
fatal: 无效引用:master
CMake Error at /data1/ly/small/graphvite/build/faiss/tmp/faiss-gitclone.cmake:40 (message):
  Failed to checkout tag: 'master'


CMakeFiles/faiss.dir/build.make:96: recipe for target 'faiss/src/faiss-stamp/faiss-download' failed
make[2]: *** [faiss/src/faiss-stamp/faiss-download] Error 1
CMakeFiles/Makefile2:99: recipe for target 'CMakeFiles/faiss.dir/all' failed
make[1]: *** [CMakeFiles/faiss.dir/all] Error 2
Makefile:90: recipe for target 'all' failed
make: *** [all] Error 2

I tried "conda install -c conda-forge faiss-gpu", but it didn’t work. When I tried "conda install faiss-gpu cudatoolkit=11.1 -c pytorch-gpu",it showed "UnavailableInvalidChannel: The channel is not accessible or is invalid.".And how to solve this condition ?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source