Closed luomingshuang closed 2 years ago
Please do
cd build
make -j
You have to run make
after running cmake
.
Ok. But it seems there are still some errors in the make -j
process.
The part of log which records the errors as follows:
luomingshuang@de-74279-k2-train-2-0815224919-75d558775b-mmnv8:/ceph-meixu/luomingshuang/optimized_transducer/build$ make -j
Scanning dependencies of target optimized_transducer_core_cuda
[ 22%] Building CUDA object optimized_transducer/csrc/CMakeFiles/optimized_transducer_core_cuda.dir/cuda.cu.o
[ 22%] Building CUDA object optimized_transducer/csrc/CMakeFiles/optimized_transducer_core_cuda.dir/kernels.cu.o
[ 33%] Linking CUDA device code CMakeFiles/optimized_transducer_core_cuda.dir/cmake_device_link.o
[ 44%] Linking CUDA shared library ../../lib/liboptimized_transducer_core_cuda.so
[ 44%] Built target optimized_transducer_core_cuda
Scanning dependencies of target optimized_transducer_core
[ 66%] Building CXX object optimized_transducer/csrc/CMakeFiles/optimized_transducer_core.dir/transducer-loss.cc.o
[ 66%] Building CXX object optimized_transducer/csrc/CMakeFiles/optimized_transducer_core.dir/cpu.cc.o
[ 77%] Linking CXX shared library ../../lib/liboptimized_transducer_core.so
[ 77%] Built target optimized_transducer_core
Scanning dependencies of target _optimized_transducer
[ 88%] Building CXX object optimized_transducer/python/csrc/CMakeFiles/_optimized_transducer.dir/optimized_transducer.cc.o
In file included from /ceph-meixu/luomingshuang/anaconda3/envs/k2-python/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3:0,
from /ceph-meixu/luomingshuang/anaconda3/envs/k2-python/lib/python3.8/site-packages/torch/include/torch/script.h:3,
from /ceph-meixu/luomingshuang/optimized_transducer/optimized_transducer/csrc/transducer-loss.h:7,
from /ceph-meixu/luomingshuang/optimized_transducer/optimized_transducer/python/csrc/optimized_transducer.cc:7:
/ceph-meixu/luomingshuang/anaconda3/envs/k2-python/lib/python3.8/site-packages/torch/include/ATen/ATen.h:4:2: error: #error C++14 or later compatible compiler is required to use ATen.
#error C++14 or later compatible compiler is required to use ATen.
^~~~~
In file included from /ceph-meixu/luomingshuang/anaconda3/envs/k2-python/lib/python3.8/site-packages/torch/include/c10/util/ArrayRef.h:19:0,
from /ceph-meixu/luomingshuang/anaconda3/envs/k2-python/lib/python3.8/site-packages/torch/include/c10/core/DispatchKey.h:7,
from /ceph-meixu/luomingshuang/anaconda3/envs/k2-python/lib/python3.8/site-packages/torch/include/c10/core/Backend.h:4,
from /ceph-meixu/luomingshuang/anaconda3/envs/k2-python/lib/python3.8/site-packages/torch/include/c10/core/Layout.h:3,
from /ceph-meixu/luomingshuang/anaconda3/envs/k2-python/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:4,
from /ceph-meixu/luomingshuang/anaconda3/envs/k2-python/lib/python3.8/site-packages/torch/include/ATen/Tensor.h:3,
.......
So should
I install the optimized_transducer as follows:
The cmake log as follows:
But when I use
python optimized_transducer/python/tests/test_compute_transducer_loss.py
for testing, there is an error as follows:Hope to know how I can solve it. Thanks!