Skip to content

Commit 1feba07

Browse files
Merge pull request #282 from chillenzer/fix-cuda-only-mode-necessity
Fix compilation error with multiple accelerators
2 parents a35207d + 9705fa1 commit 1feba07

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/mallocMC/mallocMC_utils.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ namespace mallocMC
131131

132132
#ifdef ALPAKA_ACC_GPU_CUDA_ENABLED
133133
template<typename TDim, typename TIdx>
134-
ALPAKA_FN_ACC inline auto smid(alpaka::AccGpuCudaRt<TDim, TIdx> const& /*acc*/) -> uint32_t
134+
inline __device__ auto smid(alpaka::AccGpuCudaRt<TDim, TIdx> const& /*acc*/) -> uint32_t
135135
{
136136
std::uint32_t mysmid = 0;
137137
asm("mov.u32 %0, %%smid;" : "=r"(mysmid));
@@ -154,7 +154,7 @@ namespace mallocMC
154154
}
155155
#ifdef ALPAKA_ACC_GPU_CUDA_ENABLED
156156
template<typename TDim, typename TIdx>
157-
ALPAKA_FN_ACC inline auto lanemask_lt(alpaka::AccGpuCudaRt<TDim, TIdx> const& /*acc*/)
157+
inline __device__ uint32_t lanemask_lt(alpaka::AccGpuCudaRt<TDim, TIdx> const& /*acc*/)
158158
{
159159
std::uint32_t lanemask;
160160
asm("mov.u32 %0, %%lanemask_lt;" : "=r"(lanemask));

0 commit comments

Comments
 (0)