STEllAR-GROUP / hpx-kokkos

HPX/Kokkos interoperability library
Boost Software License 1.0
6 stars 3 forks source link

Compilation issue #24

Open diehlpk opened 4 hours ago

diehlpk commented 4 hours ago
 hpx/kokkos/executors.hpp:14,
     355                     from /tmp/diehlpk/spack-stage/spack-stage-octotiger-master-ld3zojwbggsefkjgde6sufs63ynhc5hf/spack-src/src/unitiger/hydro_impl/hydro_k
            ernel_interface.cpp:9:
     356    /vast/home/diehlpk/spack/opt/spack/linux-rhel9-neoverse_v2/gcc-12.3.0/hpx-kokkos-0.4.0-34hym3x2bppvbsk6yi7rmnyhrlyuj27h/include/hpx/kokkos/make_instan
            ce.hpp: In function 'ExecutionSpace hpx::kokkos::detail::make_independent_execution_space_instance() [with ExecutionSpace = Kokkos::Experimental::HPX]
            ':
  >> 357    /vast/home/diehlpk/spack/opt/spack/linux-rhel9-neoverse_v2/gcc-12.3.0/hpx-kokkos-0.4.0-34hym3x2bppvbsk6yi7rmnyhrlyuj27h/include/hpx/kokkos/make_instan
            ce.hpp:73:64: error: converting to 'Kokkos::Experimental::HPX' from initializer list would use explicit constructor 'Kokkos::Experimental::HPX::HPX(in
            stance_mode)'
     358       73 |   return {Kokkos::Experimental::HPX::instance_mode::independent};
     359          |                                                                ^
  >> 360    make[2]: *** [CMakeFiles/hydrolib.dir/build.make:93: CMakeFiles/hydrolib.dir/src/unitiger/hydro_impl/hydro_kernel_interface.cpp.o] Error 1
     361    make[2]: Leaving directory '/ram/tmp/diehlpk/spack-stage/spack-stage-octotiger-master-ld3zojwbggsefkjgde6sufs63ynhc5hf/spack-src/spack-build'
  >> 362    make[1]: *** [CMakeFiles/Makefile2:221: CMakeFiles/hydrolib.dir/all] Error 2
     363    make[1]: Leaving directory '/ram/tmp/diehlpk/spack-stage/spack-stage-octotiger-master-ld3zojwbggsefkjgde6sufs63ynhc5hf/spack-src/spack-build'
  >> 364    make: *** [Makefile:139: all] Error 2
diehlpk commented 4 hours ago

Removing the curly parentheses (return Kokkos::Experimental::HPX::instance_mode::independent;) resolves the error.