Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Is compilation on 32 bit supported? #9274

Closed
nehaljwani opened this issue Jan 1, 2018 · 3 comments
Closed

Is compilation on 32 bit supported? #9274

nehaljwani opened this issue Jan 1, 2018 · 3 comments
Labels

Comments

@nehaljwani
Copy link
Contributor

Description

Tried compiling mxnet using gcc 7.2.0 (32-bit), build fails with 'out of memory error'

Build info (Required if built from source)

Compiler (gcc/clang/mingw/visual studio): gcc

MXNet commit hash: Using tag: 1.0.0

Build config:
After applying the patches at #9273

export MKLROOT="<path-to-full-mkl-32-bit>"
make -j${CPU_COUNT} \
  AR="$AR" \
  CC="$CC" \
  CXX="$CXX" \
  USE_CUDA=0 \
  USE_CUDNN=0 \
  USE_OPENCV=1 \
  USE_LAPACK=1 \
  USE_BLAS=mkl \
  USE_STATIC_MKL=NONE \
  USE_INTEL_PATH=NONE \
  USE_MKL2017=1 \
  USE_PROFILER=1 \
  USE_CPP_PACKAGE=1 \
  USE_SIGNAL_HANDLER=1 \
  ADD_CFLAGS="$CFLAGS" \
  ADD_LDFLAGS="$LDFLAGS" \
  USE_OPENMP=1 \
  USE_JEMALLOC=1 \
  VERBOSE=1

Error Message:

cc1plus: out of memory allocating 65536 bytes after a total of 3303088128 bytes
make: *** [Makefile:377: build/src/operator/tensor/indexing_op.o] Error 1

What have you tried to solve it?

  1. May not be relevant, but tried passing -ftrack-macro-expansion=0 to CFLAGS.
@dabraude
Copy link
Contributor

dabraude commented Jan 30, 2018

I was having trouble with windows 32bit and I found defining this
-DDMLC_CXX11_THREAD_LOCAL=0
seems to fix it (but it does generate warnings about not being suported), not sure if it stems from the same problem though.

@vdantu
Copy link
Contributor

vdantu commented Feb 27, 2018

@nehaljwani : Does this solve your issue?

@sandeep-krishnamurthy : Please label this as "Compilation Errors" and close this.

@vdantu
Copy link
Contributor

vdantu commented Feb 27, 2018

@sandeep-krishnamurthy : Sorry for the above .. Please label this "Build" , "Question" and close this

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants