Skip to content

Commit c63b20b

Browse files
authored
Merge pull request #291 from chillenzer/fix-numBlocksHostDevice
Add missing HOST_ACC
2 parents 65c15d7 + 39c5b07 commit c63b20b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/mallocMC/creationPolicies/FlatterScatter.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ namespace mallocMC::CreationPolicies::FlatterScatterAlloc
117117
*
118118
* @return Number of access blocks in the heap.
119119
*/
120-
ALPAKA_FN_INLINE ALPAKA_FN_ACC static constexpr auto numBlocks(auto heapSize) -> uint32_t
120+
ALPAKA_FN_INLINE ALPAKA_FN_HOST_ACC static constexpr auto numBlocks(auto heapSize) -> uint32_t
121121
{
122122
return heapSize / T_HeapConfig::accessblocksize;
123123
}

0 commit comments

Comments
 (0)