File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -44,19 +44,19 @@ namespace mallocMC
4444 }
4545
4646 template <typename AlpakaAcc>
47- ALPAKA_FN_ACC auto malloc (AlpakaAcc const & acc, size_t size) -> void*
47+ ALPAKA_FN_ACC auto malloc (AlpakaAcc const & acc, size_t size) const -> void*
4848 {
4949 return devAllocator->malloc (acc, size);
5050 }
5151
5252 template <typename AlpakaAcc>
53- ALPAKA_FN_ACC void free (AlpakaAcc const & acc, void * p)
53+ ALPAKA_FN_ACC void free (AlpakaAcc const & acc, void * p) const
5454 {
5555 devAllocator->free (acc, p);
5656 }
5757
5858 template <typename AlpakaAcc>
59- ALPAKA_FN_ACC auto getAvailableSlots (AlpakaAcc const & acc, size_t slotSize) -> unsigned
59+ ALPAKA_FN_ACC auto getAvailableSlots (AlpakaAcc const & acc, size_t slotSize) const -> unsigned
6060 {
6161 return devAllocator->getAvailableSlots (acc, slotSize);
6262 }
You can’t perform that action at this time.
0 commit comments