Skip to content

Commit

Permalink
Merge pull request #190 from LLNL/task/update-umpire-raja
Browse files Browse the repository at this point in the history
Update Umpire, RAJA, and BLT
  • Loading branch information
davidbeckingsale authored Aug 19, 2021
2 parents 46aae8f + 7092f2a commit 13dae2e
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 24 deletions.
19 changes: 4 additions & 15 deletions .gitlab/quartz-jobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,27 +19,16 @@ gcc_8_1_0:
SPEC: "%[email protected]"
extends: .build_and_test_on_quartz

icpc_17_0_2:
variables:
SPEC: "%[email protected]"
extends: .build_and_test_on_quartz

icpc_18_0_2:
variables:
SPEC: " tests=none %[email protected]"
extends: .build_and_test_on_quartz
# icpc_18_0_2:
# variables:
# SPEC: " tests=none %[email protected]"
# extends: .build_and_test_on_quartz

icpc_19_1_0:
variables:
SPEC: "%[email protected]"
extends: .build_and_test_on_quartz

pgi_20_1:
variables:
SPEC: " %[email protected]"
PGI_LOCALRC: /collab/usr/global/tools/pgi/etc/localrc-gcc-4.9.3
extends: .build_and_test_on_quartz

# EXTRAS

gcc_4_9_3:
Expand Down
6 changes: 3 additions & 3 deletions examples/chai-umpire-allocators.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// SPDX-License-Identifier: BSD-3-Clause
//////////////////////////////////////////////////////////////////////////////
#include "umpire/ResourceManager.hpp"
#include "umpire/strategy/DynamicPool.hpp"
#include "umpire/strategy/QuickPool.hpp"

#include "chai/ManagedArray.hpp"
#include "../src/util/forall.hpp"
Expand All @@ -18,12 +18,12 @@ int main(int CHAI_UNUSED_ARG(argc), char** CHAI_UNUSED_ARG(argv))
auto& rm = umpire::ResourceManager::getInstance();

auto cpu_pool =
rm.makeAllocator<umpire::strategy::DynamicPool>("cpu_pool",
rm.makeAllocator<umpire::strategy::QuickPool>("cpu_pool",
rm.getAllocator("HOST"));

#if defined(CHAI_ENABLE_CUDA) || defined(CHAI_ENABLE_HIP)
auto gpu_pool =
rm.makeAllocator<umpire::strategy::DynamicPool>("gpu_pool",
rm.makeAllocator<umpire::strategy::QuickPool>("gpu_pool",
rm.getAllocator("DEVICE"));
#endif

Expand Down
4 changes: 2 additions & 2 deletions src/chai/ManagedArrayView.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ using ManagedArrayView =


template <typename ValueType, typename LayoutType, typename... IndexTypes>
using TypedManagedArrayView = RAJA::TypedViewBase<ValueType,
using TypedManagedArrayView = RAJA::internal::TypedViewBase<ValueType,
chai::ManagedArray<ValueType>,
LayoutType,
IndexTypes...>;
camp::list<IndexTypes...> >;

template <typename ValueType, typename LayoutType, RAJA::Index_type P2Pidx = 0>
using ManagedArrayMultiView =
Expand Down
2 changes: 1 addition & 1 deletion src/tpl/raja
Submodule raja updated 788 files
2 changes: 1 addition & 1 deletion src/tpl/umpire
Submodule umpire updated 576 files
2 changes: 1 addition & 1 deletion tests/integration/raja-chai-tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ CUDA_TEST(ChaiTest, Views)
v2(i) *= 2.0f;
});

float* raw_v2 = v2.data.data();
float* raw_v2 = v2_array.data();
for (int i = 0; i < 10; i++) {
ASSERT_FLOAT_EQ(raw_v2[i], i * 1.0f * 2.0f * 2.0f);
;
Expand Down

0 comments on commit 13dae2e

Please sign in to comment.