matteosal opened a new issue #20301:
URL: https://github.com/apache/incubator-mxnet/issues/20301


   `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 \
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@mxnet.apache.org
For additional commands, e-mail: issues-h...@mxnet.apache.org

Reply via email to