Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.
7944 Discussions

Regarding rnnlib compilation failure with intel compilers

psing51
New Contributor I
401 Views

I am facing errors while compiling rnnlib with intel compilers, whereas the same file with gcc coompiles fine.

[puneets.vfaculty@mic001 src]$ g++ -DHAVE_CONFIG_H -I. -I..   -I/home/cc/vfaculty/puneets.vfaculty/ScientificPython/rnnlibDeps/include -I/home/apps/netcdf/netcdf_cxx_openmpi_gcc/include/ -I/home/apps/netcdf/netcdf_c_openmpi_gcc/include/  -fPIC -MT Main.o -MD -MP -MF .deps/Main.Tpo -c -o Main.o Main.cpp
[puneets.vfaculty@mic001 src]$ mpiicpc -DHAVE_CONFIG_H -I. -I..   -I/home/cc/vfaculty/puneets.vfaculty/ScientificPython/rnnlibDeps/include -I/home/apps/netcdf/netcdf_cxx_openmpi_gcc/include/ -I/home/apps/netcdf/netcdf_c_openmpi_gcc/include/  -fPIC -MT Main.o -MD -MP -MF .deps/Main.Tpo -c -o Main.o Main.cpp
In file included from /home/cc/vfaculty/puneets.vfaculty/ScientificPython/rnnlibDeps/include/boost/bimap/relation/mutant_relation.hpp(33),
                 from /home/cc/vfaculty/puneets.vfaculty/ScientificPython/rnnlibDeps/include/boost/bimap/detail/bimap_core.hpp(38),
                 from /home/cc/vfaculty/puneets.vfaculty/ScientificPython/rnnlibDeps/include/boost/bimap/bimap.hpp(61),
                 from /home/cc/vfaculty/puneets.vfaculty/ScientificPython/rnnlibDeps/include/boost/bimap.hpp(13),
                 from Helpers.hpp(31),
                 from MultiArray.hpp(30),
                 from SeqBuffer.hpp(21),
                 from Layer.hpp(22),
                 from InputLayer.hpp(21),
                 from Mdrnn.hpp(21),
                 from MultilayerNet.hpp(21),
                 from Main.cpp(20):
/home/cc/vfaculty/puneets.vfaculty/ScientificPython/rnnlibDeps/include/boost/bimap/tags/support/tag_of.hpp(57): warning #1170: invalid redeclaration of nested class
      BOOST_BIMAP_STATIC_ERROR( USING_TAG_OF_WITH_AN_UNTAGGED_TYPE, (Type) );
      ^
In file included from MultilayerNet.hpp(22),
                 from Main.cpp(20):
ClassificationLayer.hpp(155): error: expression must be an lvalue
  		((View<real_t>&)outputErrors[pt])[0] = (targetClass ? -(1/targetProb) : (1/targetProb));

Trainer.hpp(676): warning #858: type qualifier on return type is meaningless
      const void revert_distortions()
      ^

compilation aborted for Main.cpp (code 2)


Same error with icpc. Is there anything (flag/switches) which i can do to get the compilation proceed with intel?
Eagerly awaiting your replies.


0 Kudos
0 Replies
Reply