mxnet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [incubator-mxnet] cyrusbehr commented on issue #17262: Unable to build / link mxnet against cuda 10.2
Date Mon, 27 Jan 2020 21:03:52 GMT
cyrusbehr commented on issue #17262: Unable to build / link mxnet against cuda 10.2
URL: https://github.com/apache/incubator-mxnet/issues/17262#issuecomment-578951508
 
 
   @litaotju I tried what you suggested, and added the following to the top of the cmake file:
   ```
   set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mcmodel=large")
   set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mcmodel=large")
   set(CMAKE_LINKER_FLAGS "${CMAKE_LINKER_FLAGS} -mcmodel=large")
   ```
   
   However, I still get the error:
   ```
   [ 95%] Linking CXX shared library libmxnet.so
   [13:01:14]  [Step 2/2] /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/crti.o:
In function `_init':
   [13:01:14]  [Step 2/2] (.init+0x7): relocation truncated to fit: R_X86_64_REX_GOTPCRELX
against undefined symbol `__gmon_start__'
   [13:01:14]  [Step 2/2] libmxnet.a(utils.cc.o): In function `void mxnet::op::CastStorageComputeImpl<mshadow::cpu>(mxnet::OpContext
const&, mxnet::NDArray const&, mxnet::NDArray const&)':
   [13:01:14]  [Step 2/2] utils.cc:(.text._ZN5mxnet2op22CastStorageComputeImplIN7mshadow3cpuEEEvRKNS_9OpContextERKNS_7NDArrayES9_[_ZN5mxnet2op22CastStorageComputeImplIN7mshadow3cpuEEEvRKNS_9OpContextERKNS_7NDArrayES9_]+0x2a40):
relocation truncated to fit: R_X86_64_TLSLD against symbol `guard variable for mxnet::TmpMemMgr::Get()::mgr'
defined in .tbss._ZGVZN5mxnet9TmpMemMgr3GetEvE3mgr[_ZGVZN5mxnet9TmpMemMgr3GetEvE3mgr] section
in libmxnet.a(utils.cc.o)
   [13:01:14]  [Step 2/2] utils.cc:(.text._ZN5mxnet2op22CastStorageComputeImplIN7mshadow3cpuEEEvRKNS_9OpContextERKNS_7NDArrayES9_[_ZN5mxnet2op22CastStorageComputeImplIN7mshadow3cpuEEEvRKNS_9OpContextERKNS_7NDArrayES9_]+0x2a8d):
relocation truncated to fit: R_X86_64_TLSLD against symbol `guard variable for mxnet::TmpMemMgr::Get()::mgr'
defined in .tbss._ZGVZN5mxnet9TmpMemMgr3GetEvE3mgr[_ZGVZN5mxnet9TmpMemMgr3GetEvE3mgr] section
in libmxnet.a(utils.cc.o)
   [13:01:14]  [Step 2/2] libmxnet.a(utils.cc.o):(.eh_frame+0x20): relocation truncated to
fit: R_X86_64_PC32 against `.text._ZNK4dnnl5error4whatEv'
   [13:01:14]  [Step 2/2] libmxnet.a(utils.cc.o):(.eh_frame+0x80): relocation truncated to
fit: R_X86_64_PC32 against `.text'
   [13:01:14]  [Step 2/2] libmxnet.a(utils.cc.o):(.eh_frame+0xcc): relocation truncated to
fit: R_X86_64_PC32 against `.text._ZN5mxnet2op8mxnet_op6KernelINS_6common16csr_indptr_checkEN7mshadow3cpuEE6LaunchIJPfPlllEEEbPNS5_6StreamIS6_EEmDpT_._omp_fn.1'
   [13:01:14]  [Step 2/2] libmxnet.a(utils.cc.o):(.eh_frame+0xfc): relocation truncated to
fit: R_X86_64_PC32 against `.text._ZN5mxnet2op8mxnet_op6KernelINS_6common13csr_idx_checkEN7mshadow3cpuEE6LaunchIJPfPlSA_lEEEbPNS5_6StreamIS6_EEmDpT_._omp_fn.2'
   [13:01:14]  [Step 2/2] libmxnet.a(utils.cc.o):(.eh_frame+0x12c): relocation truncated to
fit: R_X86_64_PC32 against `.text'
   [13:01:14]  [Step 2/2] libmxnet.a(utils.cc.o):(.eh_frame+0x178): relocation truncated to
fit: R_X86_64_PC32 against `.text._ZN5mxnet2op8mxnet_op6KernelINS_6common16csr_indptr_checkEN7mshadow3cpuEE6LaunchIJPdPlllEEEbPNS5_6StreamIS6_EEmDpT_._omp_fn.4'
   [13:01:14]  [Step 2/2] libmxnet.a(utils.cc.o):(.eh_frame+0x1a8): relocation truncated to
fit: R_X86_64_PC32 against `.text._ZN5mxnet2op8mxnet_op6KernelINS_6common13csr_idx_checkEN7mshadow3cpuEE6LaunchIJPdPlSA_lEEEbPNS5_6StreamIS6_EEmDpT_._omp_fn.5'
   [13:01:14]  [Step 2/2] libmxnet.a(utils.cc.o):(.eh_frame+0x1f8): additional relocation
overflows omitted from the output
   [13:01:14]  [Step 2/2] libmxnet.so: PC-relative offset overflow in PLT entry for `_ZN5mxnet2op8mxnet_op6KernelINS0_9pick_gradILi3ELb0EEEN7mshadow3gpuEE6LaunchIJPdS9_PfiiNS5_5ShapeILi3EEESC_EEEvPNS5_6StreamIS6_EEiDpT_'
   [13:01:14]  [Step 2/2] collect2: error: ld returned 1 exit status
   [13:01:14]  [Step 2/2] CMakeFiles/mxnet.dir/build.make:126: recipe for target 'libmxnet.so'
failed
   [13:01:14]  [Step 2/2] make[2]: *** [libmxnet.so] Error 1
   [13:01:14]  [Step 2/2] CMakeFiles/Makefile2:144: recipe for target 'CMakeFiles/mxnet.dir/all'
failed
   [13:01:14]  [Step 2/2] make[1]: *** [CMakeFiles/mxnet.dir/all] Error 2
   [13:01:14]  [Step 2/2] make[1]: *** Waiting for unfinished jobs....
   [13:01:18]  [Step 2/2] [ 95%] Linking CUDA device code CMakeFiles/mxnet_unit_tests.dir/cmake_device_link.o
   [13:01:38]  [Step 2/2] [ 95%] Linking CXX executable mxnet_unit_tests
   ```

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message