ascent icon indicating copy to clipboard operation
ascent copied to clipboard

Compilation error - cray compilers

Open WillTrojak opened this issue 1 year ago • 1 comments

I'm trying to compile the current develop branch with cray compilers, but I'm getting the following error and many more like it:

[ 89%] Linking CXX executable ascent_about
ld.lld: error: undefined reference due to --no-allow-shlib-undefined: _cray$mt_kmpc_fork_call_with_flags
>>> referenced by ../../lib/libascent.so

Has anyone had any luck compiling the recent version of ascent with cray? I didn't have an issue with Ascent from around Nov 2023, has something changed in the cmake that might be causing this?

I'm using VTKm 2.1.0 and the current develop branch of conduit together with the following packages:

PrgEnv-cray/8.3.3
craype/2.7.30
cray-hdf5-parallel/1.12.2.9
libfabric/1.15.2.0
cray-libsci/23.12.5
craype-network-ofi
cray-dsmml/0.2.2
cce/17.0.0
cray-pmi/6.1.13
cray-mpich/8.1.28 

and below is this cmake command I ran for ascent:

CC=$(which mpicc) CXX=$(which mpic++) \
cmake ../src/ \
    -DCMAKE_VERBOSE_MAKEFILE=OFF \
    -DCMAKE_BUILD_TYPE=Release \
    -DBUILD_SHARED_LIBS=ON \
    -DCMAKE_INSTALL_PREFIX=/some/path/ascent/0.9.3 \
    -DENABLE_TESTS=OFF \
    -DENABLE_MPI=ON \
    -DENABLE_FIND_MPI=OFF \
    -DENABLE_FORTRAN=OFF \
    -DENABLE_PYTHON=OFF \
    -DCONDUIT_DIR=/some/path/to/conduit/0.9.1-2/ \
    -DVTKM_DIR=/some/path/to/vtkm/2.1.0/ \
    -DENABLE_VTKH=ON \
    -DVTKH_ENABLE_FILTER_CONTOUR_TREE=OFF \
    -DBLT_CXX_STD="c++14" \
    -DENABLE_APCOMP=OFF \
    -DENABLE_DRAY=OFF

WillTrojak avatar May 16 '24 10:05 WillTrojak

This looks like an issue related to linking cray openmp runtime. Can you let me know what

make VERBOSE=1

Output looks like for ascent_about

cyrush avatar May 16 '24 20:05 cyrush