diff --git a/sparse/impl/KokkosSparse_bspgemm_impl_kkmem.hpp b/sparse/impl/KokkosSparse_bspgemm_impl_kkmem.hpp index 1e2e598151..f76e2eb527 100644 --- a/sparse/impl/KokkosSparse_bspgemm_impl_kkmem.hpp +++ b/sparse/impl/KokkosSparse_bspgemm_impl_kkmem.hpp @@ -376,7 +376,7 @@ struct KokkosBSPGEMM thread_shmem_key_size) { - volatile nnz_lno_t *tmp = NULL; + nnz_lno_t *tmp = NULL; // size_t tid = get_thread_id(row_index); // the code gets internal compiler error on gcc 4.7.2 // assuming that this part only runs on GPUs for now, below fix @@ -386,10 +386,7 @@ struct KokkosBSPGEMM max_first_level_hash_size) { { while (tmp == NULL) { Kokkos::single( Kokkos::PerTeam(teamMember), - [&](volatile nnz_lno_t *&memptr) { - memptr = (volatile nnz_lno_t *)(memory_space.allocate_chunk(row_index)); - }, - tmp); + [&](nnz_lno_t *&memptr) { memptr = (nnz_lno_t *)(memory_space.allocate_chunk(row_index)); }, tmp); } global_acc_row_keys = (nnz_lno_t *)(tmp); global_acc_row_vals = KokkosKernels::Impl::alignPtrTo(tmp + pow2_hash_size);