Sacado: CUDA build errors in test with RDC ON
Created by: mhoemmen
@trilinos/sacado
With a static CUDA build and with relocatable device code (RDC) enabled, I get the following build errors:
/tmp/tmpxft_00001079_00000000-2_Sacado_Fad_Kokkos_CommTests_Serial_dlink.reg.c: At global scope:
.../nvidia/cuda_9.0.176/bin/crt/link.stub:92:118: error: redefinition of ‘const unsigned char def_module_id_str_48_tmpxft_00007161_00000000_6_Teuchos_Utils_cpp1_ii_dbeaaeb9 []’
static const unsigned char __DEFSTRNAME(id) [] __attribute__((aligned(1))) __attribute__((section ("__nv_module_id"))) = "def " __TO_STRING(id); \
^
/tmp/tmpxft_00001079_00000000-2_Sacado_Fad_Kokkos_CommTests_Serial_dlink.reg.c:145:1: note: in expansion of macro ‘DEFINE_REGISTER_FUNC’
DEFINE_REGISTER_FUNC(_48_tmpxft_00007161_00000000_6_Teuchos_Utils_cpp1_ii_dbeaaeb9)
^
Have y'all ever seen those? Here are my relevant build options:
-D CMAKE_BUILD_TYPE=RELEASE
-D BUILD_SHARED_LIBS=OFF
-D Trilinos_ENABLE_EXPLICIT_INSTANTIATION=ON
-D Trilinos_ENABLE_OpenMP=OFF
-D TPL_ENABLE_Pthread=OFF
-D Trilinos_ENABLE_Sacado=ON
-D Trilinos_ENABLE_Stokhos=OFF
-D Kokkos_ENABLE_Serial=ON
-D Kokkos_ENABLE_OpenMP=OFF
-D Kokkos_ENABLE_Pthread=OFF
-D Kokkos_ENABLE_Cuda=ON
-D Kokkos_ENABLE_Cuda_UVM=ON
-D Kokkos_ENABLE_Cuda_Lambda=ON
-D Kokkos_ENABLE_Cuda_Relocatable_Device_Code=ON
-D TPL_ENABLE_CUDA=ON
-D KOKKOS_ARCH="Pascal60"
I'm using CUDA 9.0.176, GCC 4.9.3, OpenMPI 1.10.2, and CMake 3.8.2.
Sierra (in particular, Aria) needs RDC to work.