[Openmp-dev] -O0 build fails with OpenMP offload flags

Itaru Kitayama via Openmp-dev openmp-dev at lists.llvm.org
Wed Oct 17 03:49:25 PDT 2018


Hi,
An -O2 build with OpenMP offload flags finishes just fine without an
issue, but changing the optimization level down to -O0 fails leaving
error message like below:

$ make
[  2%] Built target nestutil
[  3%] Linking CXX shared library libsli.so
nvlink error   : Undefined reference to '_ZN14SLIInterpreter9ArraytypeE' in
'/tmp/arraydatum-c7397d.cubin'
nvlink error   : Undefined reference to
'_ZN14SLIInterpreter13ProceduretypeE' in '/tmp/arraydatum-c7397d.cubin'
nvlink error   : Undefined reference to
'_ZN14SLIInterpreter16LitproceduretypeE' in '/tmp/arraydatum-c7397d.cubin'
nvlink error   : Undefined reference to
'_ZN14SLIInterpreter13IntVectortypeE' in '/tmp/arraydatum-c7397d.cubin'
nvlink error   : Undefined reference to
'_ZN14SLIInterpreter16DoubleVectortypeE' in '/tmp/arraydatum-c7397d.cubin'
nvlink error   : Undefined reference to
'_ZN14SLIInterpreter14DictionarytypeE' in '/tmp/dictdatum-a46a15.cubin'
nvlink error   : Undefined reference to '_ZN14SLIInterpreter10DoubletypeE'
in '/tmp/doubledatum-440a29.cubin'
nvlink error   : Undefined reference to '_ZN14SLIInterpreter11IntegertypeE'
in '/tmp/integerdatum-f95037.cubin'
nvlink error   : Undefined reference to '_ZN14SLIInterpreter11IstreamtypeE'
in '/tmp/iostreamdatum-465d86.cubin'
nvlink error   : Undefined reference to
'_ZN14SLIInterpreter12XIstreamtypeE' in '/tmp/iostreamdatum-465d86.cubin'
nvlink error   : Undefined reference to '_ZN14SLIInterpreter11OstreamtypeE'
in '/tmp/iostreamdatum-465d86.cubin'
nvlink error   : Undefined reference to '_ZN14SLIInterpreter8NametypeE' in
'/tmp/namedatum-b639e8.cubin'
nvlink error   : Undefined reference to '_ZN14SLIInterpreter11LiteraltypeE'
in '/tmp/namedatum-b639e8.cubin'
nvlink error   : Undefined reference to '_ZN12RegexpModule9RegexTypeE' in
'/tmp/sliregexp-7a425f.cubin'
nvlink error   : Undefined reference to '_ZN14SLIInterpreter10StringtypeE'
in '/tmp/stringdatum-11ea81.cubin'
nvlink error   : Undefined reference to '_ZN14SLIInterpreter10SymboltypeE'
in '/tmp/symboldatum-51e40a.cubin'
clang-8: error: nvlink command failed with exit code 255 (use -v to see
invocation)
make[2]: *** [sli/libsli.so] Error 255
make[2]: *** Deleting file `sli/libsli.so'
make[1]: *** [sli/CMakeFiles/sli_lib.dir/all] Error 2
make: *** [all] Error 2

Steps to reproduce:
$ git clone https://github.com/ikitayama/nest-simulator
$ cmake -DCMAKE_TOOLCHAIN_FILE=Platform/JURON_Clang
-DCMAKE_INSTALL_PREFIX=/path/to/thebinary -Dwith-gsl=ON -Dwith-openmp=ON
-Dwith-mpi=OFF -Dwith-python=OFF -Dwith-offload=ON
~/projects/nest-simulator/
$ make -j8
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/openmp-dev/attachments/20181017/d05afae9/attachment.html>


More information about the Openmp-dev mailing list