Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kokos::Min and Kokkos::Max are not being used as defined #324

Open
dogunter opened this issue Apr 13, 2023 · 0 comments
Open

Kokos::Min and Kokkos::Max are not being used as defined #324

dogunter opened this issue Apr 13, 2023 · 0 comments

Comments

@dogunter
Copy link

Kokkos::Min and Kokkos::Max are defined in kokkos/src/Kokkos_Parallel_Reduce.hpp but they are not used in that context by RAJAPerf, leading to these errors when building.

$ cmake -DENABLE_KOKKOS=On ..
$ make -j
...
Building CXX object src/basic-kokkos/CMakeFiles/basic-kokkos.dir/REDUCE3_INT-Kokkos.cpp.o
"/projects/icapt/dog/kokkos/testing/RAJAPerf/src/basic-kokkos/REDUCE3_INT-Kokkos.cpp", line 58: error: no instance of constructor "Kokkos::Min<Scalar, Space>::Min [with Scalar=rajaperf::Int_type, Space=Kokkos::HostSpace]" matches the argument list
            argument types are: (rajaperf::Int_type, rajaperf::Int_type)
        m_vmin = Kokkos::Min<Int_type>(m_vmin, static_cast<Int_type>(min_value));
                 ^

"/projects/icapt/dog/kokkos/testing/RAJAPerf/src/basic-kokkos/REDUCE3_INT-Kokkos.cpp", line 59: error: no instance of constructor "Kokkos::Max<Scalar, Space>::Max [with Scalar=rajaperf::Int_type, Space=Kokkos::HostSpace]" matches the argument list
            argument types are: (rajaperf::Int_type, rajaperf::Int_type)
        m_vmax = Kokkos::Max<Int_type>(m_vmax, static_cast<Int_type>(max_value));
                 ^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant