Ref UCL-CCS/HemePure#34
I'm having a similar issue when building dependencies for HemePure-GPU with the hipcc compiler on the Cosma system.
I'm using
module load hipcc/6.3amd
module load openmpi/5.0.3
cmake .. -DCMAKE_C_COMPILER=hipcc -DCMAKE_CXX_COMPILER=hipcc
make
which goes on to compile the threaded libctemplate_* objects and fails with
CXXLD libctemplate.la
./libtool: eval: line 958: syntax error near unexpected token `|'
./libtool: eval: line 958: `/usr/bin/nm -B .libs/libctemplate_la-arena.o .libs/libctemplate_la-per_expand_data.o .libs/libctemplate_la-template.o .libs/libctemplate_la-template_annotator.o .libs/libctemplate_la-template_cache.o .libs/libctemplate_la-template_dictionary.o .libs/libctemplate_la-template_modifiers.o .libs/libctemplate_la-template_namelist.o .libs/libctemplate_la-template_pathops.o .libs/libctemplate_la-template_string.o .libs/libctemplate_la-htmlparser.o .libs/libctemplate_la-jsparser.o .libs/libctemplate_la-statemachine.o | | /usr/bin/sed 's/.* //' | sort | uniq > .libs/libctemplate.exp'
make[4]: *** [Makefile:1325: libctemplate.la] Error 2
make[3]: *** [Makefile:1202: all] Error 2
make[2]: *** [CMakeFiles/CTemplate.dir/build.make:86: CTemplate-prefix/src/CTemplate-stamp/CTemplate-build] Error 2
make[1]: *** [CMakeFiles/Makefile2:141: CMakeFiles/CTemplate.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
For reference, compiling with cmake .. -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ and
Currently Loaded Modulefiles:
1) cosma/2024(default) 3) armforge/23.1.0 5) gadgetviewer/1.2.0 7) gnu_comp/14.1.0(default) 9) nvhpc/25.3
2) python/3.12.4(default) 4) hdfview/3.3.2 6) utils/202402 8) openmpi/5.0.3(default)
compiles the libctemplate_nothreads_* objects and completes successfully. I will see if I can understand where the choice of threads vs nothreads is made.
Ref UCL-CCS/HemePure#34
I'm having a similar issue when building dependencies for
HemePure-GPUwith thehipcccompiler on the Cosma system.I'm using
which goes on to compile the threaded
libctemplate_*objects and fails withFor reference, compiling with
cmake .. -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++andcompiles the
libctemplate_nothreads_*objects and completes successfully. I will see if I can understand where the choice of threads vs nothreads is made.