mpi+omp+target fails to link the lookup table during compilation
3 warnings generated. @E@nvlink error : Undefined reference to '_ZN6sphexa13lookup_tablesL20wharmonicLookupTableE' in '/tmp/cooltmp-a1af33/tmp_cce_omp_offload_linker__sqpatch.o__sec.cubin' @E@nvlink error : Undefined reference to '_ZN6sphexa13lookup_tablesL30wharmonicDerivativeLookupTableE' in '/tmp/cooltmp-a1af33/tmp_cce_omp_offload_linker__sqpatch.o__sec.cubin' clang-9: error: linker command failed with exit code 255 (use -v to see invocation) make: *** [Makefile:77: mpi+omp+target] Error 255
Proposed solution: make the lookup table a local variable instead of a global variable. We need to pass it on to the sph kernels, somehow.