Skip to content

Commit 1187d8a

Browse files
StewMHStewart Martin-Haughstephenswat
authored
fix: Add template parameter for clang (#1175)
* Add template parameter for clang * Formatting --------- Co-authored-by: Stewart Martin-Haugh <[email protected]> Co-authored-by: Stephen Nicholas Swatman <[email protected]>
1 parent 7ed18da commit 1187d8a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

device/alpaka/src/utils/parallel_algorithms.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ inline auto getExecutionPolicy([[maybe_unused]] Queue &q,
3838
[[maybe_unused]] const memory_resource &mr) {
3939
#if defined(ALPAKA_ACC_GPU_CUDA_ENABLED)
4040
auto stream = ::alpaka::getNativeHandle(q);
41-
return thrust::cuda::par_nosync(std::pmr::polymorphic_allocator(&(mr.main)))
41+
return thrust::cuda::par_nosync(
42+
std::pmr::polymorphic_allocator<std::byte>(&(mr.main)))
4243
.on(stream);
4344
#elif defined(ALPAKA_ACC_GPU_HIP_ENABLED)
4445
auto stream = ::alpaka::getNativeHandle(q);

0 commit comments

Comments
 (0)