File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ list(APPEND umpire_examples resource_aware_pool_example)
9292blt_add_executable (
9393 NAME allocator
9494 SOURCES allocator.cxx
95- DEPENDS_ON ${example_depends} blt::hip )
95+ DEPENDS_ON ${example_depends} )
9696list (APPEND umpire_examples allocator)
9797
9898blt_add_executable (
Original file line number Diff line number Diff line change 55// SPDX-License-Identifier: (MIT)
66// ////////////////////////////////////////////////////////////////////////////
77#include " umpire/ResourceManager.hpp"
8- #include " umpire/strategy/QuickPool.hpp"
98#include " umpire/Allocator.hpp"
109
1110#include < iostream>
1211
1312int main () {
1413 auto & rm = umpire::ResourceManager::getInstance ();
1514 umpire::Allocator alloc = rm.getAllocator (" HOST" );
16- umpire::Allocator alloc2 = rm.makeAllocator <umpire::strategy::QuickPool>(" pool" , rm.getAllocator (" DEVICE" ));
17- umpire::Allocator alloc3 = rm.getAllocator (" BANANAS" );
1815
1916 std::cout << " Got allocator: " << alloc.getName () << std::endl;
2017
2118 std::cout << " Available allocators: " ;
2219 for (auto s : rm.getAllocatorNames ()){
2320 std::cout << s << " " ;
2421 }
25- std::cout << " TEST: " << alloc3.getName () << std::endl;
2622 std::cout << std::endl;
2723
2824 return 0 ;
2925}
30-
You can’t perform that action at this time.
0 commit comments