Skip to content

Commit fb5f1da

Browse files
authored
Merge pull request #300 from ikbuibui/patch-2
Make numPages host device
2 parents f0ba695 + b968bc7 commit fb5f1da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/mallocMC/creationPolicies/FlatterScatter/AccessBlock.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ namespace mallocMC::CreationPolicies::FlatterScatterAlloc
147147
*
148148
* @return The number of pages in the access block.
149149
*/
150-
ALPAKA_FN_INLINE ALPAKA_FN_ACC constexpr static auto numPages() -> uint32_t
150+
ALPAKA_FN_INLINE ALPAKA_FN_HOST_ACC constexpr static auto numPages() -> uint32_t
151151
{
152152
constexpr auto numberOfPages = blockSize / (pageSize + sizeof(PageTable<1>));
153153
// check that the page table entries does not have a padding

0 commit comments

Comments
 (0)