This repository was archived by the owner on Nov 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
This repository was archived by the owner on Nov 17, 2023. It is now read-only.
batch_dot operator crash #20301
Copy link
Copy link
Closed
Labels
Description
batch_dot seems completely broken.
import mxnet as mx
sym = mx.sym.batch_dot(mx.sym.Variable('in1'), mx.sym.Variable('in2'))
ex = sym._bind(
mx.cpu(),
{'in1': mx.nd.ones((2, 3, 4)), 'in2': mx.nd.ones((2, 4, 5))}
)
ex.forward()
Running this script produces:
[14:24:17] /home/matteo/Git/mxnet-build/Build/Linux-x86-64/MKL/mxnet/src/storage/storage.cc:199: Using Pooled (Naive) StorageManager for CPU
Fatal Error: Segmentation fault
Fatal Error: Segmentation fault
Fatal Error: Segmentation fault
Fatal Error: Segmentation fault
Fatal Error: Segmentation fault
Fatal Error: Segmentation fault
Fatal Error: Segmentation fault
Stack trace:
Stack trace:
Segmentation fault (core dumped)
Maybe the problem is in my build. I'm building master from source with these settings (linking to MKL 2019.4):
`# GENERAL FLAGS` \
-DCMAKE_INSTALL_PREFIX=$output_dir \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_SKIP_BUILD_RPATH=On \
-DUSE_OPENCV=OFF \
-DUSE_F16C=Off `# float16 support`\
-DUSE_INT64_TENSOR_SIZE=OFF \
-DCMAKE_C_FLAGS_RELEASE="-DNDEBUG" \
-DCMAKE_CXX_FLAGS_RELEASE="-DNDEBUG" \
`# MATH BACKENDS` \
-DBLAS=MKL \
-DUSE_LAPACK=OFF \
-DUSE_ONEDNN=OFF \
-DBLA_VENDOR="Intel10_64ilp" \
-DBLA_STATIC=OFF \
-DMKL_USE_SINGLE_DYNAMIC_LIBRARY=OFF \
-DMKL_INCLUDE_DIR=$mkl_dir \
-DBLAS_LIBRARIES="$mkl_dir/libmkl_def.so;$mkl_dir/libmkl_intel_ilp64.so;$mkl_dir/libmkl_core.so;$mkl_dir/libmkl_intel_thread.so;$mkl_dir/libiomp5.so" \
`# OPENMP` \
-DUSE_OPENMP=ON \
-DOpenMP_C_FLAGS="-I$mkl_dir" \
-DOpenMP_C_LIB_NAMES="libiomp5" \
-DOpenMP_CXX_FLAGS="-I$mkl_dir" \
-DOpenMP_CXX_LIB_NAMES="libiomp5" \
-DOpenMP_libiomp5_LIBRARY="$mkl_dir/libiomp5.so" \
`# CUDA` \
-DUSE_CUDA=OFF \
bartekkuncer