-
Notifications
You must be signed in to change notification settings - Fork 99
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
Nightly build failure, Cuda backend, UVM enabled with deprecated code: error: namespace "KokkosSparse" has no member "create_mirror" #2455
Comments
The lines flagged by the compiler were due to namespace issues, when deprecated code is enabled the expected namespace was A couple different options worked to resolve the issue:
diff --git a/perf_test/sparse/KokkosSparse_spmv_struct.cpp b/perf_test/sparse/KokkosSparse_spmv_struct.cpp
index 9b11ee973..f53d45c07 100644
--- a/perf_test/sparse/KokkosSparse_spmv_struct.cpp
+++ b/perf_test/sparse/KokkosSparse_spmv_struct.cpp
@@ -244,7 +244,7 @@ int main(int argc, char **argv) {
if (check_errors) {
h_y_compare = Kokkos::create_mirror(y);
- typename matrix_type::StaticCrsGraphType::HostMirror h_graph = KokkosSparse::create_mirror(A.graph);
+ typename matrix_type::StaticCrsGraphType::HostMirror h_graph = create_mirror(A.graph);
typename matrix_type::values_type::HostMirror h_values = Kokkos::create_mirror_view(A.values);
// Error Check Gold Values
diff --git a/perf_test/sparse/KokkosSparse_spmv_struct_tuning.cpp b/perf_test/sparse/KokkosSparse_spmv_struct_tuning.cpp
index 0dce5ffc8..865c4ec5e 100644
--- a/perf_test/sparse/KokkosSparse_spmv_struct_tuning.cpp
+++ b/perf_test/sparse/KokkosSparse_spmv_struct_tuning.cpp
@@ -395,7 +395,7 @@ int main(int argc, char** argv) {
if (check_errors) {
h_y_compare = Kokkos::create_mirror(y);
- typename matrix_type::StaticCrsGraphType::HostMirror h_graph = KokkosSparse::create_mirror(A.graph);
+ typename matrix_type::StaticCrsGraphType::HostMirror h_graph = create_mirror(A.graph);
typename matrix_type::values_type::HostMirror h_values = Kokkos::create_mirror_view(A.values);
// Error Check Gold Values
diff --git a/perf_test/sparse/KokkosSparse_spmv_test.cpp b/perf_test/sparse/KokkosSparse_spmv_test.cpp
index 3db04e0cf..7ddff743e 100644
--- a/perf_test/sparse/KokkosSparse_spmv_test.cpp
+++ b/perf_test/sparse/KokkosSparse_spmv_test.cpp
@@ -64,7 +64,7 @@ SPMVTestData setup_test(spmv_additional_data* data, SPMVTestData::matrix_type A,
test_data.h_y = Kokkos::create_mirror_view(y);
test_data.h_y_compare = Kokkos::create_mirror(y);
- h_graph_type h_graph = KokkosSparse::create_mirror(test_data.A.graph);
+ h_graph_type h_graph = create_mirror(test_data.A.graph);
h_values_type h_values = Kokkos::create_mirror_view(test_data.A.values);
for (int i = 0; i < test_data.numCols; i++) {
diff --git a/sparse/src/KokkosSparse_StaticCrsGraph.hpp b/sparse/src/KokkosSparse_StaticCrsGraph.hpp
index c0174129c..d722039f4 100644
--- a/sparse/src/KokkosSparse_StaticCrsGraph.hpp
+++ b/sparse/src/KokkosSparse_StaticCrsGraph.hpp
@@ -30,6 +30,8 @@ using Kokkos::create_staticcrsgraph;
using Kokkos::GraphRowViewConst;
using Kokkos::maximum_entry;
using Kokkos::StaticCrsGraph;
+using Kokkos::create_mirror;
+using Kokkos::create_mirror_view;
} // namespace KokkosSparse
#else As another alternative, we could drop the deprecated code region altogether like Brian suggested here @lucbv do you have a preference? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nightly Cuda builds with UVM and deprecated code enabled have a couple remaining build failures following merge of #2419 (which got the nearly all jobs building again :)
Reproducer (blake H100 queue):
The text was updated successfully, but these errors were encountered: