Closed dineshadepu closed 1 month ago
The installation works with the CPU build, giving the same warning.
| HPC LAB UoS => make install
[ 1%] Building CXX object example/core_tutorial/01_hello_world/CMakeFiles/HelloWorld.dir/hello_world.cpp.o
[ 3%] Linking CXX executable HelloWorld
[ 3%] Built target HelloWorld
[ 5%] Building CXX object example/core_tutorial/02_tuple/CMakeFiles/Tuple.dir/tuple_example.cpp.o
[ 6%] Linking CXX executable Tuple
[ 6%] Built target Tuple
[ 8%] Building CXX object example/core_tutorial/03_struct_of_arrays/CMakeFiles/StructOfArrays.dir/soa_example.cpp.o
[ 10%] Linking CXX executable StructOfArrays
[ 10%] Built target StructOfArrays
[ 12%] Building CXX object example/core_tutorial/04_aosoa_advanced_unmanaged/CMakeFiles/AdvancedUnmanagedAoSoA.dir/advanced_aosoa_unmanaged.cpp.o
[ 13%] Linking CXX executable AdvancedUnmanagedAoSoA
[ 13%] Built target AdvancedUnmanagedAoSoA
[ 15%] Building CXX object example/core_tutorial/04_aosoa/CMakeFiles/ArrayOfStructsOfArrays.dir/aosoa_example.cpp.o
[ 17%] Linking CXX executable ArrayOfStructsOfArrays
[ 17%] Built target ArrayOfStructsOfArrays
[ 18%] Building CXX object example/core_tutorial/05_slice/CMakeFiles/Slice.dir/slice_example.cpp.o
[ 20%] Linking CXX executable Slice
[ 20%] Built target Slice
[ 22%] Building CXX object example/core_tutorial/06_deep_copy/CMakeFiles/DeepCopy.dir/deep_copy_example.cpp.o
[ 24%] Linking CXX executable DeepCopy
lto-wrapper: warning: using serial compilation of 2 LTRANS jobs
[ 24%] Built target DeepCopy
[ 25%] Building CXX object example/core_tutorial/07_sorting/CMakeFiles/Sorting.dir/sorting_example.cpp.o
[ 27%] Linking CXX executable Sorting
The warning turns into an error for the GPU build
lto-wrapper: warning: using serial compilation of 2 LTRANS jobs
I'm not familiar with the error, but a quick search shows that maybe --disable-flto
may help at configuration time. This is a more general compilation issue than Cabana, but let me know if you find anything out that we can do to help on our side.
Thank you for the suggestion, @streeve . I have updated my nvidia drivers and cuda version and even my gcc, but somehow this error doesn't go away. I do not have much experience with cmakelists.txt
. Can you please tell me how I can pass this flag to the current build process? Will be very helpful. I have tried few ways, but couldn't get it working.
This bug seems to be occuring in lot of other places. I found a similar report here: https://gromacs.bioexcel.eu/t/error-installing-gromacs-2022-c-one-definition-rule/5322/10, where the user is facing similar problem.
The solution is as follows:
After running the typical cmake command to install cabana,
cmake -D CMAKE_BUILD_TYPE="Release" -D CMAKE_PREFIX_PATH="$KOKKOS_INSTALL_DIR;$SILO_INSTALL_DIR;$SILO_INCLUDE_DIR;$SILO_LIBRARY;$HDF_INSTALL_DIR" -D CMAKE_INSTALL_PREFIX=$CABANA_INSTALL_DIR -D CMAKE_CXX_COMPILER=$KOKKOS_SRC_DIR/bin/nvcc_wrapper -D Cabana_REQUIRE_CUDA=ON -D Cabana_REQUIRE_MPI=ON -D Cabana_ENABLE_EXAMPLES=ON -D Cabana_ENABLE_TESTING=OFF -D Cabana_REQUIRE_SILO=ON -D Cabana_REQUIRE_HDF5=ON -D Cabana_ENABLE_PERFORMANCE_TESTING=OFF -D Cabana_ENABLE_CAJITA=ON ..;
We should again run the following:
cmake .. -DMPI_CXX_COMPILE_OPTIONS=""
This will not result in any lto
warning or errors
adepudinesh@UoSHPCLab (master *) /home/adepudinesh/post_doc/softwares/Cabana/build $
| HPC LAB UoS => make install
[ 1%] Building CXX object example/core_tutorial/01_hello_world/CMakeFiles/HelloWorld.dir/hello_world.cpp.o
[ 3%] Linking CXX executable HelloWorld
[ 3%] Built target HelloWorld
[ 5%] Building CXX object example/core_tutorial/02_tuple/CMakeFiles/Tuple.dir/tuple_example.cpp.o
[ 6%] Linking CXX executable Tuple
[ 6%] Built target Tuple
[ 8%] Building CXX object example/core_tutorial/03_struct_of_arrays/CMakeFiles/StructOfArrays.dir/soa_example.cpp.o
[ 10%] Linking CXX executable StructOfArrays
[ 10%] Built target StructOfArrays
[ 11%] Building CXX object example/core_tutorial/04_aosoa_advanced_unmanaged/CMakeFiles/AdvancedUnmanagedAoSoA.dir/advanced_aosoa_unmanaged.cpp.o
[ 13%] Linking CXX executable AdvancedUnmanagedAoSoA
[ 13%] Built target AdvancedUnmanagedAoSoA
[ 15%] Building CXX object example/core_tutorial/04_aosoa/CMakeFiles/ArrayOfStructsOfArrays.dir/aosoa_example.cpp.o
[ 16%] Linking CXX executable ArrayOfStructsOfArrays
[ 16%] Built target ArrayOfStructsOfArrays
[ 18%] Building CXX object example/core_tutorial/05_slice/CMakeFiles/Slice.dir/slice_example.cpp.o
[ 20%] Linking CXX executable Slice
[ 20%] Built target Slice
[ 21%] Building CXX object example/core_tutorial/06_deep_copy/CMakeFiles/DeepCopy.dir/deep_copy_example.cpp.o
[ 23%] Linking CXX executable DeepCopy
[ 23%] Built target DeepCopy
[ 25%] Building CXX object example/core_tutorial/07_sorting/CMakeFiles/Sorting.dir/sorting_example.cpp.o
[ 26%] Linking CXX executable Sorting
[ 26%] Built target Sorting
[ 28%] Building CXX object example/core_tutorial/08_linked_cell_list/CMakeFiles/LinkedCellList.dir/linked_cell_list_example.cpp.o
[ 30%] Linking CXX executable LinkedCellList
[ 30%] Built target LinkedCellList
Glad I am able to fix it.
Thank you very much. :) Closing it now.
Hi all,
I am reinstalling Cabana, with all the latest, including the updated Kokkos and Cabana. I was able to install kokkos successfully. However, I am encountering some issues with Cabana. Can you please help me out with this issue. Here are the details.
I have installed the latest cuda version, 12.4.
The
cmake
command I used for isAfter running
make install
, I get the following output after some compilationMany thanks :)